NetworkRestrictedTruckBuilder

public class NetworkRestrictedTruckBuilder
extension VehicleSpecification.NetworkRestrictedTruckBuilder: NativeBase
extension VehicleSpecification.NetworkRestrictedTruckBuilder: Hashable

This class constructs a VehicleSpecification for a truck.

  • Creates a new instance of this class.

    Declaration

    Swift

    public init()
  • Sets the vehicle height in centimeters.

    Declaration

    Swift

    public func withHeightInCentimeters(_ heightInCentimeters: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    heightInCentimeters

    The vehicle height in centimeters.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the vehicle height set to the new value.

  • Sets the vehicle width in centimeters.

    Declaration

    Swift

    public func withWidthInCentimeters(_ widthInCentimeters: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    widthInCentimeters

    The vehicle width in centimeters.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the vehicle width set to the new value.

  • Sets the vehicle length in centimeters.

    Declaration

    Swift

    public func withLengthInCentimeters(_ lengthInCentimeters: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    lengthInCentimeters

    The vehicle length in centimeters.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the vehicle length set to the new value.

  • Sets the vehicle axle count.

    Declaration

    Swift

    public func withAxleCount(_ axleCount: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    axleCount

    The vehicle axle count.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the axle count set to the new value.

  • Sets the vehicle trailer count.

    Declaration

    Swift

    public func withTrailerCount(_ trailerCount: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    trailerCount

    The vehicle trailer count.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the trailer count set to the new value.

  • Sets the vehicle truck category.

    Declaration

    Swift

    public func withTruckCategory(_ truckCategory: TruckCategory) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    truckCategory

    The vehicle truck category.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the truck category set to the new value.

  • Sets the vehicle payload capacity in kilograms.

    Declaration

    Swift

    public func withPayloadCapacityInKilograms(_ payloadCapacityInKilograms: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    payloadCapacityInKilograms

    The vehicle payload capacity in kilograms.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the payload capacity set to the new value.

  • Sets the vehicle trailer axle count.

    Declaration

    Swift

    public func withTrailerAxleCount(_ trailerAxleCount: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    trailerAxleCount

    The vehicle trailer axle count.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the trailer axle count set to the new value.

  • Sets the vehicle gross weight in kilograms.

    Declaration

    Swift

    public func withGrossWeightInKilograms(_ grossWeightInKilograms: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    grossWeightInKilograms

    The vehicle gross weight in kilograms.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the gross weight set to the new value.

  • Sets the vehicle current weight in kilograms.

    Declaration

    Swift

    public func withCurrentWeightInKilograms(_ currentWeightInKilograms: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    currentWeightInKilograms

    The vehicle current weight in kilograms.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the current weight set to the new value.

  • Sets the vehicle empty weight in kilograms.

    Declaration

    Swift

    public func withEmptyWeightInKilograms(_ emptyWeightInKilograms: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    emptyWeightInKilograms

    The vehicle empty weight in kilograms.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the empty weight set to the new value.

  • Sets the vehicle weight per axle in kilograms.

    Declaration

    Swift

    public func withWeightPerAxleInKilograms(_ weightPerAxleInKilograms: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    weightPerAxleInKilograms

    The vehicle weight per axle in kilograms.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the current weight per axle set to the new value.

  • Sets the vehicle weight per axle group.

    Declaration

    Swift

    public func withWeightPerAxleGroup(_ weightPerAxleGroup: WeightPerAxleGroup) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    weightPerAxleGroup

    The vehicle weight per axle group.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the current weight per axle group set to the new value.

  • Sets the vehicle is commercial flag.

    Declaration

    Swift

    public func withIsCommercial(_ isCommercial: Bool) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    isCommercial

    The vehicle is commercial flag.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the is commercial flag set to the new value.

  • Sets the vehicle last character of the license plate.

    Declaration

    Swift

    public func withLastCharacterOfLicensePlate(_ lastCharacterOfLicensePlate: String) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    lastCharacterOfLicensePlate

    The vehicle last character of the license plate.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the last character of the licence plate set to the new value.

  • Sets the vehicle engine size in cubic centimeters.

    Declaration

    Swift

    public func withEngineSizeInCubicCentimeters(_ engineSizeInCubicCentimeters: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    engineSizeInCubicCentimeters

    The vehicle engine size in cubic centimeters.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the engine size set to the new value.

  • Sets the vehicle tires count.

    Declaration

    Swift

    public func withTiresCount(_ tiresCount: Int32) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    tiresCount

    The vehicle tires count.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the vehicle tires count set to the new value.

  • Sets the vehicle tunnel category.

    Declaration

    Swift

    public func withTunnelCategory(_ tunnelCategory: TunnelCategory) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    tunnelCategory

    The vehicle tunnel category.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the vehicle tunnel category set to the new value.

  • Sets the hazardous materials transported in the vehicle.

    Declaration

    Swift

    public func withHazardousMaterials(_ hazardousMaterials: [HazardousMaterial]) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    hazardousMaterials

    The hazardous materials transported in the vehicle.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the hazardous materiales transported in the vehicle set to the new value.

  • Specifies which road networks the truck is allowed to use.

    Declaration

    Swift

    public func withPreferredTruckNetworks(_ preferredTruckNetworks: [TruckNetwork]) -> VehicleSpecification.NetworkRestrictedTruckBuilder

    Parameters

    preferredTruckNetworks

    The road networks the truck is allowed to use.

    Return Value

    The VehicleSpecification.NetworkRestrictedTruckBuilder object with the road networks the truck is allowed to use set to the new value.

  • Builds the VehicleSpecification object for TransportMode.truck with the specifications taken from the VehicleSpecification.NetworkRestrictedTruckBuilder object.

    Declaration

    Swift

    public func build() -> VehicleSpecification

    Return Value

    The VehicleSpecification object created from the VehicleSpecification.TruckBuilder object.