Interface ILcdShortestRouteDistanceTableProvider<N,E>

All Known Subinterfaces:
ILcdEditableShortestRouteDistanceTableProvider<N,E>
All Known Implementing Classes:
TLcdShortestRouteDistanceTableProvider

public interface ILcdShortestRouteDistanceTableProvider<N,E>
A ILcdShortestRouteDistanceTableProvider provides graph distance tables to algorithms that make use of them.
Since:
5.1
  • Method Details

    • getGraph

      ILcdGraph<N,E> getGraph(ILcdShortestRouteDistanceTable<N> aDistanceTable)
      Returns the graph that is associated with the given distance table.
      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.
      Throws:
      NullPointerException - if the given distance table is null.
    • getDistanceTable

      ILcdShortestRouteDistanceTable<N> getDistanceTable(ILcdGraph<N,E> aGraph)
      Returns the distance table that is associated with the given graph.
      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.
      Throws:
      NullPointerException - if the given graph is null.