simpy

The simpy module aggregates SimPy’s most used components into a single namespace. This is purely for convenience. You can of course also access everything (and more!) via their actual submodules.

The following tables list all of the available components in this module.

Environments

Environment([initial_time]) Execution environment for an event-based simulation.
RealtimeEnvironment([initial_time, factor, ...]) Execution environment for an event-based simulation which is synchronized with the real-time (also known as wall-clock time).

Events

Event(env) An event that may happen at some point in time.
Timeout(env, delay[, value]) A Event that gets triggered after a delay has passed.
Process(env, generator) Process an event yielding generator.
AllOf(env, events) A Condition event that is triggered if all of a list of events have been successfully triggered.
AnyOf(env, events) A Condition event that is triggered if any of a list of events has been successfully triggered.
Interrupt Exception thrown into a process if it is interrupted (see interrupt()).

Resources

Resource(env[, capacity]) Resource with capacity of usage slots that can be requested by processes.
PriorityResource(env[, capacity]) A Resource supporting prioritized requests.
PreemptiveResource(env[, capacity]) A PriorityResource with preemption.
Container(env[, capacity, init]) Resource containing up to capacity of matter which may either be continuous (like water) or discrete (like apples).
Store(env[, capacity]) Resource with capacity slots for storing arbitrary objects.
FilterStore(env[, capacity]) Resource with capacity slots for storing arbitrary objects supporting filtered get requests.

Miscellaneous

test() Runs SimPy’s test suite via py.test.
Read the Docs v: 3.0.7
Versions
latest
stable
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.