|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes methods to find the shortest distances on a CE 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.
Method Summary | |
IndexedCEDigraph |
getBase()
|
int |
getLength(int from,
int to)
|
int |
getLength(java.lang.Object fromNode,
java.lang.Object toNode)
|
CEPathMeter |
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 |
public IndexedCEDigraph getBase()
public void recalculate() throws CENegativeWeightCycleException
CENegativeWeightCycleException
public CEPathMeter getPathMeter()
public int getLength(java.lang.Object fromNode, java.lang.Object toNode) throws NodeMissingException
NodeMissingException
public int getLength(int from, int to)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |