wt.epm.structure
Class DependencyGraph.AbstractVisitor
java.lang.Object
wt.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
results
protected Map results
requiredOnly
protected boolean requiredOnly
DependencyGraph.AbstractVisitor
protected DependencyGraph.AbstractVisitor(boolean requiredOnly)
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