ElectricEngine

class ElectricEngine(    val consumption: ElectricVehicleConsumption? = null,     val efficiency: ElectricVehicleEfficiency? = null,     val chargeLevel: ChargeLevel? = null,     val chargingParameters: ChargingParameters? = null)

Describes the engine of an electric vehicle.

Note: The parameter chargingParameters is supported only when chargingOptions are set in com.tomtom.sdk.routing.options.RoutePlanningOptions. Note: The parameters consumption, efficiency and chargingParameters are ignored if modelId is set inside Car (this applies to other motorized vehicles as well).

Constructors

Link copied to clipboard
constructor(    consumption: ElectricVehicleConsumption? = null,     efficiency: ElectricVehicleEfficiency? = null,     chargeLevel: ChargeLevel? = null,     chargingParameters: ChargingParameters? = null)

Properties

Link copied to clipboard

The current and maximum charge of the vehicle.

Link copied to clipboard

The charging information of the electric engine.

Link copied to clipboard

The consumption model of the vehicle.

Link copied to clipboard

The efficiency of the engine.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun component3(): ChargeLevel?
Link copied to clipboard
Link copied to clipboard
fun copy(    consumption: ElectricVehicleConsumption? = this.consumption,     efficiency: ElectricVehicleEfficiency? = this.efficiency,     chargeLevel: ChargeLevel? = this.chargeLevel,     chargingParameters: ChargingParameters? = this.chargingParameters): ElectricEngine
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