public class SdSection
extends java.lang.Object
Constructor and Description |
---|
SdSection(int edgeIdx,
SdEdge edge,
long[] coords)
|
Modifier and Type | Method and Description |
---|---|
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() |
public SdSection(int edgeIdx, SdEdge edge, long[] coords)
public int getEdgeIdx()
public SdEdge getEdge()
public long[] getCoords()
public double getRatio()
public SdSection setAndApplyRatio(double ratio)
ratio
- double the new ratio to setpublic 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