J-Sim v1.2.1-p7 API

drcl.util.queue
Interface FiniteVSQueue

All Superinterfaces:
Queue, VariableSizeQueue
All Known Implementing Classes:
FiniteVSFIFOQueue, FiniteVSQueueImpl, FiniteVSSimpleQueue

public interface FiniteVSQueue
extends VariableSizeQueue

Interface for implementing a variable-size queue with finite capacity. Base implementation is provided by FiniteVSQueueImpl.


Method Summary
 int getCapacity()
           
 boolean isFull()
          Returns true if this queue is full.
 boolean isFull(int size_)
          Returns true if this queue is overflowed with the addition of size_.
 void setCapacity(int cap_)
           
 
Methods inherited from interface drcl.util.queue.VariableSizeQueue
enqueue, enqueue, enqueueAfter, enqueueAt, getSize
 
Methods inherited from interface drcl.util.queue.Queue
_retrieveAll, contains, containsKey, dequeue, dequeue, diag, enqueue, enqueue, enqueueAfter, enqueueAt, firstElement, firstKey, getElementEnumerator, getKeyEnumerator, getLength, info, info, info, isEmpty, keys, lastElement, lastKey, merge, oneline, remove, remove, remove, removeAll, removeAll, reset, retrieveAll, retrieveAll, retrieveAt, retrieveBy, retrieveKey, retrieveKeyAt
 

Method Detail

getCapacity

public int getCapacity()

setCapacity

public void setCapacity(int cap_)

isFull

public boolean isFull()
Returns true if this queue is full.


isFull

public boolean isFull(int size_)
Returns true if this queue is overflowed with the addition of size_.


J-Sim v1.2.1-p7 API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~