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

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

public abstract class SubProcess
extends SubProcess

A SubProcess
(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.SubProcess
owner
 
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(DEVSSimulatorInterface simulator, NestedProcess nestedProcess)
          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.SubProcess
getState, process, resume, 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

SubProcess

public SubProcess(DEVSSimulatorInterface simulator,
                  NestedProcess nestedProcess)
constructs a new Process.

Parameters:
simulator - the simulator to schedule on
the - nestedProcess of this subProcess
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.