public class StockAnimation extends Stock
QueueBased.QueueAction
FIFO, LIFO, RANDOM, UNDEFINED
Constructor and Description |
---|
StockAnimation(ModelAnimation owner,
java.lang.String name,
int producerSortOrder,
int producerQCapacity,
int consumerSortOrder,
int consumerQCapacity,
long initialUnits,
long capacity,
boolean showInReport,
boolean showInTrace)
Constructor with the same parameters as in Stock
|
StockAnimation(ModelAnimation owner,
java.lang.String name,
long initialUnits,
long capacity,
boolean showInReport,
boolean showInTrace)
Constructor with the same parameters as in Stock
|
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
|
boolean |
store(long noOfProducts)
A Producer wants to store noOfProducts.
|
addPropertyChangeListener, addPropertyChangeListener, avgAvail, createDefaultReporter, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAvail, getCapacity, getConsQueueStrategy, getConsRefused, getConsumers, getInitial, getMaximum, getMinimum, getPassByConsumers, getPassByProducers, getProdQueueStrategy, getProdRefused, getProducerQueue, getProducers, getRefused, getWhere, hasListeners, removePropertyChangeListener, removePropertyChangeListener, reset, setPassByConsumers, setPassByProducers
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 StockAnimation(ModelAnimation owner, java.lang.String name, int producerSortOrder, int producerQCapacity, int consumerSortOrder, int consumerQCapacity, long initialUnits, long capacity, boolean showInReport, boolean showInTrace)
owner
- used modelname
- as in StockproducerSortOrder
- as in StockproducerQCapacity
- as in StockconsumerSortOrder
- as in StockconsumerQCapacity
- as in StockinitialUnits
- as in Stockcapacity
- as in StockshowInReport
- as in StockshowInTrace
- as in Stockpublic StockAnimation(ModelAnimation owner, java.lang.String name, long initialUnits, long capacity, boolean showInReport, boolean showInTrace)
owner
- used modelname
- as in StockinitialUnits
- as in Stockcapacity
- as in StockshowInReport
- as in StockshowInTrace
- as in Stockpublic 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
public boolean store(long noOfProducts) throws SuspendExecution