public abstract class SubProcess extends nl.tudelft.simulation.event.EventProducer implements ProcessInterface
Modifier and Type | Field and Description |
---|---|
protected NestedProcess |
owner
the owner of this process
|
DEAD, EXECUTING, INITIAL, STATE_CHANGE_EVENT, SUSPENDED
Constructor and Description |
---|
SubProcess(NestedProcess owner)
constructs a new SubProcess
|
Modifier and Type | Method and Description |
---|---|
short |
getState()
Returns the state of a process
|
abstract void |
process()
executes the process
|
void |
resume()
resumes this process
|
void |
suspend()
suspends the process.
|
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener
protected NestedProcess owner
public SubProcess(NestedProcess owner)
owner
- the owner of this processpublic 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()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.