net.walend.measured
Interface ShortestGEDistances

All Superinterfaces:
HasState
All Known Implementing Classes:
AbstractShortestGEDistances, DijkstraShortestGEDistances, FloydWarshallShortestGEDistances, JITShortestGEDistances, JohnsonShortestGEDistances

public interface ShortestGEDistances
extends HasState

This interface describes methods to find the shortest distances on a GE digraph.

Implementations should not have mutator methods except recalculate(). Implementations should not be Immutable unless both the base digraph and the pathMeter are immutable.

Constructors should have a base digraph. Constructors may throw a NegativeWeightCycleException.

Author:
David Walend dfw1@cornell.edu

Method Summary
 IndexedGEDigraph getBase()
           
 int getLength(int from, int to)
           
 int getLength(java.lang.Object fromNode, java.lang.Object toNode)
           
 GEPathMeter getPathMeter()
          Return the path meter used to evaluate these shortest paths.
 void recalculate()
          If the digraph is not valid, rediscover the shortest paths.
 
Methods inherited from interface net.walend.collection.HasState
getPrincipleInterface, sameStateAs
 

Method Detail

getBase

public IndexedGEDigraph getBase()

recalculate

public void recalculate()
                 throws GENegativeWeightCycleException
If the digraph is not valid, rediscover the shortest paths.

GENegativeWeightCycleException

getPathMeter

public GEPathMeter getPathMeter()
Return the path meter used to evaluate these shortest paths.


getLength

public int getLength(java.lang.Object fromNode,
                     java.lang.Object toNode)
              throws NodeMissingException
NodeMissingException

getLength

public int getLength(int from,
                     int to)


Copyright (c) 2001, 2002, David Walend