SimulationEvent

sealed interface SimulationEvent(source)

Base interface for all structured events emitted by the simulation.

Events are serialized as JSONL and consumed by the Python GUI for replay, timeline visualization, route drawing, and explainability panels.

Inheritors

Properties

Link copied to clipboard
abstract val tick: Int
Link copied to clipboard
abstract val type: String

Functions

Link copied to clipboard

Serializes a simulation event as a single JSONL line.

Link copied to clipboard
fun SimulationEvent.toJsonObject(): JsonObject

Converts a simulation event to the JSON object used by the JSONL event stream.