Class VehicleSpecification.PrivateBusBuilder
Class VehicleSpecification.PrivateBusBuilder
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.transport.VehicleSpecification.PrivateBusBuilder
-
- Enclosing class:
- VehicleSpecification
public static final class VehicleSpecification.PrivateBusBuilder extends NativeBase
This class constructs a
VehicleSpecificationfor a private bus.
-
-
Constructor Summary
Constructors Constructor Description PrivateBusBuilder()Creates a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VehicleSpecificationbuild()Builds theVehicleSpecificationobject forTransportMode.BUSwith the specifications taken from theVehicleSpecification.PrivateBusBuilderobject.VehicleSpecification.PrivateBusBuilderwithAxleCount(int axleCount)Sets the vehicle axle count.VehicleSpecification.PrivateBusBuilderwithCurrentWeightInKilograms(int currentWeightInKilograms)Sets the vehicle current weight in kilograms.VehicleSpecification.PrivateBusBuilderwithEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters)Sets the vehicle engine size in cubic centimeters.VehicleSpecification.PrivateBusBuilderwithGrossWeightInKilograms(int grossWeightInKilograms)Sets the vehicle gross weight in kilograms.VehicleSpecification.PrivateBusBuilderwithHazardousMaterials(java.util.List<HazardousMaterial> hazardousMaterials)Sets the hazardous materials transported in the vehicle.VehicleSpecification.PrivateBusBuilderwithHeightInCentimeters(int heightInCentimeters)Sets the vehicle height in centimeters.VehicleSpecification.PrivateBusBuilderwithIsCommercial(boolean isCommercial)Sets the vehicle is commercial flag.VehicleSpecification.PrivateBusBuilderwithIsTruckLight(boolean isTruckLight)Sets the vehicle truck light flag.VehicleSpecification.PrivateBusBuilderwithLastCharacterOfLicensePlate(java.lang.String lastCharacterOfLicensePlate)Sets the vehicle last character of the license plate.VehicleSpecification.PrivateBusBuilderwithLengthInCentimeters(int lengthInCentimeters)Sets the vehicle length in centimeters.VehicleSpecification.PrivateBusBuilderwithOccupancy(int occupancy)Sets the vehicle occupants number.VehicleSpecification.PrivateBusBuilderwithTiresCount(int tiresCount)Sets the vehicle tires count.VehicleSpecification.PrivateBusBuilderwithTrailerAxleCount(int trailerAxleCount)Sets the vehicle trailer axle count.VehicleSpecification.PrivateBusBuilderwithTrailerCount(int trailerCount)Sets the vehicle trailer count.VehicleSpecification.PrivateBusBuilderwithTruckCategory(TruckCategory truckCategory)Sets the vehicle truck category.VehicleSpecification.PrivateBusBuilderwithTunnelCategory(TunnelCategory tunnelCategory)Sets the vehicle tunnel category.VehicleSpecification.PrivateBusBuilderwithWeightPerAxleGroup(WeightPerAxleGroup weightPerAxleGroup)Sets the vehicle weight per axle group.VehicleSpecification.PrivateBusBuilderwithWeightPerAxleInKilograms(int weightPerAxleInKilograms)Sets the vehicle weight per axle in kilograms.VehicleSpecification.PrivateBusBuilderwithWidthInCentimeters(int widthInCentimeters)Sets the vehicle width in centimeters.
-
-
-
Method Detail
-
withHeightInCentimeters
@NonNull public VehicleSpecification.PrivateBusBuilder withHeightInCentimeters(int heightInCentimeters)
Sets the vehicle height in centimeters.
- Parameters:
heightInCentimeters-The vehicle height in centimeters.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the vehicle height set to the new value.
-
withWidthInCentimeters
@NonNull public VehicleSpecification.PrivateBusBuilder withWidthInCentimeters(int widthInCentimeters)
Sets the vehicle width in centimeters.
- Parameters:
widthInCentimeters-The vehicle width in centimeters.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the vehicle width set to the new value.
-
withLengthInCentimeters
@NonNull public VehicleSpecification.PrivateBusBuilder withLengthInCentimeters(int lengthInCentimeters)
Sets the vehicle length in centimeters.
- Parameters:
lengthInCentimeters-The vehicle length in centimeters.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the vehicle length set to the new value.
-
withAxleCount
@NonNull public VehicleSpecification.PrivateBusBuilder withAxleCount(int axleCount)
Sets the vehicle axle count.
- Parameters:
axleCount-The vehicle axle count.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the axle count set to the new value.
-
withTrailerCount
@NonNull public VehicleSpecification.PrivateBusBuilder withTrailerCount(int trailerCount)
Sets the vehicle trailer count.
- Parameters:
trailerCount-The vehicle trailer count.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the trailer count set to the new value.
-
withTruckCategory
@NonNull public VehicleSpecification.PrivateBusBuilder withTruckCategory(@NonNull TruckCategory truckCategory)
Sets the vehicle truck category.
- Parameters:
truckCategory-The vehicle truck category.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the truck category set to the new value.
-
withIsTruckLight
@NonNull public VehicleSpecification.PrivateBusBuilder withIsTruckLight(boolean isTruckLight)
Sets the vehicle truck light flag.
- Parameters:
isTruckLight-The vehicle truck light flag.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the truck light flag set to the new value.
-
withTrailerAxleCount
@NonNull public VehicleSpecification.PrivateBusBuilder withTrailerAxleCount(int trailerAxleCount)
Sets the vehicle trailer axle count.
- Parameters:
trailerAxleCount-The vehicle trailer axle count.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the trailer axle count set to the new value.
-
withGrossWeightInKilograms
@NonNull public VehicleSpecification.PrivateBusBuilder withGrossWeightInKilograms(int grossWeightInKilograms)
Sets the vehicle gross weight in kilograms.
- Parameters:
grossWeightInKilograms-The vehicle gross weight in kilograms.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the gross weight set to the new value.
-
withCurrentWeightInKilograms
@NonNull public VehicleSpecification.PrivateBusBuilder withCurrentWeightInKilograms(int currentWeightInKilograms)
Sets the vehicle current weight in kilograms.
- Parameters:
currentWeightInKilograms-The vehicle current weight in kilograms.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the current weight set to the new value.
-
withWeightPerAxleInKilograms
@NonNull public VehicleSpecification.PrivateBusBuilder withWeightPerAxleInKilograms(int weightPerAxleInKilograms)
Sets the vehicle weight per axle in kilograms.
- Parameters:
weightPerAxleInKilograms-The vehicle weight per axle in kilograms.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the current weight per axle set to the new value.
-
withWeightPerAxleGroup
@NonNull public VehicleSpecification.PrivateBusBuilder withWeightPerAxleGroup(@NonNull WeightPerAxleGroup weightPerAxleGroup)
Sets the vehicle weight per axle group.
- Parameters:
weightPerAxleGroup-The vehicle weight per axle group.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the current weight per axle group set to the new value.
-
withIsCommercial
@NonNull public VehicleSpecification.PrivateBusBuilder withIsCommercial(boolean isCommercial)
Sets the vehicle is commercial flag.
- Parameters:
isCommercial-The vehicle is commercial flag.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the is commercial flag set to the new value.
-
withLastCharacterOfLicensePlate
@NonNull public VehicleSpecification.PrivateBusBuilder withLastCharacterOfLicensePlate(@NonNull java.lang.String lastCharacterOfLicensePlate)
Sets the vehicle last character of the license plate.
- Parameters:
lastCharacterOfLicensePlate-The vehicle last character of the license plate.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the last character of the licence plate set to the new value.
-
withEngineSizeInCubicCentimeters
@NonNull public VehicleSpecification.PrivateBusBuilder withEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters)
Sets the vehicle engine size in cubic centimeters.
- Parameters:
engineSizeInCubicCentimeters-The vehicle engine size in cubic centimeters.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the engine size set to the new value.
-
withTiresCount
@NonNull public VehicleSpecification.PrivateBusBuilder withTiresCount(int tiresCount)
Sets the vehicle tires count.
- Parameters:
tiresCount-The vehicle tires count.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the vehicle tires count set to the new value.
-
withTunnelCategory
@NonNull public VehicleSpecification.PrivateBusBuilder withTunnelCategory(@NonNull TunnelCategory tunnelCategory)
Sets the vehicle tunnel category.
- Parameters:
tunnelCategory-The vehicle tunnel category.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the vehicle tunnel category set to the new value.
-
withHazardousMaterials
@NonNull public VehicleSpecification.PrivateBusBuilder withHazardousMaterials(@NonNull java.util.List<HazardousMaterial> hazardousMaterials)
Sets the hazardous materials transported in the vehicle.
- Parameters:
hazardousMaterials-The hazardous materials transported in the vehicle.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the hazardous materiales transported in the vehicle set to the new value.
-
withOccupancy
@NonNull public VehicleSpecification.PrivateBusBuilder withOccupancy(int occupancy)
Sets the vehicle occupants number.
- Parameters:
occupancy-The vehicle occupants number.
- Returns:
The
VehicleSpecification.PrivateBusBuilderobject with the vehicle occupants number set to the new value.
-
build
@NonNull public VehicleSpecification build()
Builds the
VehicleSpecificationobject forTransportMode.BUSwith the specifications taken from theVehicleSpecification.PrivateBusBuilderobject.- Returns:
The
VehicleSpecificationobject created from theVehicleSpecification.PrivateBusBuilderobject.
-
-