Modifier and Type | Field and Description |
---|---|
static double |
moveProbability
The probability of moving to a given settlement
|
Constructor and Description |
---|
AgentSettlementModel() |
Modifier and Type | Method and Description |
---|---|
void |
determineRelocate(Agent 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 |
flowFromTowns(Agent p)
This determines probability a person will visit
and thus benefit a site via interaction.
|
Settlement |
relocate(Agent p)
This method selects the settlement of relocation based on distance and its
flow (e.g., 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 void run(java.lang.Object p)
public void runSecond(java.lang.Object p)
public void flowFromTowns(Agent p)
p
- a personpublic void determineRelocate(Agent p)
p
- a person ppublic Settlement relocate(Agent p)
p
- a person