EVEDemo.SWEEP
Class MessageQueue

java.lang.Object
  |
  +--EVEDemo.SWEEP.Queue
        |
        +--EVEDemo.SWEEP.MessageQueue

public class MessageQueue
extends Queue
implements java.io.Serializable

See Also:
Serialized Form

Fields inherited from class EVEDemo.SWEEP.Queue
current, head, index, size, tail, wl
 
Constructor Summary
MessageQueue()
           
 
Method Summary
 boolean exists(int theIndex)
           
 Relation peek(int theIndex)
          Get the data update from a specific information sources.
 Element peekNext()
          Peek the next element in the queue for future use.
 Relation peekNext(int theIndex)
          Get the next data update from the specific information sources.
 Element remove()
          Get one Message from the MessageQueue and remove it.
 
Methods inherited from class EVEDemo.SWEEP.Queue
Append, dequeue, Dequeue, enqueue, Enqueue, getFirst, getNext, increase, Initialize, isEmpty, isFull, length
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

MessageQueue

public MessageQueue()
Method Detail

exists

public boolean exists(int theIndex)

peek

public Relation peek(int theIndex)
              throws java.lang.Exception
Get the data update from a specific information sources. peek and peeknext should be called within one loop.

peekNext

public Relation peekNext(int theIndex)
                  throws java.lang.Exception
Get the next data update from the specific information sources. It should be used with the peek() function.

remove

public Element remove()
Get one Message from the MessageQueue and remove it. If the Queue is empty, it will wait for a while and retry again.

peekNext

public Element peekNext()
Peek the next element in the queue for future use. e.g. to lock it.