|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.visitor.VisitorAdapter
wt.visitor.TextOutputVisitor
wt.part.BOMPartsListVisitor
This class is a Visitor that maintains a list of parts (nodes) as the
structure is navigated. The usage information (links) is maintained
internally. After navigation is complete, the parts list table represents
the entire list of parts that make up the structure. Only parts that
do not use any other parts (i.e. leaf nodes) are included. The keys
in this table are the part identities and the associated value is the
usage information.
Supported API: true
Extendable: true
Field Summary | |
private Hashtable |
assemblies
|
private static String |
CLASSNAME
|
private Hashtable |
partsList
|
private static int |
PRODUCT
|
private static String |
RESOURCE
|
private static int |
SUM
|
Fields inherited from class wt.visitor.TextOutputVisitor |
|
Constructor Summary | |
BOMPartsListVisitor()
|
Method Summary | |
Hashtable |
getConsolidatedPartsList()
|
private Object |
getLinkAttributes(Link link)
This method gets the attributes for this link. |
private Object |
getParentNodeAttributes(Persistable node)
This method gets the attributes for this node. |
Hashtable |
getPartsList()
Gets the object for the association that plays role: partsList. |
private Object |
processAttributes(Object previousAttributes,
Object attributes,
int operation)
This method processes the previous and current attributes as specified by the operation parameter. |
abstract void |
report()
This operation outputs a text report of the internal parts list. |
boolean |
visit(Persistable fromNode,
Link link,
Persistable toNode,
int level,
boolean previouslyVisited)
Visit a node. |
Methods inherited from class wt.visitor.TextOutputVisitor |
getLocale, getPrintWriter, getResourceBundle, printLocalizedMessage, printLocalizedMessage, printLocalizedMessage, setLocale, setPrintWriter, setPrintWriter, setResourceBundle |
Methods inherited from class wt.visitor.VisitorAdapter |
visitLevel, visitLevel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Hashtable partsList
private Hashtable assemblies
private static final int SUM
private static final int PRODUCT
Constructor Detail |
public BOMPartsListVisitor()
Method Detail |
public Hashtable getPartsList()
public final boolean visit(Persistable fromNode, Link link, Persistable toNode, int level, boolean previouslyVisited) throws WTException
visit
in interface Visitor
visit
in class VisitorAdapter
fromNode
- link
- toNode
- level
- previouslyVisited
-
WTException
public abstract void report()
private Object getParentNodeAttributes(Persistable node) throws WTException
WTException
private Object getLinkAttributes(Link link) throws WTException
WTException
private Object processAttributes(Object previousAttributes, Object attributes, int operation) throws WTException
WTException
public Hashtable getConsolidatedPartsList()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |