DEnergeticProfile
Helper constructor used to create an instance based on APIVehicleDatasheet as returned from the BeMAP API.
Parameters
id
id of the energetic profile
vehicleModelId
id of the vehicle connected to given profile
apiVehicleDatasheet
datasheet instance as returned by 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)
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).