wt.epm.structure
Class DependencyGraph
java.lang.Object
wt.epm.structure.DependencyGraph
- public class DependencyGraph
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iterationCache
private EPMCache.IterationCache iterationCache
dependencyCache
private DependencyGraph.DependencyCache dependencyCache
DependencyGraph
public DependencyGraph(ConfigSpec configSpec)
traceDependencies
public List traceDependencies(Collection parents,
boolean requiredOnly)
throws WTException
- Given a collection of Parts or Documents, recursively trace their dependents.
What links are recursively traversed to find an object's dependents varies
depending upon the class of the object.
EPMDocuments: EPMMemberLinks, EPMReferenceLinks and EPMVariantLinks
WTParts: WTPartUsageLinks
WTDocuments: WTDocumentUsageLinks
Note: The notion of required does not apply to WTParts and WTDocuments.
For those objects, this method always returns all of their dependents.
Supported API: false
- Returns:
- List of dependents
- Throws:
WTException
traceDependencies
public Collection traceDependencies(Collection parents,
DependencyGraph.Visitor visitor)
throws WTException
- Given a collection of Parts or Documents, recursively trace their dependents.
What links are recursively traversed to find an object's dependents varies
depending upon the class of the object.
EPMDocuments: EPMMemberLinks, EPMReferenceLinks and EPMVariantLinks
WTParts: WTPartUsageLinks
WTDocuments: WTDocumentUsageLinks
Supported API: false
- Returns:
- Collection of objects returned by the vistor
- Throws:
WTException