DynamicRoutingEngineOptions class
Options defining the behavior of the DynamicRoutingEngine.
Both, minTimeDifference and minTimeDifferencePercentage, will be checked:
When the poll interval is reached, the smaller difference will win and
the DynamicRoutingListener is notified.
Constructors
- DynamicRoutingEngineOptions()
- Creates an instance of this class.
Properties
- hashCode → int
-
The hash code for this object.
no setter
- minTimeDifference ↔ Duration?
-
The minimum time difference, before notifying the DynamicRoutingListener.
To get notified, the following check must be true:
oldEstimatedTimeOfArrival - newEstimatedTimeOfArrival > DynamicRoutingEngineOptions.minTimeDifference.
A value of 0 will be treated as
nullmeaning no event will be sent. In order to receive events the difference needs to be greater than 0. Defaults tonull.getter/setter pair - minTimeDifferencePercentage ↔ double?
-
The value is in the range of [0, 1] over the remaining (current position to next waypoint)
To get notified, the following check must be true:
oldEstimatedTimeOfArrival - newEstimatedTimeOfArrival >= newRouteDuration *
min_time_difference_percentage. A value of 0 will be treated asnullmeaning no event will be sent. In order to receive events the difference needs to be greater than 0. Defaults tonull.getter/setter pair - pollInterval ↔ Duration
-
The poll interval.
Zero duration triggers a route calculation with each position update.
Triggered via DynamicRoutingEngine.updateCurrentLocation
Defaults to 15 minutes.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 ==(
Object other) → bool - The equality operator.