|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.interpreter.process.Process
public abstract class Process
The Process class is an abstract Process which can be suspended and resumed.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
protected Stack |
frameStack
the processStack of this process |
protected short |
state
the state of the process |
Fields inherited from class nl.tudelft.simulation.event.EventProducer |
---|
listeners |
Fields inherited from interface nl.tudelft.simulation.dsol.interpreter.process.ProcessInterface |
---|
DEAD, EXECUTING, INITIAL, STATE_CHANGE_EVENT, SUSPENDED |
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
FIRST_POSITION, LAST_POSITION |
Constructor Summary | |
---|---|
Process()
constructs a new Process |
Method Summary | |
---|---|
short |
getState()
Returns the state of a process |
abstract void |
process()
processes the process. |
void |
resume()
resumes this process |
protected void |
setState(short state)
sets the state of the process |
void |
suspend()
suspends the process. |
Methods inherited from class nl.tudelft.simulation.event.EventProducer |
---|
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected short state
protected Stack frameStack
Constructor Detail |
---|
public Process()
simulator
- the simulator to schedule onMethod Detail |
---|
public abstract void process()
process
in interface ProcessInterface
public void resume()
resume
in interface ProcessInterface
public final void suspend()
ProcessInterface
suspend
in interface ProcessInterface
protected final void setState(short state)
state
- the new statepublic short getState()
ProcessInterface
getState
in interface ProcessInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |