DEnergeticProfile

class DEnergeticProfile(val id: String, val vehicleModelId: String, val crr: Double = 0.0, val dryWeight: Int = 0, val scx: Double = 0.0, val effCoef: Double = 0.0, val minConsumption: Int = 0, val auxConsumption: Int = 0)

Entity that stores energetic profiles data as a table managed by the Room database library.

Parameters

id

id of the energetic profile

vehicleModelId

id of the vehicle connected to given profile

crr

crr of the vehicle assigned to given profile

dryWeight

weight of the vehicle assigned to given profile

effCoef

effCoef of the vehicle assigned to given profile

auxConsumption

vehicle's instantaneous auxiliary equipments consumption (in W).

Constructors

Link copied to clipboard
constructor(id: String, vehicleModelId: String, apiVehicleDatasheet: APIVehicleDatasheet)

Helper constructor used to create an instance based on APIVehicleDatasheet as returned from the BeMAP API.

constructor(id: String, vehicleModelId: String, crr: Double = 0.0, dryWeight: Int = 0, scx: Double = 0.0, effCoef: Double = 0.0, minConsumption: Int = 0, auxConsumption: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val crr: Double = 0.0
Link copied to clipboard
val dryWeight: Int = 0
Link copied to clipboard
val effCoef: Double = 0.0
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
val scx: Double = 0.0
Link copied to clipboard