Truck

data class Truck(val heightMeters: Double = 4.0, val widthMeters: Double = 2.55, val lengthMeters: Double = 12.0, val weightKg: Double = 440000.0, val trailerCount: Int) : TransportMode

Assumes large or heavy vehicles and doesn't navigate through places with weight or height restrictions. Assumes speeds according to local laws for trucks.

Constructors

Link copied to clipboard
constructor(heightMeters: Double = 4.0, widthMeters: Double = 2.55, lengthMeters: Double = 12.0, weightKg: Double = 440000.0, trailerCount: Int)

Properties

Link copied to clipboard
val heightMeters: Double = 4.0
Link copied to clipboard
val lengthMeters: Double = 12.0
Link copied to clipboard
Link copied to clipboard
val weightKg: Double = 440000.0
Link copied to clipboard
val widthMeters: Double = 2.55