Event
Events.
NO_TIME = object()
module-attribute
Sentinel indicating that time should not advance.
Event
Manage an event.
Source code in src/asimpy/event.py
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 51 52 53 54 55 56 57 58 59 60 61 62 | |
__init__(env)
Construct a new event.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
Environment
|
simulation environment. |
required |
Source code in src/asimpy/event.py
16 17 18 19 20 21 22 23 24 25 26 27 28 | |
cancel()
Cancel event.
Source code in src/asimpy/event.py
45 46 47 48 49 50 51 52 | |
succeed(value=None)
Handle case of event succeeding.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
value associated with event. |
None
|
Source code in src/asimpy/event.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |