openlr.map.sqlite.impl
Class NodeImpl

java.lang.Object
  extended by openlr.map.sqlite.impl.NodeImpl
All Implemented Interfaces:
openlr.map.Node

public class NodeImpl
extends Object
implements openlr.map.Node

Implementation of the OpenLR Node interface for use with a TT digital map in SQLite format.

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

email: software@openlr.org

Author:
TomTom International B.V.

Constructor Summary
NodeImpl(openlr.map.MapDatabase map, long idValue, double lonDeg, double latDeg, ConnectivityMap connectivity)
          Creates an instance of this class representing a Node feature with a given ID in the network managed by the given MapDatabase instance.
 
Method Summary
 boolean equals(Object other)
          
 Iterator<? extends openlr.map.Line> getConnectedLines()
          
 long getID()
          
 Iterator<? extends openlr.map.Line> getIncomingLines()
          
 double getLatitudeDeg()
          
 double getLongitudeDeg()
          
 int getNumberConnectedLines()
          
 Iterator<openlr.map.Line> getOutgoingLines()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeImpl

public NodeImpl(openlr.map.MapDatabase map,
                long idValue,
                double lonDeg,
                double latDeg,
                ConnectivityMap connectivity)
Creates an instance of this class representing a Node feature with a given ID in the network managed by the given MapDatabase instance.

Parameters:
map - the MapDatabase this feature is managed by
idValue - the unique ID of this Node
lonDeg - the longitude value of the coordinate in WGS84 coordinate system
latDeg - the longitude value of the coordinate in WGS84 coordinate system
connectivity - a map containing information on topological connections
Method Detail

equals

public final boolean equals(Object other)

Specified by:
equals in interface openlr.map.Node
Overrides:
equals in class Object

getConnectedLines

public final Iterator<? extends openlr.map.Line> getConnectedLines()

Specified by:
getConnectedLines in interface openlr.map.Node

getID

public final long getID()

Specified by:
getID in interface openlr.map.Node

getIncomingLines

public final Iterator<? extends openlr.map.Line> getIncomingLines()

Specified by:
getIncomingLines in interface openlr.map.Node

getLatitudeDeg

public final double getLatitudeDeg()

Specified by:
getLatitudeDeg in interface openlr.map.Node

getLongitudeDeg

public final double getLongitudeDeg()

Specified by:
getLongitudeDeg in interface openlr.map.Node

getNumberConnectedLines

public final int getNumberConnectedLines()

Specified by:
getNumberConnectedLines in interface openlr.map.Node

getOutgoingLines

public final Iterator<openlr.map.Line> getOutgoingLines()

Specified by:
getOutgoingLines in interface openlr.map.Node

hashCode

public final int hashCode()

Overrides:
hashCode in class Object

toString

public final String toString()

Overrides:
toString in class Object


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