VehicleSpecificationTaxiBuilder class abstract
This class constructs a VehicleSpecification for a taxi.
Constructors
- VehicleSpecificationTaxiBuilder()
-
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.taxi with the specifications taken from the VehicleSpecificationTaxiBuilder 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) → VehicleSpecificationTaxiBuilder - Sets the vehicle axle count.
-
withCurrentWeightInKilograms(
int currentWeightInKilograms) → VehicleSpecificationTaxiBuilder - Sets the vehicle current weight in kilograms.
-
withEmptyWeightInKilograms(
int emptyWeightInKilograms) → VehicleSpecificationTaxiBuilder - Sets the vehicle empty weight in kilograms.
-
withEngineSizeInCubicCentimeters(
int engineSizeInCubicCentimeters) → VehicleSpecificationTaxiBuilder - Sets the vehicle engine size in cubic centimeters.
-
withGrossWeightInKilograms(
int grossWeightInKilograms) → VehicleSpecificationTaxiBuilder - Sets the vehicle gross weight in kilograms.
-
withHeightInCentimeters(
int heightInCentimeters) → VehicleSpecificationTaxiBuilder - Sets the vehicle height in centimeters.
-
withIsCommercial(
bool isCommercial) → VehicleSpecificationTaxiBuilder - Sets the vehicle is commercial flag.
-
withKingpinToRearAxleDistanceInCentimeters(
int length) → VehicleSpecificationTaxiBuilder - Sets the vehicle kingpin to rear axle distance.
-
withLastCharacterOfLicensePlate(
String lastCharacterOfLicensePlate) → VehicleSpecificationTaxiBuilder - Sets the vehicle last character of the license plate.
-
withLengthInCentimeters(
int lengthInCentimeters) → VehicleSpecificationTaxiBuilder - Sets the vehicle length in centimeters.
-
withOccupancy(
int occupancy) → VehicleSpecificationTaxiBuilder - Sets the vehicle occupants number.
-
withPayloadCapacityInKilograms(
int payloadCapacityInKilograms) → VehicleSpecificationTaxiBuilder - Sets the vehicle payload capacity in kilograms.
-
withTiresCount(
int tiresCount) → VehicleSpecificationTaxiBuilder - Sets the vehicle tires count.
-
withTrailerAxleCount(
int trailerAxleCount) → VehicleSpecificationTaxiBuilder - Sets the vehicle trailer axle count.
-
withTrailerCount(
int trailerCount) → VehicleSpecificationTaxiBuilder - Sets the vehicle trailer count.
-
withTunnelCategory(
TunnelCategory tunnelCategory) → VehicleSpecificationTaxiBuilder - Sets the vehicle tunnel category.
-
withWeightPerAxleInKilograms(
int weightPerAxleInKilograms) → VehicleSpecificationTaxiBuilder - Sets the vehicle weight per axle in kilograms.
-
withWidthInCentimeters(
int widthInCentimeters) → VehicleSpecificationTaxiBuilder - Sets the vehicle width in centimeters.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited