public class RandomScenarioGenerator
extends java.lang.Object
Constructor and Description |
---|
RandomScenarioGenerator()
Construct a RandomScenarioGenerator with default parameters.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Entry point.
|
GisScenario |
makeRandomScenario(GMLMap map,
java.util.Random random)
Generate a random scenario.
|
void |
setAmbulanceCentres(int min,
int max)
Set the minimum and maximum number of ambulance centres.
|
void |
setAmbulanceTeams(int min,
int max)
Set the minimum and maximum number of ambulance teams.
|
void |
setCivilians(int min,
int max)
Set the minimum and maximum number of civilians.
|
void |
setFireBrigades(int min,
int max)
Set the minimum and maximum number of fire brigades.
|
void |
setFires(int min,
int max)
Set the minimum and maximum number of fires.
|
void |
setFireStations(int min,
int max)
Set the minimum and maximum number of fire stations.
|
void |
setPoliceForces(int min,
int max)
Set the minimum and maximum number of police forces.
|
void |
setPoliceOffices(int min,
int max)
Set the minimum and maximum number of police offices.
|
void |
setRefuges(int min,
int max)
Set the minimum and maximum number of refuges.
|
public RandomScenarioGenerator()
public static void main(java.lang.String[] args)
args
- Command line arguments: public void setCivilians(int min, int max)
min
- The new minimum.max
- The new maximum.public void setFireBrigades(int min, int max)
min
- The new minimum.max
- The new maximum.public void setFireStations(int min, int max)
min
- The new minimum.max
- The new maximum.public void setPoliceForces(int min, int max)
min
- The new minimum.max
- The new maximum.public void setPoliceOffices(int min, int max)
min
- The new minimum.max
- The new maximum.public void setAmbulanceTeams(int min, int max)
min
- The new minimum.max
- The new maximum.public void setAmbulanceCentres(int min, int max)
min
- The new minimum.max
- The new maximum.public void setRefuges(int min, int max)
min
- The new minimum.max
- The new maximum.public void setFires(int min, int max)
min
- The new minimum.max
- The new maximum.public GisScenario makeRandomScenario(GMLMap map, java.util.Random random)
map
- The map to generate a scenario for.random
- A source of randomness.