Class TLcdShortestRouteDistanceTableProvider<N,E>
java.lang.Object
com.luciad.network.algorithm.routing.TLcdShortestRouteDistanceTableProvider<N,E>
- All Implemented Interfaces:
ILcdEditableShortestRouteDistanceTableProvider<N,
,E> ILcdShortestRouteDistanceTableProvider<N,
E>
public class TLcdShortestRouteDistanceTableProvider<N,E>
extends Object
implements ILcdEditableShortestRouteDistanceTableProvider<N,E>
Implementation of
ILcdShortestRouteDistanceTableProvider
.- Since:
- 5.1
-
Constructor Summary
ConstructorDescriptionConstructs a newTLcdShortestRouteDistanceTableProvider
. -
Method Summary
Modifier and TypeMethodDescriptiongetDistanceTable
(ILcdGraph<N, E> aGraph) Returns the distance table that is associated with the given graph.getGraph
(ILcdShortestRouteDistanceTable<N> aDistanceTable) Returns the graph that is associated with the given distance table.void
setDistanceTable
(ILcdGraph<N, E> aGraph, ILcdShortestRouteDistanceTable<N> aDistanceTable) Registers the specified distance table for the given graph on this distance table provider.
-
Constructor Details
-
TLcdShortestRouteDistanceTableProvider
public TLcdShortestRouteDistanceTableProvider()Constructs a newTLcdShortestRouteDistanceTableProvider
.
-
-
Method Details
-
getDistanceTable
Description copied from interface:ILcdShortestRouteDistanceTableProvider
Returns the distance table that is associated with the given graph.- Specified by:
getDistanceTable
in interfaceILcdShortestRouteDistanceTableProvider<N,
E> - Parameters:
aGraph
- the graph whose distance table is to be returned.- Returns:
- the distance table that corresponds to the given graph or null if no distance table is available for the specified graph.
-
getGraph
Description copied from interface:ILcdShortestRouteDistanceTableProvider
Returns the graph that is associated with the given distance table.- Specified by:
getGraph
in interfaceILcdShortestRouteDistanceTableProvider<N,
E> - Parameters:
aDistanceTable
- the distance table whose graph is to be returned.- Returns:
- the graph that corresponds to the given distance table or null if no graph is available for the specified distance table.
-
setDistanceTable
public void setDistanceTable(ILcdGraph<N, E> aGraph, ILcdShortestRouteDistanceTable<N> aDistanceTable) Description copied from interface:ILcdEditableShortestRouteDistanceTableProvider
Registers the specified distance table for the given graph on this distance table provider. If a distance table was already registered before, this will be overridden.- Specified by:
setDistanceTable
in interfaceILcdEditableShortestRouteDistanceTableProvider<N,
E> - Parameters:
aGraph
- the graph for which to register a distance table.aDistanceTable
- the distance table to be registered.
-