JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.alsUtility
Class CircularIntQueue

java.lang.Object
  extended bygov.nasa.alsUtility.CircularIntQueue

public class CircularIntQueue
extends java.lang.Object


Field Summary
protected  int[] buffer
           
protected  int popIndex
           
protected  int pushIndex
           
 
Constructor Summary
CircularIntQueue(int length)
           
 
Method Summary
 int length()
           
 int pop()
           
 void push(int value)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pushIndex

protected int pushIndex

popIndex

protected int popIndex

buffer

protected int[] buffer
Constructor Detail

CircularIntQueue

public CircularIntQueue(int length)
Method Detail

reset

public void reset()

length

public int length()

push

public void push(int value)

pop

public int pop()

JavaGenes, NASA Ames. Written largely by Al Globus