Class SegmentIndex
java.lang.Object
com.here.platform.location.inmemory.graph.SegmentIndex
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
The Index of an undirected road segment in a
GraphTile.
Each road segment corresponds to two Vertices, one for each Direction.
A SegmentIndex, therefore, refers to a road segment without specifying a Direction,
whereas a VertexIndex refers to a road segment but also specifies a Direction along that
road segment.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SegmentIndexfromVertex(Vertex vertex) static SegmentIndexfromVertexIndex(VertexIndex index) Converts aVertexIndexto the corresponding undirectedSegmentIndex.toVertexIndex(com.here.platform.location.inmemory.graph.Direction direction) intvalue()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
SegmentIndex
public SegmentIndex(int value)
-
-
Method Details
-
fromVertex
-
fromVertexIndex
Converts aVertexIndexto the corresponding undirectedSegmentIndex. -
value
public int value() -
toVertexIndex
-