|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.graph.alg.traversal.IdleTraversalVisitor net.sourceforge.combean.graph.alg.traversal.ConstructPredMapVisitor
public class ConstructPredMapVisitor
Constructor Summary | |
---|---|
ConstructPredMapVisitor()
constructor |
Method Summary | |
---|---|
NodeMap<Edge> |
getPredMap()
|
void |
init(Graph g)
This method is called immediately before the traversal algorithm starts if all components of g shall be traversed. |
void |
initLocal(Graph g,
Node startNode)
This method is called immediately before the traversal algorithm starts if a component of g shall be traversed from a local start node. |
void |
openNeighbor(Edge e,
Node from)
A node has been detected for the first time. |
boolean |
readyToTerminate()
Signal if the traversal can be terminated. |
void |
setPredMap(NodeMap<Edge> predMap)
|
void |
setTarget(Node target)
Set target node where the construction of the predecessor map shall terminate. |
Methods inherited from class net.sourceforge.combean.graph.alg.traversal.IdleTraversalVisitor |
---|
finish, leaveComponent, reopenNeighbor, visitComponent, visitNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.combean.interfaces.graph.alg.traverse.TraversalVisitor |
---|
finish, leaveComponent, reopenNeighbor, visitComponent, visitNode |
Constructor Detail |
---|
public ConstructPredMapVisitor()
Method Detail |
---|
public final NodeMap<Edge> getPredMap()
public final void setPredMap(NodeMap<Edge> predMap)
predMap
- The predMap to set.public void init(Graph g)
TraversalVisitor
init
in interface TraversalVisitor
init
in class IdleTraversalVisitor
g
- the graph which will be traversed.TraversalVisitor.init(Graph)
public void initLocal(Graph g, Node startNode)
TraversalVisitor
initLocal
in interface TraversalVisitor
initLocal
in class IdleTraversalVisitor
g
- the graph which will be traversed.startNode
- the local start node.TraversalVisitor.initLocal(Graph, net.sourceforge.combean.interfaces.graph.Node)
public void openNeighbor(Edge e, Node from)
TraversalVisitor
openNeighbor
in interface TraversalVisitor
openNeighbor
in class IdleTraversalVisitor
e
- the edge through which the node has been detected.from
- the other node from where the new node has been detected.TraversalVisitor.openNeighbor(net.sourceforge.combean.interfaces.graph.Edge, net.sourceforge.combean.interfaces.graph.Node)
public boolean readyToTerminate()
TraversalVisitor
readyToTerminate
in interface TraversalVisitor
readyToTerminate
in class IdleTraversalVisitor
TraversalVisitor.readyToTerminate()
public final void setTarget(Node target)
target
- The target to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |