-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class AxleProfile implements Parcelable
This data class defines the axle profile of the vehicle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAxleProfile.Builder
-
Field Summary
Fields Modifier and Type Field Description private final IntegermaxWeightPerAxleprivate final IntegermaxDistanceBetweenAxlesprivate final IntegeramountOfAxlesprivate final ArrayList<AxleGroupProfile>axleGroups
-
Constructor Summary
Constructors Constructor Description AxleProfile(Integer maxWeightPerAxle, Integer maxDistanceBetweenAxles, Integer amountOfAxles, ArrayList<AxleGroupProfile> axleGroups)
-
Method Summary
Modifier and Type Method Description final IntegergetMaxWeightPerAxle()the maximum weight per axle Unit: kilograms This value represents the maximum weight capacity of any single axle in the vehicle. final IntegergetMaxDistanceBetweenAxles()the max distance between axles. final IntegergetAmountOfAxles()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. -
-
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)).
-
getMaxDistanceBetweenAxles
final Integer getMaxDistanceBetweenAxles()
the max distance between axles. Unit: centimetres
-
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)
-
-
-
-