nl.tudelft.simulation.dsol.simulators
Class DESSSimulator
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.simulators.Simulator
nl.tudelft.simulation.dsol.simulators.DESSSimulator
- All Implemented Interfaces:
- Serializable, Runnable, Remote, DESSSimulatorInterface, SimulatorInterface, EventProducerInterface
public class DESSSimulator
- extends Simulator
- implements DESSSimulatorInterface
The DESS defines the interface of the DESS simulator. DESS stands for the
Differential Equation System Specification. More information on Modeling &
Simulation can be found in "Theory of Modeling and Simulation" by Bernard
Zeigler et. al.
(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:21:27 $
- Author:
- Peter
Jacobs , Alexander
Verbraeck
- See Also:
- Serialized Form
Field Summary |
protected double |
timeStep
timeStep represents the timestep of the DESS simulator |
Method Summary |
double |
getTimeStep()
returns the time step of the DESS simulator |
void |
initialize(Replication replication)
initializes the simulator with a specified replication. |
void |
run()
The run method defines the actual time step mechanism of the simulator. |
void |
setTimeStep(double timeStep)
Method setTimeStep sets the time step of the simulator |
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 |
timeStep
protected double timeStep
- timeStep represents the timestep of the DESS simulator
DESSSimulator
public DESSSimulator()
initialize
public void initialize(Replication replication)
throws RemoteException,
SimRuntimeException
- Description copied from interface:
SimulatorInterface
- initializes the simulator with a specified replication.
- Specified by:
initialize
in interface SimulatorInterface
- Overrides:
initialize
in class Simulator
- Parameters:
replication
- the replication
- Throws:
RemoteException
- on network failure
SimRuntimeException
- on simulator failure (simulator is running)- See Also:
#initialize(nl.tudelft.simulation.dsol.experiment.Replication)
getTimeStep
public double getTimeStep()
- Description copied from interface:
DESSSimulatorInterface
- returns the time step of the DESS simulator
- Specified by:
getTimeStep
in interface DESSSimulatorInterface
- Returns:
- the timeStep
- See Also:
#getTimeStep()
run
public void run()
- Description copied from class:
Simulator
- The run method defines the actual time step mechanism of the simulator.
The implementation of this method depends on the formalism. Where
discrete event formalisms loop over an eventlist continuous simulators
take pre-defined time steps.
- Specified by:
run
in interface Runnable
- Specified by:
run
in class Simulator
- See Also:
Simulator.run()
setTimeStep
public void setTimeStep(double timeStep)
- Description copied from interface:
DESSSimulatorInterface
- Method setTimeStep sets the time step of the simulator
- Specified by:
setTimeStep
in interface DESSSimulatorInterface
- Parameters:
timeStep
- the new timeStep. Its value should be >0.0- See Also:
#setTimeStep(double)
Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.