public class RestockProcessMT extends SimProcess
Stock
up to a
maximum (M) inventory level on a periodic review bases (fixed Time span = T).Constructor and Description |
---|
RestockProcessMT(Model owner,
java.lang.String name,
long mil,
TimeSpan t,
Stock client,
boolean showInTrace)
Constructs a
RestockProcessMT which restocks a client
Stock after a fixed time period up to a maximum inventory
level. |
RestockProcessMT(Model owner,
java.lang.String name,
long mil,
TimeSpan t,
Stock client,
NumericalDist<?> lt,
boolean showInTrace)
Constructs a
RestockProcessMT which restocks a client
Stock after a fixed time period up to a maximum inventory
level. |
Modifier and Type | Method and Description |
---|---|
long |
getActualOrderQuantity()
Returns the quantity (number of units) to be stored in the Stock.
|
NumericalDist<?> |
getLeadTime()
Returns the random number distribution for the lead time (time between
placement and receipt of an order).
|
long |
getMaxInventoryLevel()
Returns the maximum inventory level to which the Stock will be refilled
in every cycle.
|
TimeSpan |
getReviewSpan()
Returns the time span between every replenishment of the
Stock.
|
void |
lifeCycle()
The
RestockProcessMT replenishes the associated
Stock up to the maximum (M) inventory level every period
(T). |
void |
setLeadTime(NumericalDist<java.lang.Double> newLeadTime)
Set the lead time to a new real random number distribution.
|
void |
setMaxInventoryLevel(long newMaxInventoryLevel)
Sets the maximum inventory level 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, setSlaveWaitQueue
getIdentNumber, 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, setQueueingPriority
assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportable
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 RestockProcessMT(Model owner, java.lang.String name, long mil, TimeSpan t, Stock client, NumericalDist<?> lt, boolean showInTrace)
RestockProcessMT
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 RestockProcessMT
is
associated toname
- java.lang.String : The name of the
RestockProcessMT
mil
- long : The maximum inventory level the Stock will be filled up
to 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 RestockProcessMT
in trace-files. Set it to true
if
RestockProcessMT should show up in trace. Set it to
false
if RestockProcessMT should not be shown
in trace.public RestockProcessMT(Model owner, java.lang.String name, long mil, TimeSpan t, Stock client, boolean showInTrace)
RestockProcessMT
which restocks a client
Stock
after a fixed time period up to a maximum inventory
level. The lead time is zero.owner
- Model : The model this RestockProcessMT
is
associated toname
- java.lang.String : The name of the
RestockProcessMT
mil
- long : The maximum inventory level the Stock will be filled up
to 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 RestockProcessMT
in trace-files. Set it to true
if
RestockProcessMT should show up in trace. Set it to
false
if RestockProcessMT should not be shown
in trace.public long getActualOrderQuantity()
public NumericalDist<?> getLeadTime()
public long getMaxInventoryLevel()
public TimeSpan getReviewSpan()
public void lifeCycle() throws SuspendExecution
RestockProcessMT
replenishes the associated
Stock
up to the maximum (M) inventory level every period
(T).lifeCycle
in class SimProcess
SuspendExecution
public void setLeadTime(NumericalDist<java.lang.Double> newLeadTime)
null
the lead time is zero.newLeadTime
- desmoj.dist.NumericalDistpublic void setMaxInventoryLevel(long newMaxInventoryLevel)
newMaxInventoryLevel
- long : The new maximum inventory level. Make sure it is
greater than zero and less than the capacity of the Stock.public void setReviewSpan(TimeSpan newReviewSpan)
newReviewPeriod
- desmoj.SimTime : The new value for the review period.
null
will be rejected.