File: simpy.core.rst

package info (click to toggle)
python-simpy3 3.0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,080 kB
  • sloc: python: 2,885; makefile: 138
file content (50 lines) | stat: -rw-r--r-- 1,215 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
==========================================
``simpy.core`` --- SimPy's core components
==========================================

.. automodule:: simpy.core

.. autoclass:: BaseEnvironment
    :members:

.. autoclass:: Environment

    .. autoattribute:: now
    .. autoattribute:: active_process

    .. method:: process(generator)

        Create a new :class:`~simpy.events.Process` instance for *generator*.

    .. method:: timeout(delay, value=None)

        Return a new :class:`~simpy.events.Timeout` event with a *delay* and,
        optionally, a *value*.

    .. method:: event()

        Return a new :class:`~simpy.events.Event` instance. Yielding this event
        suspends a process until another process triggers the event.

    .. method:: all_of(events)

        Return a new :class:`~simpy.events.AllOf` condition for a list of
        *events*.

    .. method:: any_of(events)

        Return a new :class:`~simpy.events.AnyOf` condition for a list of
        *events*.

    .. automethod:: exit
    .. automethod:: schedule
    .. automethod:: peek
    .. automethod:: step
    .. automethod:: run

.. autoclass:: BoundClass
    :members:

.. autoclass:: EmptySchedule

.. autodata:: Infinity