public class DefaultInstitution extends AbstractInstitution
modelData, region, rInfo| Constructor and Description |
|---|
DefaultInstitution() |
| 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 |
setAdjustment(com.moseph.modelutils.fastdata.UnmodifiableNumberMap<Capital> s) |
void |
setSubsidies(com.moseph.modelutils.fastdata.UnmodifiableNumberMap<Service> s) |
void |
setSubsidy(PotentialAgent a,
double value) |
updatepublic void adjustCapitals(Cell c)
InstitutionadjustCapitals in interface InstitutionadjustCapitals in class AbstractInstitutionpublic double adjustCompetitiveness(PotentialAgent agent, Cell location, com.moseph.modelutils.fastdata.UnmodifiableNumberMap<Service> provision, double competitiveness)
InstitutionadjustCompetitiveness in interface InstitutionadjustCompetitiveness in class AbstractInstitutionpublic boolean isAllowed(PotentialAgent agent, Cell location)
InstitutionisAllowed in interface InstitutionisAllowed in class AbstractInstitutionpublic void setAdjustment(com.moseph.modelutils.fastdata.UnmodifiableNumberMap<Capital> s)
public void setSubsidies(com.moseph.modelutils.fastdata.UnmodifiableNumberMap<Service> s)
public void setSubsidy(PotentialAgent a, double value)
public void initialise(ModelData data, RunInfo info, Region extent) throws Exception
initialise in interface Initialisableinitialise in class AbstractInstitutiondata - model datainfo - run informationextent - region the initialisable object belongs toException