org.gjt.universe
Class OrderQueueSet

java.lang.Object
  |
  +--org.gjt.universe.OrderQueueSet
All Implemented Interfaces:
java.io.Serializable

public final class OrderQueueSet
extends java.lang.Object
implements java.io.Serializable

This data structure is an array of hashtables. Each hashtable represents one order type. The hashtable is keyed off of the getKey method of Order.

See Also:
Serialized Form

Nested Class Summary
private  class OrderQueueSet.OrderQueueSetEnumeration
           
 
Field Summary
private  java.util.Vector names
          The name of each order type.
private  java.util.Hashtable[] queues
          The array of Hashtables of queues for each order type.
 
Constructor Summary
OrderQueueSet(java.util.Vector names)
          This Constructor takes a Vector of names for its argument.
 
Method Summary
 java.util.Enumeration elements()
          Used for iterating through the hashtables.
 java.lang.String getName(OrderQueueSetIndex index)
          Returns the name of the selected Hashtable.
 java.util.Hashtable getQueues(OrderQueueSetIndex index)
          Returns a Hashtable of queues.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queues

private java.util.Hashtable[] queues
The array of Hashtables of queues for each order type.


names

private java.util.Vector names
The name of each order type.

Constructor Detail

OrderQueueSet

public OrderQueueSet(java.util.Vector names)
This Constructor takes a Vector of names for its argument. These names will be automatically created from the names used in the OrderQueueSetEnumeration.

Parameters:
names - Vector of Strings
See Also:
OrderQueueSet.OrderQueueSetEnumeration
Method Detail

getQueues

public java.util.Hashtable getQueues(OrderQueueSetIndex index)
Returns a Hashtable of queues.

Parameters:
index - Selects the Queue Hashtable
Returns:
The requested Queue Hashtable

getName

public java.lang.String getName(OrderQueueSetIndex index)
Returns the name of the selected Hashtable.

Parameters:
index -
Returns:
Name of hashtable

elements

public java.util.Enumeration elements()
Used for iterating through the hashtables.



Copyright © 2001 Universe Dev Team All Rights Reserved.