public class PointsOfInterest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
POI_FILE_S
Points Of Interest file path -prefix id ("poiFile")
|
static java.lang.String |
POI_NS
Points Of Interest settings namespace ("PointsOfInterest")
|
static java.lang.String |
POI_SELECT_S
Per node group setting used for selecting POI groups and their
probabilities ("pois").
Syntax: poiGroupIndex1, groupSelectionProbability1, groupIndex2, prob2,
etc...Sum of probabilities must be less than or equal to one (1.0). |
| Constructor and Description |
|---|
PointsOfInterest(SimMap parentMap,
int[] okMapNodeTypes,
Settings settings,
java.util.Random rng)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MapNode |
selectDestination()
Selects a random destination from POIs or all MapNodes.
|
public static final java.lang.String POI_NS
public static final java.lang.String POI_FILE_S
public static final java.lang.String POI_SELECT_S
poiGroupIndex1, groupSelectionProbability1, groupIndex2, prob2,
etc...1-sum.public PointsOfInterest(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()