public class Institutions extends Object implements Institution, PreTickAction
| Constructor and Description |
|---|
Institutions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstitution(Institution i) |
void |
adjustCapitals(Cell c)
Allows the institution to adjust the effective capitals present in the cell
|
double |
adjustCompetitiveness(PotentialAgent agent,
Cell location,
com.moseph.modelutils.fastdata.UnmodifiableNumberMap<Service> provision,
double competitiveness)
When given an agent, a cell and the level of (potential) provision, adjusts the
competitiveness level Must be able to deal with the agent being null if the cell is
unoccupied.
|
void |
initialise(ModelData data,
RunInfo info,
Region extent) |
boolean |
isAllowed(PotentialAgent a,
Cell c)
Determines whether this agent is forbidden from occupying that cell according to this
institution
|
void |
preTick() |
void |
update()
Called at the start of each tick to allow this institution to perform any internal updates necessary.
|
void |
updateCapitals() |
public void addInstitution(Institution i)
public boolean isAllowed(PotentialAgent a, Cell c)
InstitutionisAllowed in interface Institutionpublic void adjustCapitals(Cell c)
InstitutionadjustCapitals in interface Institutionpublic double adjustCompetitiveness(PotentialAgent agent, Cell location, com.moseph.modelutils.fastdata.UnmodifiableNumberMap<Service> provision, double competitiveness)
InstitutionadjustCompetitiveness in interface InstitutionInstitution.adjustCompetitiveness(org.volante.abm.agent.PotentialAgent,
org.volante.abm.data.Cell,
com.moseph.modelutils.fastdata.UnmodifiableNumberMap, double)public void update()
Institutionupdate in interface Institutionpublic void updateCapitals()
DefaultSchedule.tick()public void initialise(ModelData data, RunInfo info, Region extent) throws Exception
initialise in interface Initialisabledata - model datainfo - run informationextent - region the initialisable object belongs toExceptionpublic void preTick()
preTick in interface PreTickActionPreTickAction.preTick()