public class DSOLProcessSimulator extends ProcessSimulator
defaultSimulator| Constructor and Description |
|---|
DSOLProcessSimulator()
Constructs a new DSOLProcessSimulator variable without initialization.
|
| Modifier and Type | Method and Description |
|---|---|
umontreal.iro.lecuyer.simprocs.ResumeEvent |
createControlEvent(SimProcess process)
Constructs and returns a new
Event object used for synchronization. |
void |
delay(SimProcess process,
double delay)
Suspends the execution of process and
schedules it to resume its execution in delay units of simulation
time.
|
void |
init()
Initializes the process-driven simulation.
|
void |
init(EventList evlist)
Initializes the simulation and sets the given event list evlist
to be used by the simulation executive.
|
void |
kill(SimProcess process)
Terminates the life of process and sets its state to
DEAD, after canceling its control event if there is one.
|
void |
killAll()
Kills all currently living (active, delayed, or suspended) processes managed by
this simulator.
|
void |
suspend(SimProcess process)
Suspends process.
|
currentProcess, initDefault, newInstancecontinuousState, getDefaultSimulator, getEventList, isSimulating, isStopped, start, stop, timepublic DSOLProcessSimulator()
public void init()
public void init(EventList evlist)
public umontreal.iro.lecuyer.simprocs.ResumeEvent createControlEvent(SimProcess process)
ProcessSimulatorEvent object used for synchronization.
Such control events are used by process simulator to start a process or to resume it if it is already
started.createControlEvent in class ProcessSimulatorpublic void delay(SimProcess process, double delay)
ProcessSimulatordelay in class ProcessSimulatorprocess - SimProcess variable to delay.delay - delay value, in simulation time units.public void suspend(SimProcess process)
ProcessSimulatorsuspend in class ProcessSimulatorprocess - SimProcess variable to suspend.public void kill(SimProcess process)
ProcessSimulatorkill in class ProcessSimulatorpublic void killAll()
ProcessSimulatorkillAll in class ProcessSimulatorTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.