VehicleSpecificationBusBuilder class abstract

This class constructs a VehicleSpecification for a bus.

Constructors

VehicleSpecificationBusBuilder()
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 VehicleSpecificationBusBuilder 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) → VehicleSpecificationBusBuilder
Sets the vehicle axle count.
withCurrentWeightInKilograms(int currentWeightInKilograms) → VehicleSpecificationBusBuilder
Sets the vehicle current weight in kilograms.
withEmptyWeightInKilograms(int emptyWeightInKilograms) → VehicleSpecificationBusBuilder
Sets the vehicle empty weight in kilograms.
withEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters) → VehicleSpecificationBusBuilder
Sets the vehicle engine size in cubic centimeters.
withGrossWeightInKilograms(int grossWeightInKilograms) → VehicleSpecificationBusBuilder
Sets the vehicle gross weight in kilograms.
withHeightInCentimeters(int heightInCentimeters) → VehicleSpecificationBusBuilder
Sets the vehicle height in centimeters.
withIsCommercial(bool isCommercial) → VehicleSpecificationBusBuilder
Sets the vehicle is commercial flag.
withLastCharacterOfLicensePlate(String lastCharacterOfLicensePlate) → VehicleSpecificationBusBuilder
Sets the vehicle last character of the license plate.
withLengthInCentimeters(int lengthInCentimeters) → VehicleSpecificationBusBuilder
Sets the vehicle length in centimeters.
withOccupancy(int occupancy) → VehicleSpecificationBusBuilder
Sets the vehicle occupants number.
withTiresCount(int tiresCount) → VehicleSpecificationBusBuilder
Sets the vehicle tires count.
withTrailerAxleCount(int trailerAxleCount) → VehicleSpecificationBusBuilder
Sets the vehicle trailer axle count.
withTrailerCount(int trailerCount) → VehicleSpecificationBusBuilder
Sets the vehicle trailer count.
withTunnelCategory(TunnelCategory tunnelCategory) → VehicleSpecificationBusBuilder
Sets the vehicle tunnel category.
withWeightPerAxleGroup(WeightPerAxleGroup weightPerAxleGroup) → VehicleSpecificationBusBuilder
Sets the vehicle weight per axle group.
withWeightPerAxleInKilograms(int weightPerAxleInKilograms) → VehicleSpecificationBusBuilder
Sets the vehicle weight per axle in kilograms.
withWidthInCentimeters(int widthInCentimeters) → VehicleSpecificationBusBuilder
Sets the vehicle width in centimeters.

Operators

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