axleCount property

IntegerRange? axleCount
getter/setter pair

The axle count for which the current restriction applies. Can be used in conjunction with RestrictionType.weightPerAxleCount to specify restriction based on weight per number of axles. The axleCount considers total number of axles on the whole vehicle (truck + trailers). This can be used to limit the weight per axle for the whole truck. If axleCount is null, the restriction is general and applies regardless of axle count. If the upper limit of the axleCount range is 0 or null then it means the restriction applies for values >= lower limit, i.e. the upper limit of range if infinite or unbound. When a user taps the icon, the allowed axleCount range can be retrieved directly from VehicleRestriction.axleCount. Examples:

  • (2,2) → Restriction applies to vehicles with exactly 2 axles.
  • (2,4) → Restriction applies to vehicles with 2, 3, or 4 axles.
  • (2, 0) → Restriction applies to vehicles with 2 or more axles (equivalent to 2...∞)

Implementation

IntegerRange? axleCount;