wt.epm.clients.relateditems
Class PartCentricProcessor

java.lang.Object
  extended bywt.epm.clients.relateditems.RelatedItemsProcessor
      extended bywt.epm.clients.relateditems.PartCentricProcessor

public class PartCentricProcessor
extends RelatedItemsProcessor

In conjunction with PartCentricSelector, the PartCentricProcessor class performs part-centric "dependency" processing. The processor supports the following selector options: part dependents -- NONE, ALL associated CAD documents -- NONE, SELECTED, ALL dependents of associated CAD documents -- REQUIRED, ALL related drawings of associated CAD documents -- NONE, SELECTED, ALL instances of associated CAD documents -- NONE, SELECTED, ALL associated WT documents -- NONE, SELECTED, ALL


Nested Class Summary
protected static class PartCentricProcessor.NoDrawings
           
protected static class PartCentricProcessor.OnlyDrawings
           
static class PartCentricProcessor.Options
          Options is a class that holds the options for part-centric "dependency" processing.
 
Nested classes inherited from class wt.epm.clients.relateditems.RelatedItemsProcessor
RelatedItemsProcessor.ObjectGroup, RelatedItemsProcessor.ObjectInfoCache
 
Field Summary
private  AssociatedObjects associated
           
private  DependencyGraph cadDependencyGraph
           
private  ConfigSpec docConfigSpec
           
private  FamilyTableFinder familyTableFinder
           
private  ConfigSpec partConfigSpec
           
private  DependencyGraph partDependencyGraph
           
private  RelatedDrawings relatedDrawings
           
 
Fields inherited from class wt.epm.clients.relateditems.RelatedItemsProcessor
GET_ALL, GET_NONE, GET_REQUIRED
 
Constructor Summary
PartCentricProcessor(PartCentricProcessor.Options options)
           
 
Method Summary
protected  List getAssociated(List groups, AssociatedObjects associated)
           
protected  List getDrawings(List groups, AssociatedObjects associated)
           
private  RelatedItemsProcessor.ObjectInfoCache getRelatedObjects(List selected, PartCentricSelector selector)
           
 List getRelatedObjects(Workable[] seedObjects, PartCentricSelector selector)
          Find the objects related to the selected parts such as their dependents, their associated CAD documents, drawings related to their associated CAD documents, etc.
private  List getWTAssociated(List groups, AssociatedObjects associated)
           
 
Methods inherited from class wt.epm.clients.relateditems.RelatedItemsProcessor
getAssociated, getDependents, getDependents, getDrawings, getFamilyMembers, getFolders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partConfigSpec

private ConfigSpec partConfigSpec

docConfigSpec

private ConfigSpec docConfigSpec

associated

private AssociatedObjects associated

partDependencyGraph

private DependencyGraph partDependencyGraph

cadDependencyGraph

private DependencyGraph cadDependencyGraph

relatedDrawings

private RelatedDrawings relatedDrawings

familyTableFinder

private FamilyTableFinder familyTableFinder
Constructor Detail

PartCentricProcessor

public PartCentricProcessor(PartCentricProcessor.Options options)
Method Detail

getRelatedObjects

public List getRelatedObjects(Workable[] seedObjects,
                              PartCentricSelector selector)
                       throws WTException
Find the objects related to the selected parts such as their dependents, their associated CAD documents, drawings related to their associated CAD documents, etc. The options specified in the selector dictate what kinds of related objects to return.

Returns:
List of ObjectInfo objects, one for each related object found
Throws:
WTException

getRelatedObjects

private RelatedItemsProcessor.ObjectInfoCache getRelatedObjects(List selected,
                                                                PartCentricSelector selector)
                                                         throws WTException
Throws:
WTException

getAssociated

protected List getAssociated(List groups,
                             AssociatedObjects associated)
                      throws WTException
Throws:
WTException

getWTAssociated

private List getWTAssociated(List groups,
                             AssociatedObjects associated)
                      throws WTException
Throws:
WTException

getDrawings

protected List getDrawings(List groups,
                           AssociatedObjects associated)
                    throws WTException
Throws:
WTException