|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.hgraph.HgraphManager
public class HgraphManager
| Field Summary | |
|---|---|
protected HgraphNode |
_node
hgraph impl |
| Fields inherited from interface ist.palcom.hgraph.IHgraphNode |
|---|
CHILD_NAME_CLASH, CIRCULARITY_CLASH, COMMAND_OR_NODE_MISSING, ERROR, HANDLER_MISSING, LISTENER_MISSING, NODE_NOT_CHILD, PATH_MISSING, SIBLING_ALREADY_EXISTS, SIBLING_NONEXISTENT, SIBLING_REFERENCE_ALREADY_EXISTS, SIBLING_REFERENCE_NONEXISTENT, STATUS_OK, VALUE_ALREADY_EXISTS, VALUE_NOT_PRESENT |
| Constructor Summary | |
|---|---|
HgraphManager(PalcomScheduler scheduler)
|
|
| Method Summary | |
|---|---|
int |
addNodeChild(IHgraphNode node)
|
boolean |
cd(java.lang.String path)
Checks whether a given path exists |
java.lang.String |
dir(java.lang.String path)
Returns the info for some given dir |
java.lang.String |
dirFull(java.lang.String path)
Returns the full info for some given dir |
java.lang.String |
dirRecursively(java.lang.String path)
Returns the recursive account of some given dir and its subdirs |
java.util.Iterator |
getChildIterator()
|
FuncFunc |
getFuncFunc()
|
java.lang.String |
getNodeName()
hgraph impl below |
IHgraphNode |
getNodeParent()
|
Path |
getPath()
|
SiblingFunc |
getSiblingFunc()
|
ValueFunc |
getValueFunc()
|
boolean |
hasChildNamed(java.lang.String name)
|
boolean |
isAncestorOf(IHgraphNode node)
|
int |
newNode(java.lang.String path,
java.lang.String name)
Creates a new node |
void |
queryEvent(HgraphEvent event)
Callback function for use by HgraphManager QueryHandler. |
int |
removeNode(java.lang.String path,
java.lang.String name)
Removes a given node |
int |
removeNodeChild(java.lang.String name)
|
void |
returnEvent(HgraphEvent event)
Callback function for use by HgraphManager ReturnHandler Used for either returning reposts to the original recipient through hgraphs or for returning regular blocking calls |
int |
setNodeName(java.lang.String name)
|
int |
setNodeName(java.lang.String path,
java.lang.String oldName,
java.lang.String newName)
Sets the name of a node |
int |
setNodeParent(IHgraphNode newParent)
|
java.lang.String |
toString()
|
java.lang.String |
toStringFull()
|
java.lang.String |
toStringFullRecursively(int indent)
|
java.lang.String |
toStringRecursively(int indent)
|
java.lang.String |
toStringSimple()
|
void |
updatePath()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected HgraphNode _node
| Constructor Detail |
|---|
public HgraphManager(PalcomScheduler scheduler)
| Method Detail |
|---|
public boolean cd(java.lang.String path)
path - the path
public java.lang.String dir(java.lang.String path)
path - the path of the node to dir
public java.lang.String dirRecursively(java.lang.String path)
path - the path of the node to dir
public java.lang.String dirFull(java.lang.String path)
path - the path of the node to dir
public int newNode(java.lang.String path,
java.lang.String name)
path - the path on which to install the nodename - the name of the new node
public int removeNode(java.lang.String path,
java.lang.String name)
path - parent the path of the nodename - the name of the node to be removed
public int setNodeName(java.lang.String path,
java.lang.String oldName,
java.lang.String newName)
path - The path of the node whose name is to be setname - the new name
public void returnEvent(HgraphEvent event)
event - The event holding the return informationpublic void queryEvent(HgraphEvent event)
event - The caught event holding reposting informationpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getNodeName()
getNodeName in interface IHgraphNodepublic int setNodeName(java.lang.String name)
setNodeName in interface IHgraphNodepublic Path getPath()
getPath in interface IHgraphNodepublic void updatePath()
updatePath in interface IHgraphNodepublic boolean hasChildNamed(java.lang.String name)
hasChildNamed in interface IHgraphNodepublic boolean isAncestorOf(IHgraphNode node)
isAncestorOf in interface IHgraphNodepublic int removeNodeChild(java.lang.String name)
removeNodeChild in interface IHgraphNodepublic java.lang.String toStringSimple()
toStringSimple in interface IHgraphNodepublic java.lang.String toStringFull()
toStringFull in interface IHgraphNodepublic java.lang.String toStringRecursively(int indent)
toStringRecursively in interface IHgraphNodepublic java.lang.String toStringFullRecursively(int indent)
toStringFullRecursively in interface IHgraphNodepublic int setNodeParent(IHgraphNode newParent)
setNodeParent in interface IHgraphNodepublic int addNodeChild(IHgraphNode node)
addNodeChild in interface IHgraphNodepublic SiblingFunc getSiblingFunc()
getSiblingFunc in interface IHgraphNodepublic ValueFunc getValueFunc()
getValueFunc in interface IHgraphNodepublic FuncFunc getFuncFunc()
getFuncFunc in interface IHgraphNodepublic IHgraphNode getNodeParent()
getNodeParent in interface IHgraphNodepublic java.util.Iterator getChildIterator()
getChildIterator in interface IHgraphNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||