public class BinAnimation extends Bin
QueueBased.QueueAction
FIFO, LIFO, RANDOM, UNDEFINED
Constructor and Description |
---|
BinAnimation(ModelAnimation owner,
java.lang.String name,
int consumerSortOrder,
int consumerQCapacity,
long initialUnits,
boolean showInReport,
boolean showInTrace)
Constructor with the same parameters as in Bin
|
BinAnimation(ModelAnimation owner,
java.lang.String name,
long initialUnits,
boolean showInReport,
boolean showInTrace)
Constructor with the same parameters as in Bin
|
Modifier and Type | Method and Description |
---|---|
void |
createAnimation(Position pos,
FormExt form,
boolean showInAnimation)
create animation with full parameterization
|
boolean |
retrieve(long noOfProducts)
A Consumer wants to retrieve noOfProducts
When the stock is full, he must wait in a queue of consumer
|
void |
store(long noOfProducts)
A Producer wants to store noOfProducts.
|
avgAvail, createDefaultReporter, getAvail, getConsumers, getInitial, getMaximum, getPassBy, getProducers, getQueueStrategy, getRefused, reset, setPassBy
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 BinAnimation(ModelAnimation owner, java.lang.String name, int consumerSortOrder, int consumerQCapacity, long initialUnits, boolean showInReport, boolean showInTrace)
owner
- used modelname
- as in BinconsumerSortOrder
- as in BinconsumerQCapacity
- as in BininitialUnits
- as in Bincapacity
- as in BinshowInReport
- as in BinshowInTrace
- as in Binpublic BinAnimation(ModelAnimation owner, java.lang.String name, long initialUnits, boolean showInReport, boolean showInTrace)
owner
- used modelname
- as in BininitialUnits
- as in BinshowInReport
- as in BinshowInTrace
- as in Binpublic void createAnimation(Position pos, FormExt form, boolean showInAnimation)
pos
- middle point of animation objectform
- form of animation objectshowInAnimation
- switch animation on or offpublic boolean retrieve(long noOfProducts) throws SuspendExecution