|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An InheritanceHierarchy represents a hierarchy (tree) of XholonClass nodes that inherit from other XholonClass nodes. It encapsulates the root node of a XholonClass hierarchy (rootNode). Primary roles of the InheritanceHierarchy are: (1) to read a XholonClass hierarchy in from a file (ex: InheritanceHierarchy.xml) and store the nodes in a tree, and (2) to read XholonClass details in from a file (ex: ClassDetails.txt).
Field Summary | |
static int |
CLASSID_NOT_FOUND
|
static int |
EOF
|
static int |
GETCLASSNODE_HASHTABLE
|
static int |
GETCLASSNODE_TREESEARCH
|
static char |
NAVINFO_SEPARATOR
|
static int |
NEXTIDLOCAL_INITIAL
|
Fields inherited from interface org.primordion.xholon.base.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
Method Summary | |
XholonClass |
getClassNode(int xhClassId)
Get reference to a XholonClass node, specified by its numeric ID. |
XholonClass |
getClassNode(java.lang.String xhClassName)
Get reference to a XholonClass node, specified by its name. |
XholonClass |
getTheRootNode()
Get the root node of the inheritance hierarchy. |
void |
populateAttributesFromFile(java.lang.String fileName)
Populate ports, attributes and other class details from file. |
void |
populateFromFile(java.lang.String fileName)
Populate the tree by reading items from a file. |
void |
printInheritanceHierarchy()
Print out the XholonClass names, in tree order. |
void |
setTreeNodeFactory(ITreeNodeFactory f)
Set singleton TreeNodeFactory. |
Field Detail |
public static final int EOF
public static final int CLASSID_NOT_FOUND
public static final char NAVINFO_SEPARATOR
public static final int NEXTIDLOCAL_INITIAL
public static final int GETCLASSNODE_TREESEARCH
public static final int GETCLASSNODE_HASHTABLE
Method Detail |
public void setTreeNodeFactory(ITreeNodeFactory f)
f
- The TreeNodeFactory instance.public XholonClass getClassNode(int xhClassId)
xhClassId
- The numeric ID.
public XholonClass getClassNode(java.lang.String xhClassName)
xhClassName
- Name of the XholonClass (ex: "HelloWorld").
public XholonClass getTheRootNode()
public void populateFromFile(java.lang.String fileName)
fileName
- The name of the inheritance hierarchy file (ex: InheritanceHierarchy.xml).public void populateAttributesFromFile(java.lang.String fileName)
fileName
- Name of the file containing the XholonClass details (ex: ClassDetails.xml).public void printInheritanceHierarchy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |