DRCL J-Sim API

drcl.util.queue
Class FiniteVSQueueImpl

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.util.queue.QueueImpl
          extended bydrcl.util.queue.VariableSizeQueueImpl
              extended bydrcl.util.queue.FiniteVSQueueImpl
All Implemented Interfaces:
java.lang.Cloneable, FiniteVSQueue, ObjectCloneable, ObjectDuplicable, Queue, java.io.Serializable, VariableSizeQueue

public abstract class FiniteVSQueueImpl
extends VariableSizeQueueImpl
implements FiniteVSQueue

Base class for implementing a queue with variable-size elements.

See Also:
Serialized Form

Constructor Summary
FiniteVSQueueImpl()
           
 
Method Summary
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 void FiniteVSQueueImpl()
           
 void FiniteVSQueueImpl(int capacity_)
           
 int getCapacity()
           
 java.lang.String info(java.lang.String prefix_, boolean listElement_)
          Prints the content of the queue.
 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 merge(Queue that_)
          Enqueues the elements in that_ by the order of that_.dequeue().
 void setCapacity(int cap_)
           
 
Methods inherited from class drcl.util.queue.VariableSizeQueueImpl
enqueue, enqueue, enqueue, enqueueAfter, enqueueAfter, enqueueAt, enqueueAt, getSize
 
Methods inherited from class drcl.util.queue.QueueImpl
_retrieveAll, contains, containsKey, dequeue, dequeue, diag, enqueue, firstElement, firstKey, getElementEnumerator, getKeyEnumerator, getLength, info, info, isEmpty, keys, lastElement, lastKey, oneline, remove, remove, remove, removeAll, removeAll, reset, retrieveAll, retrieveAll, retrieveAt, retrieveBy, retrieveKey, retrieveKeyAt
 
Methods inherited from class drcl.DrclObj
clone, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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, isEmpty, keys, lastElement, lastKey, oneline, remove, remove, remove, removeAll, removeAll, reset, retrieveAll, retrieveAll, retrieveAt, retrieveBy, retrieveKey, retrieveKeyAt
 

Constructor Detail

FiniteVSQueueImpl

public FiniteVSQueueImpl()
Method Detail

FiniteVSQueueImpl

public void FiniteVSQueueImpl()

FiniteVSQueueImpl

public void FiniteVSQueueImpl(int capacity_)

getCapacity

public int getCapacity()
Specified by:
getCapacity in interface FiniteVSQueue

setCapacity

public void setCapacity(int cap_)
Specified by:
setCapacity in interface FiniteVSQueue

isFull

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

Specified by:
isFull in interface FiniteVSQueue

isFull

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

Specified by:
isFull in interface FiniteVSQueue

merge

public void merge(Queue that_)
Description copied from interface: Queue
Enqueues the elements in that_ by the order of that_.dequeue().

Specified by:
merge in interface Queue
Overrides:
merge in class VariableSizeQueueImpl

info

public java.lang.String info(java.lang.String prefix_,
                             boolean listElement_)
Description copied from interface: Queue
Prints the content of the queue.

Specified by:
info in interface Queue
Overrides:
info in class VariableSizeQueueImpl

duplicate

public void duplicate(java.lang.Object source_)
Description copied from class: DrclObj
opies the content of the source_ object to this object. he subclass must implement this method to realize DrclObj.clone().

Specified by:
duplicate in interface ObjectDuplicable
Overrides:
duplicate in class VariableSizeQueueImpl

DRCL J-Sim API

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