nl.tudelft.simulation.dsol.formalisms.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
              extended by nl.tudelft.simulation.dsol.formalisms.process.NestedProcess
All Implemented Interfaces:
Serializable, ProcessInterface, EventProducerInterface

public class NestedProcess
extends NestedProcess

A Process
(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:
1.0 Jan 19, 2004
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
protected  DEVSSimulatorInterface simulator
          the simulator to schedule on
 
Fields inherited from class nl.tudelft.simulation.dsol.interpreter.process.NestedProcess
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(DEVSSimulatorInterface simulator)
          constructs a new Process.
NestedProcess(DEVSSimulatorInterface simulator, double delay)
          constructs a new Process
 
Method Summary
protected  void hold(double duration)
          holds the process for a duration
 
Methods inherited from class nl.tudelft.simulation.dsol.interpreter.process.NestedProcess
getSubProcesses, 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

simulator

protected DEVSSimulatorInterface simulator
the simulator to schedule on

Constructor Detail

NestedProcess

public NestedProcess(DEVSSimulatorInterface simulator)
constructs a new Process.

Parameters:
simulator - the simulator to schedule on

NestedProcess

public NestedProcess(DEVSSimulatorInterface simulator,
                     double delay)
constructs a new Process

Parameters:
simulator - the simulator to schedule on
delay - the amount of delay after which the process must be started
Method Detail

hold

protected void hold(double duration)
             throws SimRuntimeException,
                    RemoteException
holds the process for a duration

Parameters:
duration - the duration
Throws:
SimRuntimeException - on negative duration
RemoteException - on network failure


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