All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.syr.npac.webflow.impl.connection.ComputeQueue

java.lang.Object
   |
   +----edu.syr.npac.webflow.impl.connection.ComputeQueue

public class ComputeQueue
extends Object
Compute Queue Implementation

Constructor Index

 o ComputeQueue()

Method Index

 o addItem(Object)
Adds an Item to the message Queue
 o addItemToTop(Object)
Adds an Item to the top of the message Queue
 o dataAvailable()
Report the availability of data on the compute Queue
 o elements()
Return an enumeration of all the Widgets in the compute Queue
 o insertItem(Object, Object)
Inserts an item between 2 other items
 o nextItem()
Get the next Item from the message Queue
 o peekItem()
Returns the head of the computeQueue
 o queueSize()
Query the queue Size, corresponds to the number of messages unprocessed in the computeQueue.
 o removeAllItems()
Removes all Widgets from the compute Queue.
 o removeItem(Object)
Removes an Item from the compute Queue.
 o toObjectArray()
Convert the entire computeQueue into an Object Array
 o toString()
Convert the entire computeQueue into a String

Constructors

 o ComputeQueue
 public ComputeQueue()

Methods

 o addItem
 public synchronized void addItem(Object object)
Adds an Item to the message Queue

Parameters:
obj - The message to be added to the Message Queue, this could be either a Module type or any Object Type
See Also:
ComputeQueue, removeItem
 o addItemToTop
 public synchronized void addItemToTop(Object object)
Adds an Item to the top of the message Queue

Parameters:
obj - The message to be added to the Message Queue, this could be either a Module type or any Object Type
See Also:
ComputeQueue, addItem
 o nextItem
 public synchronized Object nextItem()
Get the next Item from the message Queue

Returns:
object The next messageWidget in the computeQueue.
See Also:
ComputeQueue, removeAllItems, addItem
 o insertItem
 public synchronized Object insertItem(Object object1,
                                       Object object3)
Inserts an item between 2 other items

 o removeItem
 public synchronized Object removeItem(Object object1)
Removes an Item from the compute Queue. This corresponds to the Object used as the parameter.

Parameters:
obj - The message to be removed from the compute Queue, this could be either a Module type or any Object Type
See Also:
ComputeQueue, removeAllItems, addItem
 o removeAllItems
 public synchronized void removeAllItems()
Removes all Widgets from the compute Queue. This corresponds to the Object used as the parameter.

Parameters:
obj - The message to be removed from the compute Queue, this could be either a Module type or any Object Type
See Also:
ComputeQueue, nextItem, addItem
 o peekItem
 public synchronized Object peekItem()
Returns the head of the computeQueue

See Also:
nextItem, addItem
 o dataAvailable
 public boolean dataAvailable()
Report the availability of data on the compute Queue

Returns:
true If there is data available
 o queueSize
 public int queueSize()
Query the queue Size, corresponds to the number of messages unprocessed in the computeQueue.

Returns:
size the compute Queue length
See Also:
dataAvailable
 o elements
 public synchronized Enumeration elements()
Return an enumeration of all the Widgets in the compute Queue

Returns:
enum The QueueEnumerator
 o toString
 public String toString()
Convert the entire computeQueue into a String

Returns:
string The String Representation of all the Widgets in the Queue
Overrides:
toString in class Object
 o toObjectArray
 public synchronized Object[] toObjectArray()
Convert the entire computeQueue into an Object Array

Returns:
Object[] The Object Representation of all the Widgets in the Queue

All Packages  Class Hierarchy  This Package  Previous  Next  Index