public class QueueListRandom<E extends Entity> extends QueueListStandard<E> implements java.beans.PropertyChangeListener
QueueBased object. The QueueListStandardFifo
has a reference to its QueueBased object. This class needs a
reference to a subclass of QueueBased to update the queue statistics.
It is used in many kinds of queue implementations i.e. in classes
Queue and ProcessQueue.QueueList,
QueueBased,
Queue,
ProcessQueue| Constructor and Description |
|---|
QueueListRandom()
Constructs an empty
QueueListStandardFifo with no reference to its
client QueueBased. |
| Modifier and Type | Method and Description |
|---|---|
void |
insert(E e)
Adds a new Entity to the QueueListStandardFifo.
|
void |
setSeed(long newSeed)
Sets the seed of this queue list's pseudo random number generator.
|
contains, first, get, get, getAbbreviation, isEmpty, last, propertyChange, remove, remove, succ, toStringiterator, setQueueBased, sizepublic QueueListRandom()
QueueListStandardFifo with no reference to its
client QueueBased. This no-arg constructor is necessary to instantiate an
object of this class by calling the
java.lang.Class.newInstance() method. The reference to the
QueueBased object making use of this queue-functionality must be provided
later by calling the setQueueBased() method. The initial length is always
zero.public void insert(E e)
insert in class QueueListStandard<E extends Entity>e - Entity : The Entity to add to the QueueListStandardFifopublic void setSeed(long newSeed)
newSeed - long : new seed this queue list's pseudo random number generator