VehicleSpecificationPrivateBusBuilder class abstract

This class constructs a VehicleSpecification for a private bus.

Constructors

VehicleSpecificationPrivateBusBuilder()
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.bus with the specifications taken from the VehicleSpecificationPrivateBusBuilder 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) VehicleSpecificationPrivateBusBuilder
Sets the vehicle axle count.
withCurrentWeightInKilograms(int currentWeightInKilograms) VehicleSpecificationPrivateBusBuilder
Sets the vehicle current weight in kilograms.
withEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters) VehicleSpecificationPrivateBusBuilder
Sets the vehicle engine size in cubic centimeters.
withGrossWeightInKilograms(int grossWeightInKilograms) VehicleSpecificationPrivateBusBuilder
Sets the vehicle gross weight in kilograms.
withHazardousMaterials(List<HazardousMaterial> hazardousMaterials) VehicleSpecificationPrivateBusBuilder
Sets the hazardous materials transported in the vehicle.
withHeightInCentimeters(int heightInCentimeters) VehicleSpecificationPrivateBusBuilder
Sets the vehicle height in centimeters.
withIsCommercial(bool isCommercial) VehicleSpecificationPrivateBusBuilder
Sets the vehicle is commercial flag.
withIsTruckLight(bool isTruckLight) VehicleSpecificationPrivateBusBuilder
Sets the vehicle truck light flag.
withLastCharacterOfLicensePlate(String lastCharacterOfLicensePlate) VehicleSpecificationPrivateBusBuilder
Sets the vehicle last character of the license plate.
withLengthInCentimeters(int lengthInCentimeters) VehicleSpecificationPrivateBusBuilder
Sets the vehicle length in centimeters.
withOccupancy(int occupancy) VehicleSpecificationPrivateBusBuilder
Sets the vehicle occupants number.
withTiresCount(int tiresCount) VehicleSpecificationPrivateBusBuilder
Sets the vehicle tires count.
withTrailerAxleCount(int trailerAxleCount) VehicleSpecificationPrivateBusBuilder
Sets the vehicle trailer axle count.
withTrailerCount(int trailerCount) VehicleSpecificationPrivateBusBuilder
Sets the vehicle trailer count.
withTruckCategory(TruckCategory truckCategory) VehicleSpecificationPrivateBusBuilder
Sets the vehicle truck category.
withTunnelCategory(TunnelCategory tunnelCategory) VehicleSpecificationPrivateBusBuilder
Sets the vehicle tunnel category.
withWeightPerAxleGroup(WeightPerAxleGroup weightPerAxleGroup) VehicleSpecificationPrivateBusBuilder
Sets the vehicle weight per axle group.
withWeightPerAxleInKilograms(int weightPerAxleInKilograms) VehicleSpecificationPrivateBusBuilder
Sets the vehicle weight per axle in kilograms.
withWidthInCentimeters(int widthInCentimeters) VehicleSpecificationPrivateBusBuilder
Sets the vehicle width in centimeters.

Operators

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