openg2g.events¶
openg2g.events
¶
Clock-aligned simulation event primitives.
SimEvent
dataclass
¶
Structured simulation event with canonical clock metadata.
Source code in openg2g/events.py
EventSink
¶
Bases: Protocol
Receives simulation events from components.
Source code in openg2g/events.py
EventEmitter
dataclass
¶
Source-bound event helper that stamps events with clock metadata.
Source code in openg2g/events.py
emit(topic, data=None)
¶
Emit one event with current clock metadata.