public class TLcdShortestRouteDistanceTableProvider<N,E> extends Object implements ILcdEditableShortestRouteDistanceTableProvider<N,E>
ILcdShortestRouteDistanceTableProvider
.Constructor and Description |
---|
TLcdShortestRouteDistanceTableProvider()
Constructs a new
TLcdShortestRouteDistanceTableProvider . |
Modifier and Type | Method and Description |
---|---|
ILcdShortestRouteDistanceTable<N> |
getDistanceTable(ILcdGraph<N,E> aGraph)
Returns the distance table that is associated with the given graph.
|
ILcdGraph<N,E> |
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.
|
public TLcdShortestRouteDistanceTableProvider()
TLcdShortestRouteDistanceTableProvider
.public ILcdShortestRouteDistanceTable<N> getDistanceTable(ILcdGraph<N,E> aGraph)
ILcdShortestRouteDistanceTableProvider
getDistanceTable
in interface ILcdShortestRouteDistanceTableProvider<N,E>
aGraph
- the graph whose distance table is to be returned.public ILcdGraph<N,E> getGraph(ILcdShortestRouteDistanceTable<N> aDistanceTable)
ILcdShortestRouteDistanceTableProvider
getGraph
in interface ILcdShortestRouteDistanceTableProvider<N,E>
aDistanceTable
- the distance table whose graph is to be returned.public void setDistanceTable(ILcdGraph<N,E> aGraph, ILcdShortestRouteDistanceTable<N> aDistanceTable)
ILcdEditableShortestRouteDistanceTableProvider
setDistanceTable
in interface ILcdEditableShortestRouteDistanceTableProvider<N,E>
aGraph
- the graph for which to register a distance table.aDistanceTable
- the distance table to be registered.