de.cm.osm2po.sd.guide
Class SdEvent
java.lang.Object
de.cm.osm2po.sd.guide.SdEvent
- All Implemented Interfaces:
- java.lang.Comparable<SdEvent>
public class SdEvent
- extends java.lang.Object
- implements java.lang.Comparable<SdEvent>
Constructs views of crossings from the perspective
of a driver. Analyzes transitions from one to next edge
and collects facts like turning alternatives or directions
in order to derive some kind of artificial perception.
Context sensitive transitions like entries and exits, that
need some look-aheads will also be handled here.
- Author:
- (c) 2013 - Carsten Moeller - info@osm2po
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EVT_UNKNOWN
public static final int EVT_UNKNOWN
- See Also:
- Constant Field Values
EVT_VEHICLEWAY
public static final int EVT_VEHICLEWAY
- See Also:
- Constant Field Values
EVT_BIKEWAY
public static final int EVT_BIKEWAY
- See Also:
- Constant Field Values
EVT_FOOTWAY
public static final int EVT_FOOTWAY
- See Also:
- Constant Field Values
EVT_MOTORWAY
public static final int EVT_MOTORWAY
- See Also:
- Constant Field Values
EVT_LINK
public static final int EVT_LINK
- See Also:
- Constant Field Values
EVT_ROUNDABOUT
public static final int EVT_ROUNDABOUT
- See Also:
- Constant Field Values
EVT_NAMECHANGE
public static final int EVT_NAMECHANGE
- See Also:
- Constant Field Values
EVT_CROSSING
public static final int EVT_CROSSING
- See Also:
- Constant Field Values
EVT_INTUITIVE
public static final int EVT_INTUITIVE
- See Also:
- Constant Field Values
EVT_ENTRY
public static final int EVT_ENTRY
- See Also:
- Constant Field Values
EVT_EXIT
public static final int EVT_EXIT
- See Also:
- Constant Field Values
EVT_SOURCE
public static final int EVT_SOURCE
- See Also:
- Constant Field Values
EVT_TARGET
public static final int EVT_TARGET
- See Also:
- Constant Field Values
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getStreet
public java.lang.String getStreet()
getType
public int getType()
getMeter
public int getMeter()
getAngle
public int getAngle()
getCounter
public int getCounter()
setCounter
public void setCounter(int counter)
setForecastIdx
public void setForecastIdx(int idx)
getForecastIdx
public int getForecastIdx()
resetForecastIdx
public void resetForecastIdx()
create
public static SdEvent[] create(SdGraph sdGraph,
SdPath sdPath,
boolean checkRestrictions,
boolean carMode)
- Creates a list of basic events for a given path ordered by meter stone.
- Parameters:
sdPath
- SdPath
NULLABLEsdGraph
- SdGraph
checkRestrictions
- booleancarMode
- boolean
- Returns:
- Array of
SdEvent
or null, if path is empty or null.
compareTo
public int compareTo(SdEvent that)
- Specified by:
compareTo
in interface java.lang.Comparable<SdEvent>