drasys.or.graph.sp
Class SingleVertexListenerAdapter
java.lang.Object
|
+--drasys.or.graph.sp.SingleVertexListenerAdapter
- public class SingleVertexListenerAdapter
- extends java.lang.Object
- implements SingleVertexListenerI
A convenience object to simplify implementing SingleVertexListenerI.
The processing in an algorithm can be monitored by extending this class and calling setListener().
- See Also:
SingleVertexI
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SingleVertexListenerAdapter
public SingleVertexListenerAdapter()
initialize
public void initialize(GraphI graph,
SingleVertexI algorithm)
- Called before any path generation.
- Specified by:
- initialize in interface SingleVertexListenerI
beginPathTree
public void beginPathTree(VertexI root,
boolean isToRoot)
- Called before each path tree generation.
- Specified by:
- beginPathTree in interface SingleVertexListenerI
updateVertexCost
public void updateVertexCost(VertexI from,
EdgeI edge,
VertexI to,
EdgeValueI values)
- Called by the algorithm when a vertex is assigned a new cost.
This can be used to update element properties like distance and time from/to the root.
- Specified by:
- updateVertexCost in interface SingleVertexListenerI
endPathTree
public void endPathTree(int pathCnt)
- Called after each path tree generation.
- Specified by:
- endPathTree in interface SingleVertexListenerI
Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com