public class WaitQueueAnimation extends WaitQueue
QueueBased.QueueAction
FIFO, LIFO, RANDOM, UNDEFINED
Constructor and Description |
---|
WaitQueueAnimation(ModelAnimation owner,
java.lang.String name,
boolean showInReport,
boolean showInTrace)
Constructor with same parameters as WaitQueue
|
WaitQueueAnimation(ModelAnimation owner,
java.lang.String name,
int masterSortOrder,
int masterQCapacity,
int slaveSortOrder,
int slaveQCapacity,
boolean showInReport,
boolean showInTrace)
Constructor with same parameters as WaitQueue
|
Modifier and Type | Method and Description |
---|---|
boolean |
animationIsOn() |
boolean |
cooperate(ProcessCoopAnimation coop)
This method is called from a SimProcessAnimation which wants to
cooperate as master
|
boolean |
cooperate(ProcessCoopAnimation coop,
Condition cond)
This method is called from a SimProcessAnimation which wants to
cooperate as master and is looking for a slave complying to a certain
condition described in cond
|
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 |
waitOnCoop()
This method is called from a SimProcessAnimation which wants to
cooperate as a slave.
|
avail, availMaster, cancelCoop, cooperate, cooperate, createDefaultReporter, getCooperationsCompleted, getMQueueStrategy, getMRefused, getMRemoved, getSlaveQueue, getSQueueStrategy, getSRefused, getSRemoved, mAverageCoopTime, mAverageLength, mAverageWaitTime, mIsEmpty, mLength, mMaxLength, mMaxLengthAt, mMaxWaitTime, mMaxWaitTimeAt, mMinLength, mMinLengthAt, mStdDevLength, mStdDevWaitTime, mZeroWaits, reset, sAverageLength, sAverageWaitTime, sIsEmpty, sLength, sMaxLength, sMaxLengthAt, sMaxWaitTime, sMaxWaitTimeAt, sMinLength, sMinLengthAt, sStdDevLength, sStdDevWaitTime, sZeroWaits
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 WaitQueueAnimation(ModelAnimation owner, java.lang.String name, int masterSortOrder, int masterQCapacity, int slaveSortOrder, int slaveQCapacity, boolean showInReport, boolean showInTrace)
owner
- used modelname
- as in WaitQueuemasterSortOrder
- as in WaitQueuemasterQCapacity
- as in WaitQueueslaveSortOrder
- as in WaitQueueslaveQCapacity
- as in WaitQueueshowInReport
- as in WaitQueueshowInTrace
- as in WaitQueuepublic WaitQueueAnimation(ModelAnimation owner, java.lang.String name, boolean showInReport, boolean showInTrace)
owner
- used modelname
- as in WaitQueueshowInReport
- as in WaitQueueshowInTrace
- as in WaitQueuepublic void createAnimation(Position pos, FormExt form, boolean showInAnimation)
id
- internal objectId for animation. Must be unique.pos
- middle point of animation objectform
- form of animation objectshowInAnimation
- switch animation on or offpublic java.lang.String getInternId()
public boolean cooperate(ProcessCoopAnimation coop) throws SuspendExecution
coop
- as in waitQueueSuspendExecution
public boolean cooperate(ProcessCoopAnimation coop, Condition cond) throws SuspendExecution
coop
- as in waitQueuecond
- as in waitQueueSuspendExecution
public boolean waitOnCoop() throws SuspendExecution
waitOnCoop
in class WaitQueue
true
if the process can be enqueued
successfully, false
otherwise (i.e. capacity limit
of the slave queue is reached).SuspendExecution
public boolean animationIsOn()