public class RestockProcessQT extends SimProcess
Stock with a fixed
 quantity (Q) of units on a periodic review bases (fixed Time span = T).| Constructor and Description | 
|---|
| RestockProcessQT(Model owner,
                java.lang.String name,
                long q,
                TimeSpan t,
                Stock client,
                boolean showInTrace)Constructs a  RestockProcessQTwhich restocks a clientStockafter a fixed time period with a fixed quantity of
 units. | 
| RestockProcessQT(Model owner,
                java.lang.String name,
                long q,
                TimeSpan t,
                Stock client,
                NumericalDist<?> lt,
                boolean showInTrace)Constructs a  RestockProcessQTwhich restocks a clientStockafter a fixed time period with a fixed quantity of
 units. | 
| 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. | 
| TimeSpan | getReviewSpan()Returns the time span between every replenishment of the
 Stock. | 
| void | lifeCycle()The  RestockProcessQTreplenishes the associatedStockwith the given quantity (Q) every period (T). | 
| void | setLeadTime(NumericalDist<java.lang.Double> 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 | setReviewSpan(TimeSpan newReviewSpan)Sets the review period 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 RestockProcessQT(Model owner, java.lang.String name, long q, TimeSpan t, Stock client, NumericalDist<?> lt, boolean showInTrace)
RestockProcessQT which restocks a client
 Stock after a fixed time period with a fixed quantity of
 units. 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 RestockProcessQT is
            associated toname - java.lang.String : The name of the
            RestockProcessQTq - long : The quantity supplied to the Stock with every order.t - TimeSpan : The time period between the inventory reviews (in
            this case also the placements of the orders).client - 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 RestockProcessQT
            in trace-files. Set it to true if
            RestockProcessQT should show up in trace. Set it to
            false if RestockProcessQT should not be shown
            in trace.public RestockProcessQT(Model owner, java.lang.String name, long q, TimeSpan t, Stock client, boolean showInTrace)
RestockProcessQT which restocks a client
 Stock after a fixed time period with a fixed quantity of
 units. The lead time is zero.owner - Model : The model this RestockProcessQT is
            associated toname - java.lang.String : The name of the
            RestockProcessQTq - long : The quantity supplied to the Stock with every order.t - TimeSpan : The time period between the inventory reviews (in
            this case also the placements of the orders).client - Stock : The Stock which will replenished.showInTrace - boolean : Flag for showing the RestockProcessQT
            in trace-files. Set it to true if
            RestockProcessQT should show up in trace. Set it to
            false if RestockProcessQT should not be shown
            in trace.public NumericalDist<?> getLeadTime()
public long getOrderQuantity()
public TimeSpan getReviewSpan()
public void lifeCycle()
               throws DelayedInterruptException,
                      InterruptException,
                      SuspendExecution
RestockProcessQT replenishes the associated
 Stock with the given quantity (Q) every period (T).lifeCycle in class SimProcessDelayedInterruptExceptionInterruptExceptionSuspendExecutionpublic void setLeadTime(NumericalDist<java.lang.Double> newLeadTime)
null the lead time is zero.newLeadTime - desmoj.dist.RealDist : 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 setReviewSpan(TimeSpan newReviewSpan)
newReviewPeriod - desmoj.SimTime : The new value for the review period.
            null will be rejected.