Package jsl.simulation
Class Simulation.ReplicationExecutionProcess
- java.lang.Object
-
- jsl.simulation.IterativeProcess<Executive>
-
- jsl.simulation.Simulation.ReplicationExecutionProcess
-
- All Implemented Interfaces:
ObservableIfc,IterativeProcessIfc,GetNameIfc
- Enclosing class:
- Simulation
protected class Simulation.ReplicationExecutionProcess extends IterativeProcess<Executive>
This class implements the IterativeProcess behavior for the Simulation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jsl.simulation.IterativeProcess
IterativeProcess.Created, IterativeProcess.Ended, IterativeProcess.Initialized, IterativeProcess.IterativeState, IterativeProcess.ShowElapsedTimeTask, IterativeProcess.StepCompleted
-
-
Field Summary
-
Fields inherited from class jsl.simulation.IterativeProcess
COMPLETED_ALL_STEPS, COMPLETED_ALL_STEPS_MSG, EXCEEDED_EXECUTION_TIME, EXCEEDED_EXECUTION_TIME_MSG, MET_STOPPING_CONDITION, MET_STOPPING_CONDITION_MSG, myBeginExecutionTime, myCreatedState, myCurrentStep, myDoneFlag, myEndedState, myEndExecutionTime, myEndingStateIndicator, myId, myInitFlag, myInitializedState, myIPLogReport, myMaxAllowedExecutionTime, myName, myObservableComponent, myRunningFlag, myRunningStepFlag, mySaveStepOption, myState, myStepCompletedState, myStepCounter, mySteps, myTBConsoleUpdates, myTimer, myTimerTask, NO_STEPS_EXECUTED, NO_STEPS_EXECUTED_MSG, UNFINISHED, UNFINISHED_MSG
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedReplicationExecutionProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidendIterations()protected booleanhasNext()This method should check to see if another step is necessary for the iterative process.protected voidinitializeIterations()protected Executivenext()This method should return the next step to be executed in the iterative process or null if no more steps can be executed.protected voidrunStep()This method tells the iterative process to execute the current step.-
Methods inherited from class jsl.simulation.IterativeProcess
addObserver, allStepsCompleted, checkStoppingCondition, checkStoppingCondition_, consoleOutput, contains, countObservers, deleteObserver, deleteObservers, end, end, executionTimeExceeded, getBeginExecutionTime, getCurrentStateAsString, getCurrentStep, getElapsedExecutionTime, getEndExecutionTime, getEndingStateIndicator, getEndingStateIndicatorAsString, getId, getLogReport, getMaximumAllowedExecutionTime, getName, getNumberStepsCompleted, getSaveStepOption, getStepIterator, getStepList, getStoppingFlag, getStoppingMessage, initialize, isCreated, isDone, isEnded, isExecutionTimeExceeded, isInitialized, isRunning, isRunningStep, isStepCompleted, isUnfinished, noStepsExecuted, run, runAll_, runNext, runNext_, setId, setMaximumExecutionTime, setName, setSaveStepOption, setState, stop, stop, stoppedByCondition, toString, turnOffLogReport, turnOnLogReport, turnOnTimer
-
-
-
-
Method Detail
-
initializeIterations
protected final void initializeIterations()
- Overrides:
initializeIterationsin classIterativeProcess<Executive>
-
endIterations
protected final void endIterations()
- Overrides:
endIterationsin classIterativeProcess<Executive>
-
hasNext
protected boolean hasNext()
Description copied from class:IterativeProcessThis method should check to see if another step is necessary for the iterative process. True means that the process has another step to be executed. False, means that no more steps are available for execution.- Specified by:
hasNextin classIterativeProcess<Executive>- Returns:
- true if another step is present
-
next
protected final Executive next()
Description copied from class:IterativeProcessThis method should return the next step to be executed in the iterative process or null if no more steps can be executed. It should advance the current step to the next step if it is available- Specified by:
nextin classIterativeProcess<Executive>- Returns:
- the type of the step
-
runStep
protected final void runStep()
Description copied from class:IterativeProcessThis method tells the iterative process to execute the current step. Typical usage is to call this after calling next() to advance to the next step. This method should throw a NoSuchStepException if there are no more steps to run and it is told to run the step.- Specified by:
runStepin classIterativeProcess<Executive>
-
-