|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cm.osm2po.sd.routing.SdPath
public class SdPath
This class holds the results after a successful route calculation.
Constructor Summary | |
---|---|
SdPath(double sourceIncomingRatio,
int[] path,
SdSection sourceSection,
SdSection targetSection)
|
Method Summary | |
---|---|
SdPath |
enrichKms(SdGraph sdGraph)
Iterates over the path and cumulates all lengths into an internal array. |
long[] |
fetchGeometry(SdGraph sdGraph,
int idx)
|
SdSection |
fetchSection(SdGraph sdGraph,
int idx)
Looks up SdEdge and its geometry but no name. |
java.lang.String |
fetchStreetname(SdGraph sdGraph,
int idx)
|
float[] |
getKms()
|
int |
getNumberOfEdges()
|
int[] |
getPath()
|
double |
getSourceIncomingRatio()
|
SdSection |
getSourceSection()
|
SdSection |
getTargetSection()
|
static SdPath |
load(java.io.DataInput din)
Reconstructs a Path from a serialized stream. |
boolean |
save(java.io.DataOutput dout)
Serializes this path to an output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SdPath(double sourceIncomingRatio, int[] path, SdSection sourceSection, SdSection targetSection)
Method Detail |
---|
public int[] getPath()
public float[] getKms()
public double getSourceIncomingRatio()
public int getNumberOfEdges()
public SdSection getSourceSection()
public SdSection getTargetSection()
public long[] fetchGeometry(SdGraph sdGraph, int idx)
public java.lang.String fetchStreetname(SdGraph sdGraph, int idx)
public SdSection fetchSection(SdGraph sdGraph, int idx)
sdGraph
- SdGraph
idx
- int Index of Edge
SdSection
public SdPath enrichKms(SdGraph sdGraph)
sdGraph
- SdGraph
getKms()
public boolean save(java.io.DataOutput dout)
dout
- DataOutput
public static SdPath load(java.io.DataInput din)
din
- DataInput
SdPath
or null if error.
|
osm2po-sd-5.0.0 (c) December 24 2014 Carsten Moeller - info@osm2po.de | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |