Modifier and Type | Field and Description |
---|---|
static double |
operationCost
A type of cost in running interaction in a given place.
|
static double |
totalFlow |
Constructor and Description |
---|
CityModel() |
Modifier and Type | Method and Description |
---|---|
void |
calculateSocioEnvironment(Settlement c,
Person p)
This method calculates the social and environmental weights and benefits for a given
place (c) for an agent (p).
|
void |
calculateTotalNetFlow(Settlement c)
This calculates net flow for a city based on some operation cost for each person
(operationCost) subtracted from their flow and then
aggregated for all people in the entire settlement to give the total settlement flow.
|
void |
clearFlow(Settlement c) |
void |
run(java.lang.Object c)
Step 1.
|
void |
runSecond(java.lang.Object c)
Run the second step of the model.
|
public static double operationCost
public static double totalFlow
public void run(java.lang.Object c)
public void runSecond(java.lang.Object c)
Model
public void calculateSocioEnvironment(Settlement c, Person p)
c
- the city cpublic void calculateTotalNetFlow(Settlement c)
public void clearFlow(Settlement c)