cnrg.itx.datax.devices
Class JABQueue

java.lang.Object
  |
  +--cnrg.itx.datax.devices.JABQueue

class JABQueue
extends java.lang.Object

Queue structure that is optimized to store JAudioBlocks. Makes use of the JAudioBlock.jabNext (which shouldn't be used by any other queue!!!).


Field Summary
private  JAudioBlock jabHead
           
private  JAudioBlock jabTail
           
 
Constructor Summary
JABQueue()
          creates the queue
 
Method Summary
 JAudioBlock dequeue()
          removes a block from the queue.
 void enqueue(JAudioBlock jab)
          Puts a JAudioBlock into the queue.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

jabHead

private JAudioBlock jabHead

jabTail

private JAudioBlock jabTail
Constructor Detail

JABQueue

public JABQueue()
creates the queue
Method Detail

enqueue

public void enqueue(JAudioBlock jab)
Puts a JAudioBlock into the queue.
Parameters:
jab - the block to enqueue

dequeue

public JAudioBlock dequeue()
removes a block from the queue.
Returns:
JAudioBlock the block at the tail of the queue. null if there is none.