de.cm.osm2po.sd.routing
Class SdEdge
java.lang.Object
de.cm.osm2po.sd.routing.SdEdge
- All Implemented Interfaces:
- Streamable
public class SdEdge
- extends java.lang.Object
- implements Streamable
Represents an edge of the SdGraph
- Author:
- (c) 2013 - Carsten Moeller - info@osm2po
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RECORD_SIZE
public static final int RECORD_SIZE
- See Also:
- Constant Field Values
META_BYTE_IS_ONEWAY
public static final int META_BYTE_IS_ONEWAY
- See Also:
- Constant Field Values
META_BYTE_IS_REVERSE
public static final int META_BYTE_IS_REVERSE
- See Also:
- Constant Field Values
META_BYTE_IS_FIRSTSIBLING
public static final int META_BYTE_IS_FIRSTSIBLING
- See Also:
- Constant Field Values
META_BYTE_IS_WRONGWAY
public static final int META_BYTE_IS_WRONGWAY
- See Also:
- Constant Field Values
META_BYTE_REVERSE_EDGE_MASK
public static final int META_BYTE_REVERSE_EDGE_MASK
- See Also:
- Constant Field Values
FLAG_NULL
public static final int FLAG_NULL
- See Also:
- Constant Field Values
FLAG_CAR
public static final int FLAG_CAR
- See Also:
- Constant Field Values
FLAG_BIKE
public static final int FLAG_BIKE
- See Also:
- Constant Field Values
FLAG_FOOT
public static final int FLAG_FOOT
- See Also:
- Constant Field Values
FLAG_MOTORWAY
public static final int FLAG_MOTORWAY
- See Also:
- Constant Field Values
FLAG_LINK
public static final int FLAG_LINK
- See Also:
- Constant Field Values
FLAG_ROUNDABOUT
public static final int FLAG_ROUNDABOUT
- See Also:
- Constant Field Values
OFFSET_METABYTE
public static final int OFFSET_METABYTE
- See Also:
- Constant Field Values
OFFSET_FLAGS
public static final int OFFSET_FLAGS
- See Also:
- Constant Field Values
OFFSET_TURNBITS
public static final int OFFSET_TURNBITS
- See Also:
- Constant Field Values
OFFSET_LEVEL
public static final int OFFSET_LEVEL
- See Also:
- Constant Field Values
metaByte
public byte metaByte
flags
public byte flags
targetEdgeIdx
public int targetEdgeIdx
targetLat
public float targetLat
targetLon
public float targetLon
km
public float km
h
public float h
noTurnBits
public byte noTurnBits
level
public byte level
SdEdge
public SdEdge()
readFromBytes
public void readFromBytes(byte[] buffer,
int offset)
- Deserializes this edge from a ByteBuffer.
- Specified by:
readFromBytes
in interface Streamable
- Parameters:
buffer
- byte[] Puffer.offset
- int Start-Offset in buffer
read
public SdEdge read(java.io.DataInput din)
throws java.lang.Exception
- Throws:
java.lang.Exception
write
public void write(java.io.DataOutput dout)
throws java.lang.Exception
- Throws:
java.lang.Exception
getReverseEdgeIdx
public int getReverseEdgeIdx()
isReverse
public boolean isReverse()
isOneWay
public boolean isOneWay()
isFirstSibling
public boolean isFirstSibling()
isWrongWay
public boolean isWrongWay()
isDrivable
public boolean isDrivable()
isCyclable
public boolean isCyclable()
isWalkable
public boolean isWalkable()
isMotorway
public boolean isMotorway()
isLink
public boolean isLink()
isRoundabout
public boolean isRoundabout()
copy
public SdEdge copy()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object