VehicleSpecificationCarBuilder class abstract

This class constructs a VehicleSpecification for a car.

Constructors

VehicleSpecificationCarBuilder()
Creates a new instance of this class.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() VehicleSpecification
Builds the VehicleSpecification object for TransportMode.car with the specifications taken from the VehicleSpecificationCarBuilder object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
withAxleCount(int axleCount) VehicleSpecificationCarBuilder
Sets the vehicle axle count.
withCurrentWeightInKilograms(int currentWeightInKilograms) VehicleSpecificationCarBuilder
Sets the vehicle current weight in kilograms.
withEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters) VehicleSpecificationCarBuilder
Sets the vehicle engine size in cubic centimeters.
withGrossWeightInKilograms(int grossWeightInKilograms) VehicleSpecificationCarBuilder
Sets the vehicle gross weight in kilograms.
withHazardousMaterials(List<HazardousMaterial> hazardousMaterials) VehicleSpecificationCarBuilder
Sets the hazardous materials transported in the vehicle.
withHeightInCentimeters(int heightInCentimeters) VehicleSpecificationCarBuilder
Sets the vehicle height in centimeters.
withIsCommercial(bool isCommercial) VehicleSpecificationCarBuilder
Sets the vehicle is commercial flag.
withIsTruckLight(bool isTruckLight) VehicleSpecificationCarBuilder
Sets the vehicle truck light flag.
withLastCharacterOfLicensePlate(String lastCharacterOfLicensePlate) VehicleSpecificationCarBuilder
Sets the vehicle last character of the license plate.
withLengthInCentimeters(int lengthInCentimeters) VehicleSpecificationCarBuilder
Sets the vehicle length in centimeters.
withOccupancy(int occupancy) VehicleSpecificationCarBuilder
Sets the vehicle occupants number.
withPayloadCapacityInKilograms(int payloadCapacityInKilograms) VehicleSpecificationCarBuilder
Sets the vehicle payload capacity in kilograms.
withTiresCount(int tiresCount) VehicleSpecificationCarBuilder
Sets the vehicle tires count.
withTrailerAxleCount(int trailerAxleCount) VehicleSpecificationCarBuilder
Sets the vehicle trailer axle count.
withTrailerCount(int trailerCount) VehicleSpecificationCarBuilder
Sets the vehicle trailer count.
withTruckCategory(TruckCategory truckCategory) VehicleSpecificationCarBuilder
Sets the vehicle truck category.
withTunnelCategory(TunnelCategory tunnelCategory) VehicleSpecificationCarBuilder
Sets the vehicle tunnel category.
withWeightPerAxleGroup(WeightPerAxleGroup weightPerAxleGroup) VehicleSpecificationCarBuilder
Sets the vehicle weight per axle group.
withWeightPerAxleInKilograms(int weightPerAxleInKilograms) VehicleSpecificationCarBuilder
Sets the vehicle weight per axle in kilograms.
withWidthInCentimeters(int widthInCentimeters) VehicleSpecificationCarBuilder
Sets the vehicle width in centimeters.

Operators

operator ==(Object other) → bool
The equality operator.
inherited