public class PointsOfInterestEvac
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
POI_FILE_S
Points Of Interest file path ("poiFile" )
|
static java.lang.String |
POI_NS
Points Of Interest settings namespace ("PointsOfInterestEvac" )
|
protected static java.util.Random |
rng |
| Constructor and Description |
|---|
PointsOfInterestEvac(SimMap parentMap,
int[] okMapNodeTypes,
Settings settings,
java.util.Random rng)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<MapNode> |
getPoiLists() |
static void |
reset()
Resets all static fields to default values
|
MapNode |
selectDestination(MapNode lastMapNode,
DijkstraPathFinderOptimal pathFinder)
Selects a random destination from POIs or all MapNodes.
|
MapNode |
selectDestinationRandom() |
public static final java.lang.String POI_NS
public static final java.lang.String POI_FILE_S
protected static java.util.Random rng
public PointsOfInterestEvac(SimMap parentMap, int[] okMapNodeTypes, Settings settings, java.util.Random rng)
parentMap - The map whose MapNodes' subset the POIs areokMapNodeTypes - Array of map node types that are OK to visit or null if all
nodes are OKsettings - The Settings object where settings are read fromrng - The random number generator to usepublic MapNode selectDestination(MapNode lastMapNode, DijkstraPathFinderOptimal pathFinder)
lastMapNode - pathFinder - public MapNode selectDestinationRandom()
public java.util.List<MapNode> getPoiLists()
public static void reset()