public class AbstractInstitution extends Object implements Institution
| Modifier and Type | Field and Description |
|---|---|
protected ModelData |
modelData |
protected Region |
region |
protected RunInfo |
rInfo |
| Constructor and Description |
|---|
AbstractInstitution() |
| Modifier and Type | Method and Description |
|---|---|
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 agent,
Cell location)
Determines whether this agent is forbidden from occupying that cell according to this
institution
|
void |
update()
Called at the start of each tick to allow this institution to perform any internal updates necessary.
|
protected ModelData modelData
protected RunInfo rInfo
protected Region region
public 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 Institutionpublic boolean isAllowed(PotentialAgent agent, Cell location)
InstitutionisAllowed in interface Institutionpublic void update()
Institutionupdate in interface Institutionpublic void initialise(ModelData data, RunInfo info, Region extent) throws Exception
initialise in interface Initialisabledata - model datainfo - run informationextent - region the initialisable object belongs toException