openlr.map.sqlite.helpers
Class ConnectivityMap

java.lang.Object
  extended by openlr.map.sqlite.helpers.ConnectivityMap

public final class ConnectivityMap
extends Object

Stores information on topological connections between objects of kind Line and Node within a graph.

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

email: software@openlr.org

Author:
TomTom International B.V.

Constructor Summary
ConnectivityMap()
          Creates an instance of this class.
 
Method Summary
 boolean addIncomingLineById(long lineId)
          Adds information on an incoming line to the map.
 boolean addOutgoingLineById(long lineId)
          Adds information on an outgoing line to the map if it is modifiable.
 Set<Long> getLineIds(ConnectionType type)
          Gets an unmodifiable set of IDs of lines connected with the specified ConnectionType.
 void setModifiable(boolean mod)
          Sets whether this map is modifiable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectivityMap

public ConnectivityMap()
Creates an instance of this class.

Method Detail

addIncomingLineById

public boolean addIncomingLineById(long lineId)
Adds information on an incoming line to the map.

Parameters:
lineId - the ID of the incoming line.
Returns:
true if the map does not contain this information by now.

addOutgoingLineById

public boolean addOutgoingLineById(long lineId)
Adds information on an outgoing line to the map if it is modifiable.

Parameters:
lineId - the ID of the outgoing line.
Returns:
true if the map does not contain this information by now.

getLineIds

public Set<Long> getLineIds(ConnectionType type)
Gets an unmodifiable set of IDs of lines connected with the specified ConnectionType.

Parameters:
type - the connection type.
Returns:
a set of IDs of lines connected with the specified ConnectionType.

setModifiable

public void setModifiable(boolean mod)
Sets whether this map is modifiable.

Parameters:
mod - the flag whether this map should be modifiable.


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