Car

fun Car(    maxSpeed: Speed = Speed.kilometersPerHour(0),     isCommercial: Boolean = false,     electricEngine: ElectricEngine? = null,     combustionEngine: CombustionEngine? = null)

Parameters

maxSpeed

The car's maximum speed.

isCommercial

If true, the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.

electricEngine

The vehicle's electric engine for route and consumption calculation.

combustionEngine

The vehicle's combustion engine for route and consumption calculation.