public class SimpleAllocationModel extends Object implements AllocationModel, CellVolatilityMessenger
CellVolatilityObserver.AllocationModel.AllocationDisplay| Modifier and Type | Field and Description |
|---|---|
protected Set<CellVolatilityObserver> |
cellVolatilityObserver |
protected boolean |
networkNullErrorOccurred |
| Constructor and Description |
|---|
SimpleAllocationModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateLand(Region r)
Creates a copy of the best performing potential agent on each empty cell
|
AllocationModel.AllocationDisplay |
getDisplay() |
void |
initialise(ModelData data,
RunInfo info,
Region r) |
void |
registerCellVolatilityOberserver(CellVolatilityObserver observer) |
protected Set<CellVolatilityObserver> cellVolatilityObserver
protected boolean networkNullErrorOccurred
public void initialise(ModelData data, RunInfo info, Region r)
initialise in interface Initialisabledata - model datainfo - run informationr - region the initialisable object belongs topublic void allocateLand(Region r)
allocateLand in interface AllocationModelpublic AllocationModel.AllocationDisplay getDisplay()
getDisplay in interface AllocationModelgetDisplay in interface Displayablepublic void registerCellVolatilityOberserver(CellVolatilityObserver observer)