public class SdTurnInfo extends java.lang.Object implements java.lang.Comparable<SdTurnInfo>
Modifier and Type | Field and Description |
---|---|
static int |
TI_DRIVABLE |
static int |
TI_NOTURN |
static int |
TI_ONPATH |
static int |
TI_WRONGWAY |
Constructor and Description |
---|
SdTurnInfo(int angle,
int type,
SdSection section) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SdTurnInfo that) |
static SdTurnInfo[] |
fetchTurnInfos(SdGraph sdGraph,
int idxFrom,
SdPath sdPath)
Analyzes all outgoing ways of one crossing in driving direction.
|
int |
getAngle() |
SdSection |
getSection() |
int |
getType() |
java.lang.String |
toString() |
public static final int TI_ONPATH
public static final int TI_WRONGWAY
public static final int TI_NOTURN
public static final int TI_DRIVABLE
public SdTurnInfo(int angle, int type, SdSection section)
public int getAngle()
public int getType()
public SdSection getSection()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(SdTurnInfo that)
compareTo
in interface java.lang.Comparable<SdTurnInfo>
public static SdTurnInfo[] fetchTurnInfos(SdGraph sdGraph, int idxFrom, SdPath sdPath)
sdGraph
- SdGraph
idxFrom
- Index (0 to n-2) of From-Path-SegmentsdPath
- SdPath
SdTurnInfo
(Target-Edges) where the intrinsic path
element is at index 0. The first element additionally contains a
fully read SdEdge
with coords.