getWarnings abstract method
- SegmentData currentSegment,
- SegmentData? previousSegment
Returns a list of custom warnings for the given vehicle position.
This method evaluates the custom warning provider using the current vehicle position on the electronic horizon and returns the resulting custom warnings along with corresponding payload.
-
currentSegmentSegment data representing the vehicle’s current position on the electronic horizon. -
previousSegmentSegment data representing the vehicle’s previous position on the electronic horizon. This parameter may be null if no previous position information is available.
Returns List<CustomWarning>. A list of CustomWarning instances representing all applicable
custom warnings. The list may be empty if no warnings apply.
Implementation
List<CustomWarning> getWarnings(SegmentData currentSegment, SegmentData? previousSegment);