DProfile

class DProfile(val id: String, val vehicleModelId: String, val height: Double = 0.0, val length: Double = 0.0, val width: Double = 0.0, val weight: Double = 0.0, val weightPerAxle: Double = 0.0, val nbTrailers: Int = 0, val hazmat: Hazmat = Hazmat.NONE, val adr: AdrTunnelCat = AdrTunnelCat.NONE, val maxSpeed: Double = 0.0, val transportationMode: TranspMode = TranspMode.PASSENGER_CAR, val encryptedDatasheet: String? = null, val onlyPhysical: Boolean = false)

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

Parameters

id

id of the profile

vehicleModelId

id of the vehicle connected to given profile

height

height of the vehicle

length

length of the vehicle

width

width of the vehicle

weight

total vehicle weight

weightPerAxle

vehicle weight for each axle

nbTrailers

amount of trailers

hazmat

hazardous material status

adr

ADR (European Agreement concerning the International Carriage of Dangerous Goods by Road) tunnel category

maxSpeed

maximum vehicle speed

transportationMode

transportation mode assigned to given model

encryptedDatasheet

datasheet containing additional encrypted information of given vehicle model

onlyPhysical

defines if vehicle's weight (weight, weight per axle) and hazmat (hazmat and ADR)* should be ignored outside respectively bridges and tunnels (default is false)

Constructors

Link copied to clipboard
constructor(id: String, vehicleModelId: String, height: Int, length: Int, width: Int, weight: Int, weightPerAxle: Int, transportType: APITransportationType, onlyPhysical: Boolean = false, apiVehicleDatasheet: String?)

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

constructor(id: String, vehicleModelId: String, height: Double = 0.0, length: Double = 0.0, width: Double = 0.0, weight: Double = 0.0, weightPerAxle: Double = 0.0, nbTrailers: Int = 0, hazmat: Hazmat = Hazmat.NONE, adr: AdrTunnelCat = AdrTunnelCat.NONE, maxSpeed: Double = 0.0, transportationMode: TranspMode = TranspMode.PASSENGER_CAR, encryptedDatasheet: String? = null, onlyPhysical: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Double = 0.0
Link copied to clipboard
val id: String
Link copied to clipboard
val length: Double = 0.0
Link copied to clipboard
val maxSpeed: Double = 0.0
Link copied to clipboard
val nbTrailers: Int = 0
Link copied to clipboard
val onlyPhysical: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val weight: Double = 0.0
Link copied to clipboard
Link copied to clipboard
val width: Double = 0.0