|
SSJ V. 1.2.5. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.simprocs.AbstractSimProcess
umontreal.iro.lecuyer.simprocs.dsol.SimProcess
public abstract class SimProcess
Represents a simulation process whose actions method is interpreted by the DSOL interpreter, written by Peter Jacobs (http://www.tbm.tudelft.nl/webstaf/peterja/index.htm). When a process executes, a virtual machine implemented in Java is invoked to interpret the byte-code. The processes are then simulated in a single Java thread, which allows a much larger number of threads than when each process has its own native thread, at the expense of a slower execution time. To use this implementation in a program instead of the thread-based implementation provides in the standard SimProcess class, it suffices to replace the import statement
import umontreal.iro.lecuyer.simprocs.SimProcess;by
import umontreal.iro.lecuyer.simprocs.dsol.SimProcess;
Field Summary |
---|
Fields inherited from class umontreal.iro.lecuyer.simprocs.AbstractSimProcess |
---|
DEAD, DELAYED, EXECUTING, INITIAL, SUSPENDED |
Constructor Summary | |
---|---|
SimProcess()
Constructs a new process without scheduling it. |
Method Summary | |
---|---|
void |
delay(double delay)
Suspends the execution of the currently executing process and schedules it to resume its execution in delay units of simulation time. |
static void |
init()
Initializes the process-driven simulation. |
static void |
init(EventList evlist)
Initializes the simulation and sets the given event list evlist to be used by the simulation executive. |
void |
kill()
Terminates the life of this process and sets its state to DEAD, after canceling its activating event if there is one. |
void |
suspend()
This method can only be invoked for the EXECUTING or a DELAYED process. |
Methods inherited from class umontreal.iro.lecuyer.simprocs.AbstractSimProcess |
---|
actions, cancel, currentProcess, getDelay, getState, isAlive, reschedule, resume, schedule, scheduleNext |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimProcess()
Method Detail |
---|
public static void init()
Sim.init
.
public static void init(EventList evlist)
evlist
- selected event list implementationpublic void delay(double delay)
AbstractSimProcess
delay
in class AbstractSimProcess
delay
- delay, in simulation time, before the process is resumedpublic void suspend()
AbstractSimProcess
suspend
in class AbstractSimProcess
public void kill()
AbstractSimProcess
kill
in class AbstractSimProcess
|
SSJ V. 1.2.5. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |