de.cm.osm2po.sd.routing
Class SdEdge

java.lang.Object
  extended by 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

Field Summary
static int FLAG_BIKE
           
static int FLAG_CAR
           
static int FLAG_FOOT
           
static int FLAG_LINK
           
static int FLAG_MOTORWAY
           
static int FLAG_NULL
           
static int FLAG_ROUNDABOUT
           
 byte flags
           
 float h
           
 float km
           
 byte level
           
static int META_BYTE_IS_FIRSTSIBLING
           
static int META_BYTE_IS_ONEWAY
           
static int META_BYTE_IS_REVERSE
           
static int META_BYTE_IS_WRONGWAY
           
static int META_BYTE_REVERSE_EDGE_MASK
           
 byte metaByte
           
 byte noTurnBits
           
static int OFFSET_FLAGS
           
static int OFFSET_LEVEL
           
static int OFFSET_METABYTE
           
static int OFFSET_TURNBITS
           
static int RECORD_SIZE
           
 int targetEdgeIdx
           
 float targetLat
           
 float targetLon
           
 
Constructor Summary
SdEdge()
           
 
Method Summary
 SdEdge copy()
           
 int getReverseEdgeIdx()
           
 boolean isCyclable()
           
 boolean isDrivable()
           
 boolean isFirstSibling()
           
 boolean isLink()
           
 boolean isMotorway()
           
 boolean isOneWay()
           
 boolean isReverse()
           
 boolean isRoundabout()
           
 boolean isWalkable()
           
 boolean isWrongWay()
           
 SdEdge read(java.io.DataInput din)
           
 void readFromBytes(byte[] buffer, int offset)
          Deserializes this edge from a ByteBuffer.
 java.lang.String toString()
           
 void write(java.io.DataOutput dout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

SdEdge

public SdEdge()
Method Detail

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

osm2po-sd-5.0.0 (c) December 24 2014 Carsten Moeller - info@osm2po.de