javax.realtime.DSS
Class PriorityWaiterSet

java.lang.Object
  extended byjavax.realtime.DSS.WaiterSet
      extended byjavax.realtime.DSS.PriorityWaiterSet

public class PriorityWaiterSet
extends WaiterSet

Collection type for queues of RealTimeThread's using priority ordering, and FIFO ordering for equal priorities.

Author:
gary

Field Summary
 
Fields inherited from class javax.realtime.DSS.WaiterSet
waiters
 
Constructor Summary
PriorityWaiterSet()
          Void constructor.
 
Method Summary
 RealtimeThread dequeue()
          Dequeue the next RealTimeThread from this WaiterSet.
 void enqueue(RealtimeThread thread)
          Enqueue the given RealTimeThread.
 RealtimeThread first()
          Dequeue the highest ranked RealtimeThread in the wait set.
 java.lang.String toString()
          Construct a printable representation of this PriorityWaiterSet.
 
Methods inherited from class javax.realtime.DSS.WaiterSet
isEmpty, iterator, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PriorityWaiterSet

public PriorityWaiterSet()
Void constructor.

Method Detail

dequeue

public RealtimeThread dequeue()
Dequeue the next RealTimeThread from this WaiterSet.

Specified by:
dequeue in class WaiterSet
Returns:
the RealTimeThread dequeued.

enqueue

public void enqueue(RealtimeThread thread)
Enqueue the given RealTimeThread. Order is by priority, with FIFO order within priorities.

Specified by:
enqueue in class WaiterSet
Parameters:
thread - the RealTimeThread to be enqueued.

first

public RealtimeThread first()
Dequeue the highest ranked RealtimeThread in the wait set. Do not dequeue it.

Specified by:
first in class WaiterSet

toString

public java.lang.String toString()
Construct a printable representation of this PriorityWaiterSet.