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, removeListenerprotected NestedProcess owner
public SubProcess(NestedProcess owner)
owner - the owner of this processpublic abstract void process()
process in interface ProcessInterfacepublic void resume()
ProcessInterfaceresume in interface ProcessInterfaceProcessInterface.resume()public void suspend()
ProcessInterfacesuspend in interface ProcessInterfaceProcessInterface.suspend()public short getState()
ProcessInterfacegetState in interface ProcessInterfaceProcessInterface.getState()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.