public class GiveUpGiveInAllocationModel extends SimpleAllocationModel implements TakeoverMessenger, GivingInStatisticsMessenger
AllocationModel.AllocationDisplay| Modifier and Type | Field and Description |
|---|---|
protected ModelData |
data |
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
numCells: specify the
percentage of entire cells in the region a single agent (type) searches
over. |
String |
percentageTakeOvers
Alternative to
numTakeovers: specify
the percentage of take overs per single agent (type). |
protected Cell |
perfectCell |
int |
probabilityExponent |
protected Set<GivingInStatisticsObserver> |
statisticsObserver |
protected Set<TakeoverObserver> |
takeoverObserver |
AllocationTryToComeInMode |
tryToComeInMode |
cellVolatilityObserver, networkNullErrorOccurred| Constructor and Description |
|---|
GiveUpGiveInAllocationModel() |
| 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 |
registerGivingInStatisticOberserver(GivingInStatisticsObserver observer) |
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
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
numTakeovers: specify
the percentage of take overs per single agent (type).public int numTakeoversDerived
public int probabilityExponent
protected Cell perfectCell
protected ModelData data
protected Set<TakeoverObserver> takeoverObserver
protected Set<GivingInStatisticsObserver> statisticsObserver
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 TakeoverMessengerpublic void registerGivingInStatisticOberserver(GivingInStatisticsObserver observer)
registerGivingInStatisticOberserver in interface GivingInStatisticsMessenger