|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.simulation.SystemNode
A hierarchically organized container for World and
SystemStructure of an orbital object representing a world.
A world may be:
SystemNode contains methods for acquiring the parent and
children of this system.
SimNode,
World,
Structure,
SystemStructure| Constructor Summary | |
SystemNode(World world)
Construct an instance initialized with the primary world of this system. |
|
SystemNode(World world,
SimNode parent)
Construct an instance initialized with the primary world of this system. |
|
| Method Summary | |
void |
addChild(ChildNode node)
Add a new descendant ChildNode to this system's list
of orbital objects. |
ChildNode |
getChild(java.lang.String id)
Return the descendant ChildNode. |
java.util.List |
getChildren()
Return the List of the descendant ChildNodes. |
java.lang.String |
getID()
Return the identifier of this SystemNode |
SimNode |
getParent()
Return the parent SimNode of this system. |
SatelliteNode |
getSatelliteNode(java.lang.String id)
Return the SatelliteNode matching the search parameters. |
java.util.List |
getSatelliteNodes()
Return the List of this system's SatelliteNodes. |
Structure |
getStructure()
Return the Structure for the primary world of this system. |
SystemNode |
getSystemNode(java.lang.String id)
Return the descendant SystemNode. |
java.util.List |
getSystemNodes()
Return the List of the descendant SystemNodes. |
SystemStructure |
getSystemStructure()
Return the SystemStructure for the primary world of this system. |
World |
getWorld()
Return the properties for the primary world of this system. |
boolean |
hasChildren()
Return a flag indicating whether this node has children |
void |
removeChild(ChildNode node)
Remove an existing descendant ChildNode from this system's
list of orbital objects. |
void |
setSystemStructure(SystemStructure structure)
Set the SystemStructure for the primary world of this system. |
java.lang.String |
toString()
Return the String identifier of this SystemNode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SystemNode(World world)
world - the properties for the primary world of this system.
public SystemNode(World world,
SimNode parent)
world - the properties for the primary world of this system.parent - the parent node for this system.| Method Detail |
public java.lang.String getID()
SystemNode
getID in interface SimNodeSystemNodepublic Structure getStructure()
Structure for the primary world of this system.
getStructure in interface SimNodeStructure for the primary world of this system.public SimNode getParent()
SimNode of this system.
getParent in interface ChildNodeSimNode of this system.public void addChild(ChildNode node)
ChildNode to this system's list
of orbital objects.
addChild in interface ParentNodenode - the new descendant SystemNodepublic void removeChild(ChildNode node)
ChildNode from this system's
list of orbital objects.
removeChild in interface ParentNodenode - the descendant ChildNode to removepublic ChildNode getChild(java.lang.String id)
ChildNode.
getChild in interface ParentNodeid - the identifier of the descendant ChildNode to return.
ChildNodepublic java.util.List getChildren()
List of the descendant ChildNodes. If no
descendants are defined, null will be returned.
getChildren in interface ParentNodeList of descendant SystemNodespublic boolean hasChildren()
hasChildren in interface ParentNodetrue if this node has children, false if not.public World getWorld()
public SystemStructure getSystemStructure()
SystemStructure for the primary world of this system.
SystemStructure for the primary world of this system.public void setSystemStructure(SystemStructure structure)
SystemStructure for the primary world of this system.
structure - SystemStructure for the primary world of this system.public SystemNode getSystemNode(java.lang.String id)
SystemNode.
id - the identifier of the descendant SystemNode to return.
SystemNodepublic java.util.List getSystemNodes()
List of the descendant SystemNodes. If no
descendant systems are defined, null will be returned. The returned list
SHOULD NOT be changed by the application.
List of descendant SystemNodespublic SatelliteNode getSatelliteNode(java.lang.String id)
SatelliteNode matching the search parameters. If none
is found, null will be returned.
id - the unique identifier of the satellite
SatelliteNodepublic java.util.List getSatelliteNodes()
List of this system's SatelliteNodes. If none
are currently defined, null will be returned.
List of the system's SatelliteNodespublic java.lang.String toString()
String identifier of this SystemNode
String identifier of this SystemNode
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||