public class RestockProcessQS extends SimProcess implements java.beans.PropertyChangeListener
Stock with a fixed
given quantity (Q) every time a given safety (S) stock level is reached.| Constructor and Description |
|---|
RestockProcessQS(Model owner,
java.lang.String name,
long q,
long safetyStk,
Stock client,
boolean showInTrace)
Constructs a
RestockProcessQS which restocks a client
Stock with a fixed quantity every time the safety stock is
reached. |
RestockProcessQS(Model owner,
java.lang.String name,
long q,
long safetyStk,
Stock client,
NumericalDist<?> lt,
boolean showInTrace)
Constructs a
RestockProcessQS which restocks a client
Stock after a fixed time period up to a maximum inventory
level. |
| Modifier and Type | Method and Description |
|---|---|
NumericalDist<?> |
getLeadTime()
Returns the random number distribution for the lead time (time between
placement and receipt of an order).
|
long |
getOrderQuantity()
Returns the quantity (number of units) to be stored in the Stock.
|
long |
getSafetyStockLevel()
Returns the safety stock level.
|
void |
lifeCycle()
The
RestockProcessQS replenishes the associated
Stock with the given quantity of units (Q) every time the
inventory level dropped below the safety (S) stock level. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Informs the RestockProcessQS every time the inventory level of the Stock
changes.
|
void |
setLeadTime(NumericalDist<?> newLeadTime)
Set the lead time to a new real random number distribution.
|
void |
setOrderQuantity(long newOrderQuantity)
Sets the order quantity to a new value.
|
void |
setSafetyStockLevel(long newSafetyStk)
Sets the safety stock level to a new value.
|
activate, activate, activate, activateAfter, activateBefore, activatePreempt, cancelInterruptDelayed, canCooperate, clearInterruptCode, cooperate, getActivatedBy, getInterruptCode, getInterruptException, getMaster, getRealTimeConstraint, getSchedulingPriority, getSlaveWaitQueue, getSupervisor, hold, hold, hold, interrupt, interrupt, interruptDelayed, interruptDelayed, isBlocked, isComponent, isDelayedInterruptScheduled, isInterrupted, isRepeating, isTerminated, obtainResources, passivate, prepareTransport, reActivate, reActivate, resetMaster, returnAllResources, returnResources, setBlocked, setRealTimeConstraint, setRepeating, setSchedulingPriority, setSlaveWaitQueuegetIdentNumber, getQueueingPriority, getQueues, getScheduledEvents, isEqual, isLarger, isLargerOrEqual, isNotEqual, isQueued, isSimProcess, isSmaller, isSmallerOrEqual, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleAfter, scheduleAfter, scheduleAfter, scheduleBefore, scheduleBefore, scheduleBefore, schedulePreempt, schedulePreempt, schedulePreempt, setQueueingPriorityassignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportablecurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic RestockProcessQS(Model owner, java.lang.String name, long q, long safetyStk, Stock client, NumericalDist<?> lt, boolean showInTrace)
RestockProcessQS which restocks a client
Stock after a fixed time period up to a maximum inventory
level. The lead time (time gap between placement and receipt of an order)
will be given as a real random number distribution.owner - Model : The model this RestockProcessQS is
associated toname - java.lang.String : The name of the
RestockProcessQSq - long : The quantity supplied to the Stock with every order.safetyStk - long : The safety stock. When this inventory level is reached
an order will be placedclient - Stock : The Stock which will replenished.lt - NumericalDist> : The lead time random number
distribution to determine the time between placement and
receipt of an order. If null the lead time is
zero.showInTrace - boolean : Flag for showing the RestockProcessQS
in trace-files. Set it to true if
RestockProcessQS should show up in trace. Set it to
false if RestockProcessQS should not be shown
in trace.public RestockProcessQS(Model owner, java.lang.String name, long q, long safetyStk, Stock client, boolean showInTrace)
RestockProcessQS which restocks a client
Stock with a fixed quantity every time the safety stock is
reached. The lead time is zero.owner - Model : The model this RestockProcessQS is
associated toname - java.lang.String : The name of the
RestockProcessQSq - long : The quantity supplied to the Stock with every order.safetyStk - long : The safety stock. When this inventory level is reached
an order will be placedclient - Stock : The Stock which will replenished.showInTrace - boolean : Flag for showing the RestockProcessQS
in trace-files. Set it to true if
RestockProcessQS should show up in trace. Set it to
false if RestockProcessQS should not be shown
in trace.public NumericalDist<?> getLeadTime()
public long getOrderQuantity()
public long getSafetyStockLevel()
public void lifeCycle()
throws SuspendExecution
RestockProcessQS replenishes the associated
Stock with the given quantity of units (Q) every time the
inventory level dropped below the safety (S) stock level.lifeCycle in class SimProcessSuspendExecutionpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerevt - java.beans.PropertyChangeEvent : Informing the event about an
inventory level change of the Stock.public void setLeadTime(NumericalDist<?> newLeadTime)
null the lead time is zero.newLeadTime - NumericalDist> : The new real random number distribution
determining the lead time.public void setOrderQuantity(long newOrderQuantity)
newOrderQuantity - long : Choose a postitive value greater than zero as new order
quantity.public void setSafetyStockLevel(long newSafetyStk)
newSafetyStk - long : The new safety stock level. Make sure it is greater
than zero and less than the capacity of the Stock.