public class DisasterType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
chemicals
The average chemical number, relative to size (0 = off).
|
static DisasterType[] |
DISASTER_TYPES
The disaster types.
|
protected double |
fire
The average fire number, relative to size (0 = off).
|
protected java.lang.String |
name
The type name.
|
protected double |
occurrence
The occurrence probability.
|
protected static java.util.Random |
random
The random number generator.
|
protected double |
severe
The severity probability.
|
protected int[] |
size
The size range [min, max].
|
protected double |
victims
The average victims number, relative to size (0 = off).
|
Constructor and Description |
---|
DisasterType(java.lang.String name,
double occurrence,
double severe,
int[] size,
double victims,
double fire,
double chemicals)
Create a new disaster type.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map |
generateDisaster() |
double |
getChemicals()
Get the name.
|
static jadex.extension.envsupport.math.IVector2 |
getChemicalsLocation(jadex.extension.envsupport.environment.ISpaceObject disaster)
Get the position of chemicals at the given disaster.
|
static jadex.extension.envsupport.math.IVector2 |
getEarthquakeIncidentLocation(jadex.extension.envsupport.environment.ISpaceObject disaster)
Get the position of an incident at the given earthquake.
|
static double |
getExponentialSample(double mean)
Get an exponential sample value.
|
double |
getFire()
Get the name.
|
static jadex.extension.envsupport.math.IVector2 |
getFireLocation(jadex.extension.envsupport.environment.ISpaceObject disaster)
Get the position of a fire at the given disaster.
|
java.lang.String |
getName()
Get the name.
|
double |
getOccurrence()
Get the occurrence probability.
|
double |
getSevere()
Get the severity probability.
|
int[] |
getSize()
Get the name.
|
static jadex.extension.envsupport.math.IVector2 |
getVictimLocation(jadex.extension.envsupport.environment.ISpaceObject disaster)
Get the position of a victim at the given disaster.
|
double |
getVictims()
Get the name.
|
public static final DisasterType[] DISASTER_TYPES
protected static final java.util.Random random
protected java.lang.String name
protected double occurrence
protected double severe
protected int[] size
protected double victims
protected double fire
protected double chemicals
public DisasterType(java.lang.String name, double occurrence, double severe, int[] size, double victims, double fire, double chemicals)
public java.lang.String getName()
public double getOccurrence()
public double getSevere()
public int[] getSize()
public double getVictims()
public double getFire()
public double getChemicals()
public static java.util.Map generateDisaster()
public static jadex.extension.envsupport.math.IVector2 getFireLocation(jadex.extension.envsupport.environment.ISpaceObject disaster)
public static jadex.extension.envsupport.math.IVector2 getChemicalsLocation(jadex.extension.envsupport.environment.ISpaceObject disaster)
public static jadex.extension.envsupport.math.IVector2 getVictimLocation(jadex.extension.envsupport.environment.ISpaceObject disaster)
public static jadex.extension.envsupport.math.IVector2 getEarthquakeIncidentLocation(jadex.extension.envsupport.environment.ISpaceObject disaster)
public static double getExponentialSample(double mean)