ElectricVehicleConsumption

Describes the consumption of an electric vehicle.

Constructors

Link copied to clipboard
constructor(auxiliaryPower: Power? = null, speedConsumption: Map<Speed, ElectricConsumption>)

Creates an ElectricVehicleConsumption with the specified auxiliaryPower and speedConsumption.

Properties

Link copied to clipboard

The amount of power required for sustaining auxiliary systems, averaged over the route duration.

Link copied to clipboard
val speedConsumption: Map<Speed, ElectricConsumption>

The speed-dependent component of consumption. It is provided as a piecewise linear function mapping speed to consumption. All consumption values as well as the extrapolated values for speeds outside the provided range must be positive.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String