Package 

Class AxleProfile

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public final class AxleProfile
     implements Parcelable
                        

    Data model representing axle profile.

    Instances are typically immutable after construction. Use builders or factory methods where provided.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class AxleProfile.Builder

      Data model representing builder.

      Instances are typically immutable after construction. Use builders or factory methods where provided.

    • Constructor Summary

      Constructors 
      Constructor Description
      AxleProfile(Integer maxWeightPerAxle, Integer maxDistanceBetweenAxles, Integer amountOfAxles, ArrayList<AxleGroupProfile> axleGroups)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getMaxWeightPerAxle() the maximum weight per axle Unit: kilograms This value represents the maximum weight capacity of any single axle in the vehicle.
      final Integer getMaxDistanceBetweenAxles() the max distance between axles.
      final Integer getAmountOfAxles() total amount of axles This value represents the total number of axles in the vehicle, including both single axles and axles in axle groups.
      final ArrayList<AxleGroupProfile> getAxleGroups() axle groups This field indicates all axle groups of the vehicle, including both single axles and axle groups.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AxleProfile

        AxleProfile(Integer maxWeightPerAxle, Integer maxDistanceBetweenAxles, Integer amountOfAxles, ArrayList<AxleGroupProfile> axleGroups)
    • Method Detail

      • getMaxWeightPerAxle

         final Integer getMaxWeightPerAxle()

        the maximum weight per axle Unit: kilograms This value represents the maximum weight capacity of any single axle in the vehicle. For example: 1. In a vehicle with two single axles (8000kg and 11500kg) and one tandem axle group (24000kg total), this value should be 12000kg (24000kg/2) as it represents the maximum weight per axle in the tandem group. 2. In a vehicle with two single axles (8000kg and 11500kg) and one triple axle group (24000kg total), this value should be 11500kg as it represents the maximum weight among all single axles (11500kg 8000kg 8000kg(24000kg/3)).

      • getAmountOfAxles

         final Integer getAmountOfAxles()

        total amount of axles This value represents the total number of axles in the vehicle, including both single axles and axles in axle groups. For example: 1. In a vehicle with two single axles (8000kg and 11500kg) and one tandem axle group (24000kg total), this value should be 4 (2 single axles + 2 axles in tandem group). 2. In a vehicle with two single axles (8000kg and 11500kg) and one triple axle group (24000kg total), this value should be 5 (2 single axles + 3 axles in triple group).

      • getAxleGroups

         final ArrayList<AxleGroupProfile> getAxleGroups()

        axle groups This field indicates all axle groups of the vehicle, including both single axles and axle groups. Each group contains information about axle type, weight, and wheels. For example: 1. In a vehicle with: - one single axle (8000kg, single wheel) - one single axle (11500kg, dual wheels) - one tandem axle group (24000kg total, dual wheels) this vector should contain: - {AxleGroupType::Single, 11500kg, WheelsPerAxle::Dual} (for the heavier single axle) - {AxleGroupType::Tandem, 24000kg, WheelsPerAxle::Dual} (for the tandem group) 2. In a vehicle with: - one single axle (8000kg, single wheel) - one single axle (11500kg, dual wheels) - one triple axle group (24000kg total, dual wheels) this vector should contain: - {AxleGroupType::Single, 11500kg, WheelsPerAxle::Dual} (for the heavier single axle) - {AxleGroupType::Triple, 24000kg, WheelsPerAxle::Dual} (for the triple group)