|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.TimeStampQueue
TimeStampQueue represents priority time stamp queue for time stamp order (TSO) messages. Timestamp messages are sorted by the time value.
HLAMessage| Field Summary | |
private java.util.LinkedList |
list
List used as a queue for time stamp messages. |
| Constructor Summary | |
TimeStampQueue()
Creates an instance of TimeStampQueue. |
|
| Method Summary | |
HLAMessage |
dequeue()
Dequeues and returns first message in queue or null if the queue is epmty. |
void |
enqueue(HLAMessage message)
Enqueues specified message into the queue. |
LogicalTime |
getHeadTimeStamp()
Returns time stamp of first message in the queue or null if the queue is epmty. |
int |
getLength()
Returns the length of the queue. |
boolean |
isEmpty()
Returns true if the queue is empty, false otherwise. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.LinkedList list
| Constructor Detail |
public TimeStampQueue()
| Method Detail |
public boolean isEmpty()
public void enqueue(HLAMessage message)
message - message to enqueuepublic HLAMessage dequeue()
public LogicalTime getHeadTimeStamp()
public int getLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||