public class SdPath
extends java.lang.Object
Constructor and Description |
---|
SdPath(double sourceIncomingRatio,
int[] path,
SdSection sourceSection,
SdSection targetSection) |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
public SdPath enrichKms(SdGraph sdGraph)
public boolean save(java.io.DataOutput dout)
dout
- DataOutput