|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cm.osm2po.sd.routing.SdSection
public class SdSection
Combines static and dynamic Edge data, such as modified geometries.
Constructor Summary | |
---|---|
SdSection(int edgeIdx,
SdEdge edge,
long[] coords)
Constructs a wrapper for an SdEdge with additional attributes
like its corresponing position inside the SdGraph 's
adjacency list including the underlying edge itself and the geometry. |
Method Summary | |
---|---|
void |
copyMembersFrom(SdSection sds)
|
long[] |
getCoords()
|
SdEdge |
getEdge()
|
int |
getEdgeIdx()
|
double |
getRatio()
|
static SdSection |
load(java.io.DataInput din)
Reconstructs a Section from a serialized stream. |
protected SdSection |
reverseCoords()
|
boolean |
save(java.io.DataOutput dout)
Serializes this section to an output stream. |
SdSection |
setAndApplyRatio(double ratio)
Sets a new Ratio and adjusts the underlying edge's members for speed and length. |
protected SdSection |
setEdgeIdx(int edgeIdx)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SdSection(int edgeIdx, SdEdge edge, long[] coords)
SdEdge
with additional attributes
like its corresponing position inside the SdGraph
's
adjacency list including the underlying edge itself and the geometry.
The internal ratio will be set to 1, assuming this SdSection
represts an entire edge.
edgeIdx
- index of edge in adjacency list of SdGraph
edge
- SdEdge
the corresponding Edge itselfcoords
- Array of long (nano-coded) geometry of edgeMethod Detail |
---|
public int getEdgeIdx()
public SdEdge getEdge()
public long[] getCoords()
public double getRatio()
public SdSection setAndApplyRatio(double ratio)
ratio
- double the new ratio to set
public void copyMembersFrom(SdSection sds)
protected SdSection setEdgeIdx(int edgeIdx)
protected SdSection reverseCoords()
public boolean save(java.io.DataOutput dout)
dout
- DataOutput
public static SdSection load(java.io.DataInput din)
din
- DataInput
SdSection
or null if error.public java.lang.String toString()
toString
in class java.lang.Object
|
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 |