ConflictDetectedEvent

data class ConflictDetectedEvent(val tick: Int, val aircraft: List<String>, val severity: String, val horizontalDistance: Double, val verticalDistance: Int, val predictedAtTick: Int? = null) : SimulationEvent(source)

Conflict event representing either a current or predicted loss of separation.

Constructors

Link copied to clipboard
constructor(tick: Int, aircraft: List<String>, severity: String, horizontalDistance: Double, verticalDistance: Int, predictedAtTick: Int? = null)

Properties

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

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.