public class GiveUpGiveInAllocationModelOld extends SimpleAllocationModel implements TakeoverMessenger
AllocationModel.AllocationDisplay| Modifier and Type | Field and Description |
|---|---|
String |
numCells
The number of cells a single agent (type) can search over to find maximum competitiveness
|
protected int |
numSearchedCells |
String |
numTakeovers
The number of times an agent (type) is selected for a take over (i.e.
|
int |
numTakeoversDerived |
String |
percentageCells
Alternative to
GiveUpGiveInAllocationModel.numCells: specify the
percentage of entire cells in the region a single agent (type) searches
over. |
String |
percentageTakeOvers
Alternative to
GiveUpGiveInAllocationModel.numTakeovers: specify
the percentage of take overs per single agent (type). |
int |
probabilityExponent |
AllocationTryToComeInMode |
tryToComeInMode |
cellVolatilityObserver, networkNullErrorOccurred| Constructor and Description |
|---|
GiveUpGiveInAllocationModelOld() |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateLand(Region r)
Creates a copy of the best performing potential agent on each empty cell
|
void |
initialise(ModelData data,
RunInfo info,
Region r) |
void |
registerTakeoverOberserver(TakeoverObserver observer) |
void |
tryToComeIn(PotentialAgent a,
Region r)
Tries to create one of the given agents if it can take over a cell
|
getDisplay, registerCellVolatilityOberserverpublic String numCells
protected int numSearchedCells
public String percentageCells
GiveUpGiveInAllocationModel.numCells: specify the
percentage of entire cells in the region a single agent (type) searches
over.public String numTakeovers
public AllocationTryToComeInMode tryToComeInMode
public String percentageTakeOvers
GiveUpGiveInAllocationModel.numTakeovers: specify
the percentage of take overs per single agent (type).public int numTakeoversDerived
public int probabilityExponent
public void initialise(ModelData data, RunInfo info, Region r)
initialise in interface Initialisableinitialise in class SimpleAllocationModeldata - model datainfo - run informationr - region the initialisable object belongs topublic void allocateLand(Region r)
allocateLand in interface AllocationModelallocateLand in class SimpleAllocationModelpublic void tryToComeIn(PotentialAgent a, Region r)
a - r - public void registerTakeoverOberserver(TakeoverObserver observer)
registerTakeoverOberserver in interface TakeoverMessenger