Jeospace API

org.jeospace.simulation
Class RootNode

java.lang.Object
  extended byorg.jeospace.simulation.RootNode
All Implemented Interfaces:
ParentNode, SimNode

public class RootNode
extends java.lang.Object
implements ParentNode

The root node container of the simulation hierarchy.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Constructor Summary
RootNode(java.lang.String rootID)
          Constructor
 
Method Summary
 void addChild(ChildNode node)
          Add a new descendant SimNode to this node
 ChildNode getChild(java.lang.String id)
          Return the descendant ChildNode.
 java.util.List getChildren()
          Return the List of the child SimNodes.
 java.lang.String getID()
          Return the identifier of this node
 RootStructure getRootStructure()
          Return the RootStructure for the simulation.
 Structure getStructure()
          Return the Structure for this node.
 boolean hasChildren()
          Return a flag indicating whether this node has children
 void removeChild(ChildNode node)
          Remove an existing descendant SimNode from this node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootNode

public RootNode(java.lang.String rootID)
Constructor

Parameters:
rootID - the identifier of this node
Method Detail

getID

public java.lang.String getID()
Return the identifier of this node

Specified by:
getID in interface SimNode
Returns:
the identifier of this node

getStructure

public Structure getStructure()
Return the Structure for this node.

Specified by:
getStructure in interface SimNode
Returns:
the Structure for this node.

addChild

public void addChild(ChildNode node)
Add a new descendant SimNode to this node

Specified by:
addChild in interface ParentNode
Parameters:
node - the new descendant SimNode

removeChild

public void removeChild(ChildNode node)
Remove an existing descendant SimNode from this node

Specified by:
removeChild in interface ParentNode
Parameters:
node - the descendant SimNode to remove

getChild

public ChildNode getChild(java.lang.String id)
Return the descendant ChildNode.

Specified by:
getChild in interface ParentNode
Parameters:
id - the identifier of the descendant ChildNode to return.
Returns:
the descendant ChildNode

getChildren

public java.util.List getChildren()
Return the List of the child SimNodes. If no children are defined, null will be returned.

Specified by:
getChildren in interface ParentNode
Returns:
the List of children SimNodes

hasChildren

public boolean hasChildren()
Return a flag indicating whether this node has children

Specified by:
hasChildren in interface ParentNode
Returns:
true if this node has children, false if not.

getRootStructure

public RootStructure getRootStructure()
Return the RootStructure for the simulation.

Returns:
the RootStructure for the simulation.

Jeospace API

Copyright © 2006 - jeospace.org