public interface Institution extends Initialisable
| 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.
|
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.
|
initialisevoid adjustCapitals(Cell c)
c - double adjustCompetitiveness(PotentialAgent agent, Cell location, com.moseph.modelutils.fastdata.UnmodifiableNumberMap<Service> provision, double competitiveness)
agent - location - provision - competitiveness - boolean isAllowed(PotentialAgent agent, Cell location)
agent - location - void update()