Package SimPy :: Module SimulationRT :: Class SimulationRT |
[hide private]
[frames] | no frames]

# Class SimulationRT

source code

               object --+
                        |
    Simulation.Simulation --+
                            |
                           SimulationRT

Instance Methods | [hide private]
__init__(self) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
rtnow(self) | source code
rtset(self, rel_speed=1) Resets the ratio simulation time over clock time(seconds). | source code
simulate(self, until=0, real_time=False, rel_speed=1) Simulates until simulation time reaches ``until``. | source code
Inherited from `Simulation.Simulation`: `activate`, `allEventNotices`, `allEventTimes`, `has_events`, `initialize`, `now`, `peek`, `reactivate`, `startCollection`, `step`, `stopSimulation` Inherited from `Simulation.Simulation` (private): `_post`, `_terminate`, `_unpost`, `_waitUntilFunc` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables | [hide private]
Inherited from `Simulation.Simulation` (private): `_commandcodes`, `_commandwords`, `_dispatch`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

### simulate(self, until=0, real_time=False, rel_speed=1) | source code
Simulates until simulation time reaches ``until``. If ``real_time`` is ``True`` a simulation time unit is matched with real time by the factor 1 / ``rel_speed``. Overrides: Simulation.Simulation.simulate