MotorVehicleProfile class
Motor vehicle profile.
Base class for motorized vehicle profiles such as CarProfile and TruckProfile. Provides common routing parameters used by the routing engine (mass, maximum speed and fuel type).
See also:
- CarProfile - Profile used for car routing.
- TruckProfile - Profile used for truck/lorry routing.
- Inheritance
-
- Object
- VehicleRegistration
- MotorVehicleProfile
- Implementers
Constructors
- MotorVehicleProfile({int mass = 0, double maxSpeed = 0, FuelType fuel = FuelType.petrol, String plateNumber = ''})
- Creates a motor vehicle profile with sensible defaults.
Properties
- fuel ↔ FuelType
-
Engine fuel type. Default is FuelType.petrol.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- mass ↔ int
-
Vehicle mass in kg. By default it is 0 and is not considered in routing.
getter/setter pair
- maxSpeed ↔ double
-
Vehicle maximum speed in m/s. By default it is 0 and is not considered in routing.
getter/setter pair
- plateNumber ↔ String
-
Vehicle plate number.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
covariant VehicleRegistration other) → bool -
The equality operator.
inherited