|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.simulators.Simulator
nl.tudelft.simulation.dsol.simulators.DEVSSimulator
nl.tudelft.simulation.dsol.simulators.DEVDESSSimulator
nl.tudelft.simulation.dsol.simulators.Animator
nl.tudelft.simulation.dsol.simulators.RealTimeClock
The reference implementation of the realTimeClock. The realTime clock is a DEVDESS simulator which runs at a ratio of realTime. If the executionTime exceeds the timeStep, a catchup mechanism is triggered to make up lost time in consecutive steps.
(c) copyright 2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
static nl.tudelft.simulation.event.EventType |
BACKLOG_EVENT
the backlog event |
| Fields inherited from class nl.tudelft.simulation.dsol.simulators.Animator |
animationDelay |
| Fields inherited from class nl.tudelft.simulation.dsol.simulators.DEVDESSSimulator |
timeStep |
| Fields inherited from class nl.tudelft.simulation.dsol.simulators.DEVSSimulator |
eventList |
| Fields inherited from class nl.tudelft.simulation.dsol.simulators.Simulator |
replication, running, semaphore, simulatorTime, worker |
| Fields inherited from class nl.tudelft.simulation.event.EventProducer |
listeners |
| Fields inherited from interface nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface |
EVENTLIST_CHANGED_EVENT |
| Fields inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface |
END_OF_REPLICATION_EVENT, START_EVENT, START_REPLICATION_EVENT, STEP_EVENT, STOP_EVENT, TIME_CHANGED_EVENT, WARMUP_EVENT |
| Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
| Fields inherited from interface nl.tudelft.simulation.dsol.simulators.DESSSimulatorInterface |
DEFAULT_TIME_STEP, TIME_STEP_CHANGED_EVENT |
| Fields inherited from interface nl.tudelft.simulation.dsol.simulators.AnimatorInterface |
ANIMATION_DELAY_CHANGED_EVENT, DEFAULT_ANIMATION_DELAY, UPDATE_ANIMATION_EVENT |
| Constructor Summary | |
RealTimeClock()
constructs a new RealTimeClock |
|
| Method Summary | |
long |
getAnimationDelay()
returns the animation delay between each consequtive timestep |
void |
run()
The run method defines the actual time step mechanism of the simulator. |
void |
setAnimationDelay(long animationDelay)
sets the animationDelay |
| Methods inherited from class nl.tudelft.simulation.dsol.simulators.DEVDESSSimulator |
getTimeStep, setTimeStep |
| Methods inherited from class nl.tudelft.simulation.dsol.simulators.DEVSSimulator |
cancelEvent, getEventList, initialize, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, setEventList, step, stop |
| Methods inherited from class nl.tudelft.simulation.dsol.simulators.Simulator |
getReplication, getSimulatorTime, isRunning, start |
| 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 |
| Methods inherited from interface nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface |
cancelEvent, getEventList, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, setEventList |
| Methods inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface |
getReplication, getSimulatorTime, initialize, isRunning, start, step, stop |
| Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
addListener, addListener, addListener, addListener, getEventTypes, removeListener |
| Methods inherited from interface nl.tudelft.simulation.dsol.simulators.DESSSimulatorInterface |
getTimeStep, setTimeStep |
| Field Detail |
public static final nl.tudelft.simulation.event.EventType BACKLOG_EVENT
| Constructor Detail |
public RealTimeClock()
| Method Detail |
public void run()
Simulator
run in interface java.lang.Runnablerun in class AnimatorDEVSSimulator.run()public long getAnimationDelay()
AnimatorInterface
getAnimationDelay in interface AnimatorInterfacegetAnimationDelay in class Animator#getAnimationDelay()public void setAnimationDelay(long animationDelay)
AnimatorInterface
setAnimationDelay in interface AnimatorInterfacesetAnimationDelay in class Animator#setAnimationDelay(long)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||