|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.TreeMap<java.lang.String,RtStpsNode>
gov.nasa.gsfc.drl.rtstps.core.RtStpsNodeFactory
public class RtStpsNodeFactory
This class is an RT-STPS node factory. It maps unique node ids to blank instances of nodes. The node id is the element tag in the xml configuration file and is a class variable. (It is not the same as a link name, which is the unique name given to one instance of a node.) To create a node, pass an id, and the factory returns a clone of the mapped node.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Field Summary | |
---|---|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
RtStpsNodeFactory()
|
Method Summary | |
---|---|
void |
addNode(java.lang.String id,
RtStpsNode node)
Add an RT-STPS node (RtStpsNode) object to the factory. |
RtStpsNode |
create(org.w3c.dom.Element element,
Configuration config)
Create an RtStpsNode. |
RtStpsNode |
create(java.lang.String id)
Create an RtStpsNode. |
Methods inherited from class java.util.TreeMap |
---|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, isEmpty, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode, isEmpty |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public RtStpsNodeFactory()
Method Detail |
---|
public void addNode(java.lang.String id, RtStpsNode node) throws RtStpsException
id
- A node type name, which often matches a element tag name.
It must be unique.node
- The RT-STPS node
RtStpsException
public RtStpsNode create(java.lang.String id) throws RtStpsException
id
- A node type name.
RtStpsException
public RtStpsNode create(org.w3c.dom.Element element, Configuration config) throws RtStpsException
element
- An XML element from the RT-STPS configuration file.
The element tag name is the RT-STPS Node id.config
- A collection of configuration items.
RtStpsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |