|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.TreeStorage
The TreeStorage
class stores all of the trees' operators and queues.
The HashMap
's 'key' is the XATTree
and the 'value'
is a HashMap
. This second HashMap
's 'key' is a String
('OPERATORS
' or 'QUEUES
') and 'value' is an ArrayList
of either operators
or queues. The list of operators and queues is unordered.
Constructor Summary | |
TreeStorage()
Initializes the TreeStorage HashMap . |
Method Summary | |
java.util.Iterator |
getAllOperators()
Returns an Iterator of all the operators. |
java.util.Iterator |
getAllQueues()
Returns an Iterator of all the queues. |
java.util.Iterator |
getAllTrees()
Returns an Iterator of all the trees. |
java.util.Set |
getKeys()
Returns a Set of keys (or XATTree s) of this HashMap . |
java.lang.Object |
getOperator(java.lang.String objectID)
Returns the XATStreamOperator with the given objectID . |
java.lang.Object |
getOperators(XATTree tree)
Returns an ArrayList of XATQueryObjects (operators) that belong
to the given tree . |
java.lang.Object |
getQueue(java.lang.String objectID)
Returns the XATQueue with the given objectID . |
java.lang.Object |
getQueues(XATTree tree)
Returns an ArrayList of XATQueryObjects (queues) that belong
to the given tree . |
java.lang.Object |
getTree(java.lang.String objectID)
Returns the XATTree with the given objectID . |
void |
setOperators(XATTree key,
java.util.ArrayList ops)
Puts the given tree's operators into the storage HashMap . |
void |
setQueues(XATTree key,
java.util.ArrayList qs)
Puts the given tree's queues into the storage HashMap . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeStorage()
TreeStorage HashMap
.
Method Detail |
public java.lang.Object getOperator(java.lang.String objectID)
XATStreamOperator
with the given objectID
.
public java.lang.Object getQueue(java.lang.String objectID)
XATQueue
with the given objectID
.
This unique id (i.e. T1_O3_Q0) is constructed by the string:
"T" + TREE_ID
+ "_O" + OBJECT_ID + "_Q" + queueNumber.
objectID
public java.lang.Object getTree(java.lang.String objectID)
XATTree
with the given objectID
.
public java.lang.Object getOperators(XATTree tree)
ArrayList
of XATQueryObjects
(operators) that belong
to the given tree
.
public java.lang.Object getQueues(XATTree tree)
ArrayList
of XATQueryObjects
(queues) that belong
to the given tree
.
public java.util.Iterator getAllOperators()
Iterator
of all the operators.
public java.util.Iterator getAllQueues()
Iterator
of all the queues.
public java.util.Iterator getAllTrees()
Iterator
of all the trees.
public java.util.Set getKeys()
Set
of keys (or XATTree
s) of this HashMap
.
public void setOperators(XATTree key, java.util.ArrayList ops)
HashMap
.
key
- - edu.wpi.cs.dsrg.xmldb.xat.common.treestructure.XATTreeops
- - java.util.ArrayListpublic void setQueues(XATTree key, java.util.ArrayList qs)
HashMap
.
key
- - edu.wpi.cs.dsrg.xmldb.xat.common.treestructure.XATTreeqs
- - java.util.ArrayList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |