de.cm.osm2po.sd.guide
Class SdEvent

java.lang.Object
  extended by 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

Field Summary
static int EVT_BIKEWAY
           
static int EVT_CROSSING
           
static int EVT_ENTRY
           
static int EVT_EXIT
           
static int EVT_FOOTWAY
           
static int EVT_INTUITIVE
           
static int EVT_LINK
           
static int EVT_MOTORWAY
           
static int EVT_NAMECHANGE
           
static int EVT_ROUNDABOUT
           
static int EVT_SOURCE
           
static int EVT_TARGET
           
static int EVT_UNKNOWN
           
static int EVT_VEHICLEWAY
           
 
Method Summary
 int compareTo(SdEvent that)
           
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.
 int getAngle()
           
 int getCounter()
           
 int getForecastIdx()
           
 int getMeter()
           
 java.lang.String getStreet()
           
 int getType()
           
 void resetForecastIdx()
           
 void setCounter(int counter)
           
 void setForecastIdx(int idx)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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 NULLABLE
sdGraph - SdGraph
checkRestrictions - boolean
carMode - 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>

osm2po-sd-5.0.0 (c) December 24 2014 Carsten Moeller - info@osm2po.de