P
- public class QueueAnimation<P extends EntityAnimation> extends Queue<P> implements ListInterface
QueueBased.QueueAction
FIFO, LIFO, RANDOM, UNDEFINED
Constructor and Description |
---|
QueueAnimation(ModelAnimation owner,
java.lang.String name,
boolean showInReport,
boolean showInTrace) |
QueueAnimation(ModelAnimation owner,
java.lang.String name,
int sortOrder,
int qCapacity,
boolean showInReport,
boolean showInTrace) |
Modifier and Type | Method and Description |
---|---|
void |
createAnimation(Comment comment,
Position pos,
FormExt form,
boolean showInAnimation)
create animation with full parameterization
|
void |
createAnimation(Position pos,
FormExt form,
boolean showInAnimation)
create animation with full parameterization
|
java.lang.String |
getInternId()
gives the internal Id of this animation object.
|
boolean |
insert(P e)
insert Entity e in sortorder
|
boolean |
insertAfter(P e,
P after)
insert Entity e after SimProcess after
|
boolean |
insertBefore(P e,
P before)
insert SimProcess e before SimProcess before
|
void |
remove(Entity e)
Removes the given Entity from the Queue.
|
boolean |
remove(int index)
Removes the entity queued at the given position.
|
P |
removeFirst()
Removes the first entity from the queue and provides a reference to
this entity.
|
P |
removeFirst(Condition<P> c)
Removes the first entity from the queue that fulfills the given
condition.
|
P |
removeLast()
Removes the last entity from the queue and provides a reference to
this entity.
|
P |
removeLast(Condition<P> c)
Removes the last entity from the queue that fulfills to the given
condition, determined by traversing the queue from last to first until
an entity fulfilling the condition is found.
|
contains, createDefaultReporter, first, first, get, get, getQueueList, getQueueStrategy, getRefused, isEmpty, iterator, last, last, pred, pred, removeAll, reset, setQueueStrategy, setSeed, size, succ, succ
addObserver, averageLength, averageWaitTime, deleteObserver, getQueueLimit, length, maxLength, maxLengthAt, maxWaitTime, maxWaitTimeAt, minLength, minLengthAt, notifyObservers, setQueueImpWarning, stdDevLength, stdDevWaitTime, zeroWaits
getCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReporter
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public QueueAnimation(ModelAnimation owner, java.lang.String name, boolean showInReport, boolean showInTrace)
public QueueAnimation(ModelAnimation owner, java.lang.String name, int sortOrder, int qCapacity, boolean showInReport, boolean showInTrace)
public void createAnimation(Position pos, FormExt form, boolean showInAnimation)
pos
- middle point of animation objectform
- form of animation objectshowInAnimation
- switch animation on or offpublic void createAnimation(Comment comment, Position pos, FormExt form, boolean showInAnimation)
comment
- pos
- middle point of animation objectform
- form of animation objectcommentStyle
- commentSize
- commentColor
- commentSizeExt
- showInAnimation
- switch animation on or offpublic java.lang.String getInternId()
getInternId
in interface ListInterface
public boolean insert(P e)
insert
in class Queue<P extends EntityAnimation>
e
- public boolean insertAfter(P e, P after)
insertAfter
in class Queue<P extends EntityAnimation>
e
- after
- public boolean insertBefore(P e, P before)
insertBefore
in class Queue<P extends EntityAnimation>
e
- before
- public void remove(Entity e)
remove
in class Queue<P extends EntityAnimation>
e
- Entity : The Entity to be removedpublic boolean remove(int index)
remove
in class Queue<P extends EntityAnimation>
true
if an Entity
exists at the given position or false>
if otherwise.public P removeFirst()
null
is returned.removeFirst
in class Queue<P extends EntityAnimation>
null
in case the queue was emptypublic P removeFirst(Condition<P> c)
null
is returned.removeFirst
in class Queue<P extends EntityAnimation>
c
- Condition : The condition that the entity returned must fulfillNull
in case no entity
fulfills the condition.public P removeLast()
null
is returned.removeLast
in class Queue<P extends EntityAnimation>
null
in case the queue was emptypublic P removeLast(Condition<P> c)
null
is returned.removeLast
in class Queue<P extends EntityAnimation>
c
- Condition : The condition that the entity returned must fulfillNull
in case no entity
fulfills the condition.