wt.epm.structure
Class DependencyGraph.AbstractVisitor

java.lang.Object
  extended bywt.epm.structure.DependencyGraph.AbstractVisitor
All Implemented Interfaces:
DependencyGraph.Visitor
Direct Known Subclasses:
DocCentricDependencyTracer.SaveAsVisitor
Enclosing class:
DependencyGraph

public abstract static class DependencyGraph.AbstractVisitor
extends Object
implements DependencyGraph.Visitor


Field Summary
protected  boolean requiredOnly
           
protected  Map results
           
 
Constructor Summary
protected DependencyGraph.AbstractVisitor(boolean requiredOnly)
           
 
Method Summary
 Collection getResults()
          Returns the objects that the vistor collected during the traversal.
protected  void keep(Persistable object)
           
 boolean visit(Persistable node, DependencyGraph.Dependency dependency, Iterated fromNode, boolean previouslyVisited)
          Decides whether or not to continue the traversal upwards or downwards starting with the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

results

protected Map results

requiredOnly

protected boolean requiredOnly
Constructor Detail

DependencyGraph.AbstractVisitor

protected DependencyGraph.AbstractVisitor(boolean requiredOnly)
Method Detail

keep

protected void keep(Persistable object)

getResults

public Collection getResults()
Description copied from interface: DependencyGraph.Visitor
Returns the objects that the vistor collected during the traversal.

Supported API: false

Specified by:
getResults in interface DependencyGraph.Visitor
Returns:
objects that the vistor collected

visit

public boolean visit(Persistable node,
                     DependencyGraph.Dependency dependency,
                     Iterated fromNode,
                     boolean previouslyVisited)
Description copied from interface: DependencyGraph.Visitor
Decides whether or not to continue the traversal upwards or downwards starting with the given node. Notes: a) The "node" may be either an iteration or a master depending upon what the configuration spec selected. b) The immediate dependents of the root objects are the first "nodes" that the Vistor will visit. The Vistor will visit a root object only if it is a dependent of another root object (or a circular dependency exists). c) An EPM document may have circular dependencies. If a Vistor elects to visit previously visited nodes, it must check for circular dependencies otherwise an infinite loop may result.

Supported API: false

Specified by:
visit in interface DependencyGraph.Visitor
Returns:
whether or not to continue the traversal