|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.simulation.SimNodeRegistry
A factory and catalog (or index) of the available SimNodes and
utility methods for constructing the catalog and accessing it's members. The
simulation hierarchy is constructed by creating the simulation nodes through
this factory.
It should be noted that the hierarchy must be created from the bottom up - from the root (RootNode) through the branches (SystemNode) to the leaves (SatelliteNode).
SimNode,
ReferenceFrame| Constructor Summary | |
protected |
SimNodeRegistry()
Restricted Constructor |
| Method Summary | |
SimNode |
createNode(KineticBody body)
Create and add a SimNode to the registry and to it's
parent node. |
RootNode |
createRoot(java.lang.String rootID)
Create a new root SimNode. |
SatelliteNode |
createSatelliteNode(Satellite satellite)
Create and add a SatelliteNode to the registry and to it's
parent node. |
SystemNode |
createSystemNode(World world)
Create and add an SystemNode to the registry and to it's
parent node. |
static SimNodeRegistry |
getInstance()
Return the instance of the registry |
SimNode |
getNode(ReferenceFrame refFrame)
Return the SimNode that cooresponds to the argument. |
SimNode |
getNode(java.lang.String id)
Return the SimNode that cooresponds to the argument. |
RootNode |
getRoot()
Return the root SimNode. |
SystemNode |
getSystemNode(ReferenceFrame refFrame)
Return the SystemNode that cooresponds to the argument. |
boolean |
removeNode(ChildNode node)
Remove the argument SimNode from the registry and
from the descendant list of it's parent node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected SimNodeRegistry()
| Method Detail |
public static SimNodeRegistry getInstance()
public RootNode getRoot()
SimNode.
SimNode, if one exists, null otherwise.public RootNode createRoot(java.lang.String rootID)
SimNode. This will clear all nodes from the registry.
rootID - the unique identifier of the root node. null is considered to be an
invlaid value and null will be returned.public SimNode getNode(ReferenceFrame refFrame)
SimNode that cooresponds to the argument.
refFrame - A ReferenceFrame identifier of the
SimNode to return
SimNode if it exists in the
registry, null otherwisepublic SystemNode getSystemNode(ReferenceFrame refFrame)
SystemNode that cooresponds to the argument.
refFrame - A ReferenceFrame identifier of the
SystemNode to return
SystemNode if it exists in the
registry, null otherwisepublic SimNode getNode(java.lang.String id)
SimNode that cooresponds to the argument.
id - The unique identifier of the SimNode to return
SimNode if it exists in the
registry, null otherwisepublic SimNode createNode(KineticBody body)
SimNode to the registry and to it's
parent node.
body - the KineticBody to create the node for
SimNode if the node is
successfully created, it's parent is found and it has been added to
the registry. null if the SimNode cannot be
created, there is a system with the same id already registered, or the parent
node cannot be found. In the latter circumstance, no change is made to the
registery or to the node hierarchy.public SystemNode createSystemNode(World world)
SystemNode to the registry and to it's
parent node.
world - the World to create the node for
SystemNode if the node is
successfully created, it's parent is found and it has been added to
the registry. null if the SystemNode cannot be
created, there is a system with the same id already registered, or the parent
node cannot be found. In the latter circumstance, no change is made to the
registery or to the node hierarchy.public SatelliteNode createSatelliteNode(Satellite satellite)
SatelliteNode to the registry and to it's
parent node.
satellite - the Satellite to create the node for
SatelliteNode if the node is
successfully created, it's parent is found and it has been added to
the registry. null if the SatelliteNode cannot be
created, there is a node with the same id already registered, or the parent
node cannot be found. In the latter circumstance, no change is made to the
registery or to the node hierarchy.public boolean removeNode(ChildNode node)
SimNode from the registry and
from the descendant list of it's parent node.
node - the SimNode to remove
true if the system and it's parent were found
and the remove operation processed. false if either the
system or it's parent could not be found and the remove operation
was not processed.
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||