VehicleSpecificationNetworkRestrictedTruckBuilder class abstract

This class constructs a VehicleSpecification for a truck.

Constructors

VehicleSpecificationNetworkRestrictedTruckBuilder()
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.truck with the specifications taken from the VehicleSpecificationNetworkRestrictedTruckBuilder 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) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle axle count.
withCurrentWeightInKilograms(int currentWeightInKilograms) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle current weight in kilograms.
withEmptyWeightInKilograms(int emptyWeightInKilograms) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle empty weight in kilograms.
withEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle engine size in cubic centimeters.
withGrossWeightInKilograms(int grossWeightInKilograms) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle gross weight in kilograms.
withHazardousMaterials(List<HazardousMaterial> hazardousMaterials) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the hazardous materials transported in the vehicle.
withHeightInCentimeters(int heightInCentimeters) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle height in centimeters.
withIsCommercial(bool isCommercial) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle is commercial flag.
withLastCharacterOfLicensePlate(String lastCharacterOfLicensePlate) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle last character of the license plate.
withLengthInCentimeters(int lengthInCentimeters) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle length in centimeters.
withPayloadCapacityInKilograms(int payloadCapacityInKilograms) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle payload capacity in kilograms.
withPreferredTruckNetworks(List<TruckNetwork> preferredTruckNetworks) → VehicleSpecificationNetworkRestrictedTruckBuilder
Specifies which road networks the truck is allowed to use.
withTiresCount(int tiresCount) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle tires count.
withTrailerAxleCount(int trailerAxleCount) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle trailer axle count.
withTrailerCount(int trailerCount) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle trailer count.
withTruckCategory(TruckCategory truckCategory) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle truck category.
withTunnelCategory(TunnelCategory tunnelCategory) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle tunnel category.
withWeightPerAxleGroup(WeightPerAxleGroup weightPerAxleGroup) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle weight per axle group.
withWeightPerAxleInKilograms(int weightPerAxleInKilograms) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle weight per axle in kilograms.
withWidthInCentimeters(int widthInCentimeters) → VehicleSpecificationNetworkRestrictedTruckBuilder
Sets the vehicle width in centimeters.

Operators

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