|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmovement.map.PointsOfInterest
public class PointsOfInterest
Handler for points of interest data.
| Field Summary | |
|---|---|
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"). |
| Constructor Summary | |
|---|---|
PointsOfInterest(SimMap parentMap,
int[] okMapNodeTypes,
Settings settings,
java.util.Random rng)
Constructor. |
|
| Method Summary | |
|---|---|
MapNode |
selectDestination()
Selects a random destination from POIs or all MapNodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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.
| Constructor Detail |
|---|
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 use| Method Detail |
|---|
public MapNode selectDestination()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||