Jeospace API

org.jeospace.simulation
Interface ParentNode

All Superinterfaces:
SimNode
All Known Implementing Classes:
RootNode, SystemNode

public interface ParentNode
extends SimNode

Define the requirements for a simulation node that may be grouping node for other simulation nodes.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

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 descendant ChildNodes.
 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 interface org.jeospace.simulation.SimNode
getID, getStructure
 

Method Detail

addChild

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

Parameters:
node - the new descendant SimNode

removeChild

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

Parameters:
node - the descendant SimNode to remove

getChild

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

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 descendant ChildNodes. If no descendants are defined, null will be returned.

Returns:
the List of descendant ChildNodes

hasChildren

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

Returns:
true if this node has children, false if not.

Jeospace API

Copyright © 2006 - jeospace.org