SimPy :: SimulationStep :: SimulationStep :: Class SimulationStep

[hide private]
[frames] | no frames]

# Class SimulationStep

source code

               object --+
                        |
    Simulation.Simulation --+
                            |
                           SimulationStep

Instance Methods | [hide private]

__init__(self) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code

initialize(self) | source code

startStepping(self) Application function to start stepping through simulation. | source code

stopStepping(self) Application function to stop stepping through simulation. | source code

step(self) Executes the next uncancelled event in the eventqueue. | source code

simulate(self, callback=<function <lambda> at 0x9158f7c>, until=0) Simulates until simulation time reaches ``until``. | source code

Inherited from `Simulation.Simulation`: `activate`, `allEventNotices`, `allEventTimes`, `has_events`, `now`, `peek`, `reactivate`, `startCollection`, `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)

### initialize(self)

source code

Overrides: Simulation.Simulation.initialize

### step(self)

source code

Executes the next uncancelled event in the eventqueue.

Overrides: Simulation.Simulation.step
  (inherited documentation)

### simulate(self, callback=<function <lambda> at 0x9158f7c>, until=0)

source code

Simulates until simulation time reaches ``until``. After processing each event, ``callback`` will be invoked if stepping has been enabled with :meth:`~SimPy.SimulationStep.startStepping`.

Overrides: Simulation.Simulation.simulate