P - public class ProcessQueueAnimation<P extends SimProcessAnimation> extends ProcessQueue<P> implements ListInterface
QueueBased.QueueActionFIFO, LIFO, RANDOM, UNDEFINED| Constructor and Description |
|---|
ProcessQueueAnimation(ModelAnimation owner,
java.lang.String name,
boolean showInReport,
boolean showInTrace)
Constructor with the same parameters as in ProcessQueue
|
ProcessQueueAnimation(ModelAnimation owner,
java.lang.String name,
int sortOrder,
int qCapacity,
boolean showInReport,
boolean showInTrace)
Constructor with the same parameters as in ProcessQueue
|
| 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 SimProcess e in sortorder
|
boolean |
insertAfter(P e,
P after)
insert SimProcess e after SimProcess after
|
boolean |
insertBefore(P e,
P before)
insert SimProcess e before SimProcess before
|
boolean |
remove(int index)
Removes the process queued at the given position.
|
void |
remove(SimProcess e)
Removes the given SimProcess from the process-queue.
|
P |
removeFirst()
Removes the first process from the queue and provides a reference to
this process.
|
P |
removeFirst(Condition<P> c)
Removes the first process from the queue that fulfills to the given
condition.
|
P |
removeLast()
Removes the last process from the queue and provides a reference to
this process.
|
P |
removeLast(Condition<P> c)
Removes the last process from the queue that fulfills to the given
condition, determined by traversing the queue from last to first until
a process fulfilling the condition is found.
|
contains, createDefaultReporter, first, first, get, get, getQueueList, getQueueStrategy, getRefused, isEmpty, iterator, last, last, pred, pred, removeAll, reset, setQueueCapacity, setQueueStrategy, setRefused, size, succ, succaddObserver, averageLength, averageWaitTime, deleteObserver, getQueueLimit, length, maxLength, maxLengthAt, maxWaitTime, maxWaitTimeAt, minLength, minLengthAt, notifyObservers, setQueueImpWarning, stdDevLength, stdDevWaitTime, zeroWaitsgetCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReportercurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic ProcessQueueAnimation(ModelAnimation owner, java.lang.String name, boolean showInReport, boolean showInTrace)
owner - as in ProcessQueuename - as in ProcessQueueshowInReport - as in ProcessQueueshowInTrace - as in ProcessQueuepublic ProcessQueueAnimation(ModelAnimation owner, java.lang.String name, int sortOrder, int qCapacity, boolean showInReport, boolean showInTrace)
owner - as in ProcessQueuename - as in ProcessQueuesortOrder - possible values:
ProcessQueueAnimation.FIFO
ProcessQueueAnimation.LIFOqCapacity - capacity of queueshowInReport - as in ProcessQueueshowInTrace - as in ProcessQueuepublic 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 ListInterfacepublic boolean insert(P e)
insert in class ProcessQueue<P extends SimProcessAnimation>e - public boolean insertAfter(P e, P after)
insertAfter in class ProcessQueue<P extends SimProcessAnimation>e - after - public boolean insertBefore(P e, P before)
insertBefore in class ProcessQueue<P extends SimProcessAnimation>e - before - public void remove(SimProcess e)
remove in class ProcessQueue<P extends SimProcessAnimation>e - P :The SimProcess to be removed from the
process-queuepublic boolean remove(int index)
remove in class ProcessQueue<P extends SimProcessAnimation>true if a SimProcess
exists at the given position or false> if otherwise.public P removeFirst()
removeFirst in class ProcessQueue<P extends SimProcessAnimation>null in case the queue was emptypublic P removeFirst(Condition<P> c)
removeFirst in class ProcessQueue<P extends SimProcessAnimation>c - Condition : The condition that the process returned must fulfillNull in case no process
fulfills the condition.public P removeLast()
null is returned.removeLast in class ProcessQueue<P extends SimProcessAnimation>null in case the queue was emptypublic P removeLast(Condition<P> c)
null is returned.removeLast in class ProcessQueue<P extends SimProcessAnimation>c - Condition : The condition that the entity returned must fulfillNull in case no process
fulfills the condition.