Package jsl.modeling.resource
Class Request.PreparedState
- java.lang.Object
-
- jsl.simulation.State
-
- jsl.modeling.resource.Request.RequestState
-
- jsl.modeling.resource.Request.PreparedState
-
- All Implemented Interfaces:
StateAccessorIfc
,GetNameIfc
,IdentityIfc
- Enclosing class:
- Request
protected class Request.PreparedState extends Request.RequestState
A Request that is prepared can wait, be canceled, or transition to being in allocate.
-
-
Field Summary
-
Fields inherited from class jsl.simulation.State
myCollectSojournStatisticsFlag, myEnteredTime, myExitedTime, myInStateIndicator, myName, myNumTimesEntered, myNumTimesExited, myStatistic, myTimeFirstEntered, myTotalStateTime
-
-
Constructor Summary
Constructors Constructor Description PreparedState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
allocate(ResourceUnit unit, double time)
protected void
cancel(double time)
protected void
prepare(double time)
protected void
queue(Queue<Request> queue, double time)
-
Methods inherited from class jsl.modeling.resource.Request.RequestState
complete, dequeue, preempt, reject, resume
-
Methods inherited from class jsl.simulation.State
enter, exit, getId, getName, getNumber, getNumberOfTimesEntered, getNumberOfTimesExited, getSojournTimeCollectionFlag, getSojournTimeStatistic, getTimeFirstEntered, getTimeStateEntered, getTimeStateExited, getTotalTimeInState, initialize, isEntered, onEnter, onExit, resetSojournTimeStatistics, resetStateCollection, setName, toString, turnOffSojournTimeCollection, turnOnSojournTimeCollection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jsl.simulation.StateAccessorIfc
getTimeInState
-
-
-
-
Method Detail
-
prepare
protected void prepare(double time)
- Overrides:
prepare
in classRequest.RequestState
-
queue
protected void queue(Queue<Request> queue, double time)
- Overrides:
queue
in classRequest.RequestState
-
allocate
protected void allocate(ResourceUnit unit, double time)
- Overrides:
allocate
in classRequest.RequestState
-
cancel
protected void cancel(double time)
- Overrides:
cancel
in classRequest.RequestState
-
-