FleetVehicleStateChanged

@Serializable
@SerialName(value = "FleetVehicleStateChanged")
data class FleetVehicleStateChanged(val simTime: Double, val systemName: String, val vehicleName: String, val bodyName: String? = null, val state: String, val stateOfCharge: Double = Double.NaN) : AnimationEvent(source)

What a fleet vehicle is doing, as the fleet sees it: AVAILABLE, ON_TASK, CHARGING, FAILED, OUT_OF_CHARGE, UNDER_TOW or OUT_OF_SERVICE. Emitted when it changes. A broken-down vehicle stopped mid-aisle otherwise draws exactly like a parked one.

Constructors

Link copied to clipboard
constructor(simTime: Double, systemName: String, vehicleName: String, bodyName: String? = null, state: String, stateOfCharge: Double = Double.NaN)

Properties

Link copied to clipboard
Link copied to clipboard
open override val simTime: Double
Link copied to clipboard
Link copied to clipboard

The battery's charge, or NaN for a vehicle with no battery.

Link copied to clipboard
Link copied to clipboard