T
- public class ContextCreator<T>
extends java.lang.Object
implements repast.simphony.dataLoader.ContextBuilder<T>
Modifier and Type | Field and Description |
---|---|
static java.util.List<Settlement> |
cities
List containing simulation settlements
|
Constructor and Description |
---|
ContextCreator() |
Modifier and Type | Method and Description |
---|---|
repast.simphony.context.Context |
build(repast.simphony.context.Context<T> context)
Context for building and instantiating the simulation
|
void |
createNetworkCities()
The network creator for sites in study area.
|
void |
createPeople(repast.simphony.context.Context context,
int people,
repast.simphony.parameter.Parameters pp)
Method to create people in the simulation.
|
void |
createSettlement(java.lang.String location,
repast.simphony.context.Context context,
repast.simphony.parameter.Parameters par)
Method for city creation.
|
public static java.util.List<Settlement> cities
public repast.simphony.context.Context build(repast.simphony.context.Context<T> context)
build
in interface repast.simphony.dataLoader.ContextBuilder<T>
public void createSettlement(java.lang.String location, repast.simphony.context.Context context, repast.simphony.parameter.Parameters par)
location
- the location of the data filecontext
- the simulation context that contains simulation datapublic void createPeople(repast.simphony.context.Context context, int people, repast.simphony.parameter.Parameters pp)
context
- the simulation context that contains simulation datapeople
- the number of people to createpublic void createNetworkCities()