nl.tudelft.simulation.dsol.interpreter.process
Class SubProcess

java.lang.Object
  extended by nl.tudelft.simulation.event.EventProducer
      extended by nl.tudelft.simulation.dsol.interpreter.process.SubProcess
All Implemented Interfaces:
Serializable, ProcessInterface, EventProducerInterface

public abstract class SubProcess
extends EventProducer
implements ProcessInterface

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.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:13 $
Author:
Peter Jacobs
See Also:
Serialized Form

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

owner

protected NestedProcess owner
the owner of this process

Constructor Detail

SubProcess

public SubProcess(NestedProcess owner)
constructs a new SubProcess

Parameters:
owner - the owner of this process
Method Detail

process

public abstract void process()
executes the process

Specified by:
process in interface ProcessInterface

resume

public void resume()
Description copied from interface: ProcessInterface
resumes this process

Specified by:
resume in interface ProcessInterface
See Also:
ProcessInterface.resume()

suspend

public void suspend()
Description copied from interface: ProcessInterface
suspends the process.

Specified by:
suspend in interface ProcessInterface
See Also:
ProcessInterface.suspend()

getState

public short getState()
Description copied from interface: ProcessInterface
Returns the state of a process

Specified by:
getState in interface ProcessInterface
Returns:
the state of a process
See Also:
ProcessInterface.getState()


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.