SpeedSectionAlarm class Core
Section / average-speed control alarm.
Describes an average-speed enforcement zone bounded by an entry gantry and an exit gantry, together with the driver's live progress and average speed within it.
API users should not create instances of this class directly.
See also:
- AlarmService.speedSectionAlarms - The currently active section alarms.
- AlarmService.approachingSpeedSectionAlarms - Sections coming up ahead.
- AlarmService.exitedSpeedSectionAlarms - Sections just left behind.
- AlarmService.enableSpeedSectionAlarm - Turn these alarms on.
Constructors
- SpeedSectionAlarm({required OverlayItem entry, required OverlayItem exit, required int totalDistance, required int remainingDistance, required double speedLimit, required double speedAvg})
- Creates a SpeedSectionAlarm.
Properties
- entry → OverlayItem
-
The section entry gantry overlay item.
final
- exit → OverlayItem
-
The section exit gantry overlay item.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- remainingDistance → int
-
Remaining distance to the exit gantry, in meters.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speedAvg → double
-
The driver's running average speed since the entry gantry, in meters per second.
final
- speedLimit → double
-
Enforced section speed limit, in meters per second.
final
- totalDistance → int
-
Total enforced section length, in meters.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
covariant SpeedSectionAlarm other) → bool -
The equality operator.
override