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

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

public class NestedProcess
extends Process

The NestedProcess 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  List subProcesses
          the list of subProcesses
 
Fields inherited from class nl.tudelft.simulation.dsol.interpreter.process.Process
frameStack, state
 
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
NestedProcess()
          constructs a new NestedProcess
NestedProcess(List subProcesses)
          constructs a new NestedProcess
 
Method Summary
 List getSubProcesses()
           
 void process()
          processes the process.
 
Methods inherited from class nl.tudelft.simulation.dsol.interpreter.process.Process
getState, resume, setState, suspend
 
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

subProcesses

protected List subProcesses
the list of subProcesses

Constructor Detail

NestedProcess

public NestedProcess()
constructs a new NestedProcess


NestedProcess

public NestedProcess(List subProcesses)
constructs a new NestedProcess

Parameters:
the - initial collection of sub processes
Method Detail

process

public void process()
Description copied from class: Process
processes the process.

Specified by:
process in interface ProcessInterface
Specified by:
process in class Process
See Also:
Process.process()

getSubProcesses

public List getSubProcesses()
Returns:
Returns the subProcesses.


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