Event
risansym.Event
dataclass
Encapsulates the information exchanged between active processes in the simulation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time
|
float
|
Simulation time at which the event is scheduled. |
required |
name
|
str
|
Human-readable name identifying the event type. |
required |
source
|
int
|
Node ID of the sender. |
required |
target
|
int
|
Node ID of the receiver. |
required |
payload
|
JsonPayload
|
JSON-serializable data attached to the event. The mapping is
deep-copied on construction, so later mutations of the input do not
alter the scheduled event. Treat |
dict()
|
Note on event ordering
Events scheduled for the exact same time are processed in FIFO order (the order in which they were inserted into the simulator).
Source code in core/src/risansym/event.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |