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

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.formalisms.process.Process
All Implemented Interfaces:
Serializable, ProcessInterface, EventProducerInterface

public abstract class Process
extends Process

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.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
Process(DEVSSimulatorInterface simulator)
          constructs a new Process.
Process(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.Process
getState, process, 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

Process

public Process(DEVSSimulatorInterface simulator)
constructs a new Process.

Parameters:
simulator - the simulator to schedule on

Process

public Process(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.