APIVehicleDatasheet

data class APIVehicleDatasheet(val scx: Double, val crr: Double, val f0: Double, val f1: Double, val f2: Double, val f0f1WeightReference: Double, val f2TemperatureReference: Double, val engineEfficiency: Double, val batteryCapacities: List<APIBatteryCapacity>, val batteryName: Double, val dryWeight: Int, val payload: Int, val minConsumption: Int, val auxConsumptions: List<APIAuxConsumption>, val regenerativeBraking: Boolean, val maxSpeed: Double, val maxAccel: Double, val maxDecel: Double, val vehicleCharger: APIVehicleCharger, val transportType: APITransportationType, val height: Int, val width: Int, val length: Int, val weight: Int)

Stores detailed information about a vehicle model the way they are returned by the BeMAP API.

Parameters

scx

scx of given vehicle

crr

tire rolling resistance coefficient at 80 kph (in interval ]0, 1[, dimensionless)

f0

f0 value of given vehicle

f1

f1 value of given vehicle

f2

f2 value of given vehicle

f0f1WeightReference

f0f1 weight reference value in Celsius

f2TemperatureReference

f2temperature reference value in Celsius

engineEfficiency

engine efficiency of given vehicle

batteryCapacities

list of APIBatteryCapacity instances for given vehicle model

dryWeight

dry weight (in kg)

payload

vehicle model payload

minConsumption

min power consumption of given vehicle model

auxConsumptions

aux consumption of given vehicle model

regenerativeBraking

flag indicating if given model has regenerative braking

maxAccel

maximum acceleration (> 0.1, in m/s²)

maxDecel

maximum deceleration (< -0.1, in m/s²)

vehicleCharger
transportationMode
height

vehicle height (in cm)

width

vehicle width (in cm)

length

vehicle length (in cm)

weight

vehicle weight (in tenth of ton)

Constructors

Link copied to clipboard
constructor(scx: Double, crr: Double, f0: Double, f1: Double, f2: Double, f0f1WeightReference: Double, f2TemperatureReference: Double, engineEfficiency: Double, batteryCapacities: List<APIBatteryCapacity>, batteryName: Double, dryWeight: Int, payload: Int, minConsumption: Int, auxConsumptions: List<APIAuxConsumption>, regenerativeBraking: Boolean, maxSpeed: Double, maxAccel: Double, maxDecel: Double, vehicleCharger: APIVehicleCharger, transportType: APITransportationType, height: Int, width: Int, length: Int, weight: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val crr: Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val f0: Double
Link copied to clipboard
Link copied to clipboard
val f1: Double
Link copied to clipboard
val f2: Double
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
val length: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scx: Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val weight: Int
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
fun getAuxConsumption(temperature: Int): Int

Gets aux consumption depending on temperature

Link copied to clipboard

Gets highest battery capacity of batteryCapacities if not empty, otherwise returns batteryName