|
||||||||||
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.SubProcess
public abstract class SubProcess
The SubProcess class is an process consisting of a list of subProcesses
which are sequentially executed.
(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 NestedProcess |
owner
the owner of this 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 | |
---|---|
SubProcess(NestedProcess owner)
constructs a new SubProcess |
Method Summary | |
---|---|
short |
getState()
Returns the state of a process |
abstract void |
process()
executes the process |
void |
resume()
resumes this 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 NestedProcess owner
Constructor Detail |
---|
public SubProcess(NestedProcess owner)
owner
- the owner of this processMethod Detail |
---|
public abstract void process()
process
in interface ProcessInterface
public void resume()
ProcessInterface
resume
in interface ProcessInterface
ProcessInterface.resume()
public void suspend()
ProcessInterface
suspend
in interface ProcessInterface
ProcessInterface.suspend()
public short getState()
ProcessInterface
getState
in interface ProcessInterface
ProcessInterface.getState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |