|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.primordion.xholon.base.Xholon org.primordion.xholon.base.InheritanceHierarchy
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 | |
int |
searchAlgorithm
|
Fields inherited from class org.primordion.xholon.base.Xholon |
DEFAULT_LEVEL, interaction, interactionsEnabled |
Fields inherited from interface org.primordion.xholon.base.IInheritanceHierarchy |
CLASSID_NOT_FOUND, EOF, GETCLASSNODE_HASHTABLE, GETCLASSNODE_TREESEARCH, NAVINFO_SEPARATOR, 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 |
Constructor Summary | |
InheritanceHierarchy()
|
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. |
static java.lang.String |
getXincludePath()
Get parameter XInclude path. |
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. |
static void |
setXincludePath(java.lang.String xiPath)
Set parameter XInclude path. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int searchAlgorithm
Constructor Detail |
public InheritanceHierarchy()
Method Detail |
public void setTreeNodeFactory(ITreeNodeFactory f)
IInheritanceHierarchy
setTreeNodeFactory
in interface IInheritanceHierarchy
f
- The TreeNodeFactory instance.public static void setXincludePath(java.lang.String xiPath)
xiPath
- The path ex: "./config/_common/" .public static java.lang.String getXincludePath()
public XholonClass getClassNode(int xhClassId)
IInheritanceHierarchy
getClassNode
in interface IInheritanceHierarchy
xhClassId
- The numeric ID.
public XholonClass getClassNode(java.lang.String xhClassName)
IInheritanceHierarchy
getClassNode
in interface IInheritanceHierarchy
xhClassName
- Name of the XholonClass (ex: "HelloWorld").
public XholonClass getTheRootNode()
IInheritanceHierarchy
getTheRootNode
in interface IInheritanceHierarchy
public void populateFromFile(java.lang.String fileName)
IInheritanceHierarchy
populateFromFile
in interface IInheritanceHierarchy
fileName
- The name of the inheritance hierarchy file (ex: InheritanceHierarchy.xml).public void populateAttributesFromFile(java.lang.String fileName)
IInheritanceHierarchy
populateAttributesFromFile
in interface IInheritanceHierarchy
fileName
- Name of the file containing the XholonClass details (ex: ClassDetails.xml).public void printInheritanceHierarchy()
IInheritanceHierarchy
printInheritanceHierarchy
in interface IInheritanceHierarchy
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |