Profile

open class Profile(var height: Double = 0.0, var length: Double = 0.0, var width: Double = 0.0, var weight: Double = 0.0, var weightPerAxle: Double = 0.0, var nbTrailers: Int = -1, var hazmat: Hazmat = Hazmat.NONE, var adr: AdrTunnelCat = AdrTunnelCat.NONE, var maxSpeed: Double = 0.0, var transportationMode: TranspMode = TranspMode.PASSENGER_CAR, var drivingProfile: DrivingProfile = DrivingProfile(), var speedProfile: SpeedProfile = SpeedProfile(), var encryptedDatasheet: String? = null, var onlyPhysical: Boolean = false)

Container for storing properties of given vehicle model

Parameters

height

height of the vehicle (in m)

length

length of the vehicle (in m)

width

width of the vehicle (in m)

weight

total vehicle weight (in metric ton)

weightPerAxle

vehicle weight for each axle (in metric ton)

nbTrailers

amount of trailers

hazmat

hazardous material type

adr

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

maxSpeed

maximum vehicle speed (in km/h)

transportationMode

transportation mode assigned to given model

drivingProfile

driving profile of the 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)

Inheritors

Constructors

Link copied to clipboard
constructor(profile: Profile)
constructor(height: Double = 0.0, length: Double = 0.0, width: Double = 0.0, weight: Double = 0.0, weightPerAxle: Double = 0.0, nbTrailers: Int = -1, hazmat: Hazmat = Hazmat.NONE, adr: AdrTunnelCat = AdrTunnelCat.NONE, maxSpeed: Double = 0.0, transportationMode: TranspMode = TranspMode.PASSENGER_CAR, drivingProfile: DrivingProfile = DrivingProfile(), speedProfile: SpeedProfile = SpeedProfile(), encryptedDatasheet: String? = null, onlyPhysical: Boolean = false)

Properties

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
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

Functions

Link copied to clipboard
fun Profile.toDProfile(vehicleModelId: String, profileId: String? = null): DProfile
Link copied to clipboard
open fun toJson(): String