neosim.implementation
Class PopulationTreeImpl

java.lang.Object
  |
  +--neosim.implementation.PopulationNodeImpl
        |
        +--neosim.implementation.PopulationTreeImpl

public class PopulationTreeImpl
extends PopulationNodeImpl
implements PopulationTree

A grouping node of the population tree - has a number of child population nodes

See Also:
Serialized Form

Constructor Summary
PopulationTreeImpl(java.lang.String name, PopulationNode parent)
           
 
Method Summary
 void addNode(PopulationNode n)
          Add a population to this grouping node
 void deleteNode(java.lang.String nname)
          Delete a population from this grouping node
 PopulationNode getChild(java.lang.String popName)
          Return the entity handle given the name
 java.util.Vector getChildren()
          Return the child populations of this node
 EntityID getEntityID(java.lang.String entityName)
          Return the entity handle given the name
 boolean isLeaf()
          Return true if this is a leaf node
 
Methods inherited from class neosim.implementation.PopulationNodeImpl
getName, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopulationTreeImpl

public PopulationTreeImpl(java.lang.String name,
                          PopulationNode parent)
Method Detail

addNode

public void addNode(PopulationNode n)
Add a population to this grouping node
Specified by:
addNode in interface PopulationTree
Parameters:
n - the node to add

deleteNode

public void deleteNode(java.lang.String nname)
Delete a population from this grouping node
Specified by:
deleteNode in interface PopulationTree
Parameters:
n - the node to delete

getChildren

public java.util.Vector getChildren()
Return the child populations of this node
Specified by:
getChildren in interface PopulationTree

getEntityID

public EntityID getEntityID(java.lang.String entityName)
Return the entity handle given the name
Specified by:
getEntityID in interface PopulationTree
Parameters:
entityName - the name of the entity to lookup

getChild

public PopulationNode getChild(java.lang.String popName)
Return the entity handle given the name
Specified by:
getChild in interface PopulationTree
Parameters:
popName - the name of the population to lookup

isLeaf

public boolean isLeaf()
Description copied from interface: PopulationNode
Return true if this is a leaf node