AircraftStateEvent

data class AircraftStateEvent(val tick: Int, val aircraft: String, val x: Double, val y: Double, val altitude: Int, val speed: Double, val status: String, val priority: String) : SimulationEvent(source)

Aircraft state snapshot for one tick.

Constructors

Link copied to clipboard
constructor(tick: Int, aircraft: String, x: Double, y: Double, altitude: Int, speed: Double, status: String, priority: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val tick: Int
Link copied to clipboard
open override val type: String
Link copied to clipboard
val x: Double
Link copied to clipboard
val y: Double

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.