Modifier and Type | Field and Description |
---|---|
static java.util.Map<Settlement,Settlement> |
cities |
static double |
moveProbability |
Constructor and Description |
---|
AgentCityModel() |
Modifier and Type | Method and Description |
---|---|
void |
determineRelocate(Person p)
Based on overall net flow and probability of relocation, a person determines
if he/she will relocate to a new settlement and which settlement that will be.
|
void |
probabilityOfVisit(Person p)
This determines probability a person will visit
and thus benefit a site via interaction.
|
Settlement |
relocate(Person p)
This method selects the settlement of relocation based on distance and its
flow (economic) and social benefits (i.e., other people from the same home or initial settlement)
|
void |
run(java.lang.Object p)
Step #2 of the overall model.
|
void |
runSecond(java.lang.Object p)
Step #3&4 of the overall model.
|
public static double moveProbability
public static java.util.Map<Settlement,Settlement> cities
public void run(java.lang.Object p)
public void runSecond(java.lang.Object p)
public void probabilityOfVisit(Person p)
p
- a personpublic void determineRelocate(Person p)
p
- a person ppublic Settlement relocate(Person p)
p
- a person