public class BestProductionFirstGiveUpGiveInAllocationModel extends GiveUpGiveInAllocationModel implements CellCapitalObserver, PotentialAgentProductionObserver
AllocationModel.AllocationDisplay| Modifier and Type | Field and Description |
|---|---|
protected Region |
region |
protected IterativeCellSamplerFactory |
samplerFactory
Applied to sampled indices from the list of sorted cells.
|
data, numCells, numSearchedCells, numTakeovers, numTakeoversDerived, percentageCells, percentageTakeOvers, perfectCell, probabilityExponent, statisticsObserver, takeoverObserver, tryToComeInModecellVolatilityObserver, networkNullErrorOccurred| Constructor and Description |
|---|
BestProductionFirstGiveUpGiveInAllocationModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
cellCapitalChanged(Cell cell,
boolean remove) |
protected void |
initCellProductions() |
void |
initialise(ModelData data,
RunInfo info,
Region r) |
void |
potentialAgentProductionChanged(PotentialAgent pa)
To inform observers about changes in production.
|
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
|
allocateLand, registerGivingInStatisticOberservergetDisplay, registerCellVolatilityOberserverprotected Region region
protected IterativeCellSamplerFactory samplerFactory
public BestProductionFirstGiveUpGiveInAllocationModel()
public void initialise(ModelData data, RunInfo info, Region r)
initialise in interface Initialisableinitialise in class GiveUpGiveInAllocationModeldata - model datainfo - run informationr - region the initialisable object belongs toprotected void initCellProductions()
public void tryToComeIn(PotentialAgent a, Region r)
tryToComeIn in class GiveUpGiveInAllocationModela - r - public void registerTakeoverOberserver(TakeoverObserver observer)
registerTakeoverOberserver in interface TakeoverMessengerregisterTakeoverOberserver in class GiveUpGiveInAllocationModelpublic void cellCapitalChanged(Cell cell, boolean remove)
cellCapitalChanged in interface CellCapitalObserverpublic void potentialAgentProductionChanged(PotentialAgent pa)
PotentialAgentProductionObserverpotentialAgentProductionChanged in interface PotentialAgentProductionObserver