openlr.map
Interface Node


public interface Node

The Interface Node defines a zero-dimensional object in the road network. A node acts as start and end for lines and it is located at a specific position on the earth surface. The coordinates of a node position shall be represented in the WGS84 system.

OpenLR is a trade mark of TomTom International B.V.

email: software@openlr.org

Author:
TomTom International B.V.

Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 Iterator<Line> getConnectedLines()
          Returns a set of connected lines.
 GeoCoordinates getGeoCoordinates()
          Gets the geo coordinates of the node position.
 long getID()
          Return the unique ID of the node
 Iterator<Line> getIncomingLines()
          Returns a set of incoming lines.
 double getLatitudeDeg()
          Gets the latitude of the node position in degree.
 double getLongitudeDeg()
          Gets the longitude of the node position in degree.
 int getNumberConnectedLines()
          Gets the number of connected lines.
 Iterator<Line> getOutgoingLines()
          Returns a set of outgoing lines.
 int hashCode()
          Returns a hash code value for the line.
 

Method Detail

getLatitudeDeg

double getLatitudeDeg()
Gets the latitude of the node position in degree.

Returns:
the latitude of the node position in degree

getLongitudeDeg

double getLongitudeDeg()
Gets the longitude of the node position in degree.

Returns:
the longitude of the node position in degree

getGeoCoordinates

GeoCoordinates getGeoCoordinates()
Gets the geo coordinates of the node position.

Returns:
the geo coordinates of the node position

getConnectedLines

Iterator<Line> getConnectedLines()
Returns a set of connected lines. Connected lines are lines whose end node or start node are equal to this node.

Returns:
a set if incident lines

getNumberConnectedLines

int getNumberConnectedLines()
Gets the number of connected lines.

Returns:
the number of connected lines

getOutgoingLines

Iterator<Line> getOutgoingLines()
Returns a set of outgoing lines. Outgoing lines are lines whose start nodes are equal to this node.

Returns:
a set of outgoing lines

getIncomingLines

Iterator<Line> getIncomingLines()
Returns a set of incoming lines. Incoming lines are lines whose end nodes are equal to this node.

Returns:
a set of incoming lines

equals

boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare
Returns:
true, if this object is the same as the obj argument, otherwise false

hashCode

int hashCode()
Returns a hash code value for the line.

Overrides:
hashCode in class Object
Returns:
a hash code value for the line

getID

long getID()
Return the unique ID of the node

Returns:
the unique ID


Copyright © 2013 TomTom International B.V.. All Rights Reserved.