TruckProfile constructor

TruckProfile({
  1. int height = 0,
  2. int length = 0,
  3. int width = 0,
  4. int axleLoad = 0,
  5. double maxSpeed = 0,
  6. int mass = 0,
  7. FuelType fuel = FuelType.diesel,
})

Truck profile constructor with predefined FT_Diesel as fuel type.

Parameters

  • IN mass Mass in kg.
  • IN height Height in cm.
  • IN length Length in cm.
  • IN width Width in cm.
  • IN axleLoad Axle load in kg.
  • IN maxSpeed Max speed in m/s.
  • IN fuel Fuel type.

Implementation

TruckProfile({
  this.height = 0,
  this.length = 0,
  this.width = 0,
  this.axleLoad = 0,
  super.maxSpeed = 0,
  super.mass = 0,
  super.fuel = FuelType.diesel,
});