public static class AlertsManager.RouteAlertOptions extends Object
| Constructor and Description |
|---|
RouteAlertOptions(RouteManager.RequestRouteOptions routeOptions,
long interval)
Initializes a new instance of the
AlertsManager.RouteAlertOptions class
with route request options and an alert interval. |
RouteAlertOptions(RouteManager.RequestRouteOptions routeOptions,
long interval,
IFilter<Incident> filter)
Initializes a new instance of the
AlertsManager.RouteAlertOptions class
with route request options, an alert interval, and incidents filter. |
| Modifier and Type | Method and Description |
|---|---|
void |
setAtLocationTolerance(int tolerance)
Set the "at location" tolerance in meters.
|
T |
setComparator(Comparator<Incident> value)
Sets the incident comparator which will be used to sort incidents before
returning a set of incidents.
|
T |
setFilter(IFilter<Incident> value)
Sets the filter that filters out incidents.
|
T |
setInterval(long value)
Sets the desired notification interval in seconds.
|
void |
setOnRouteTolerance(int tolerance)
Set the "on route" tolerance in meters.
|
AlertsManager.RouteAlertOptions |
setParkingAlertOptions(AlertsManager.ParkingAlertOptions parkingAlertOptions)
Set the options for requesting and firing parking alerts.
|
void |
setRetryCount(int retryCount)
Sets the number of times to retry route request in case of failures.
|
AlertsManager.RouteAlertOptions |
setRouteOptions(RouteManager.RequestRouteOptions routeOptions)
Set the options for requesting routes.
|
T |
setSpeedFactor(float value)
Sets the speed factor.
|
String |
toString() |
public RouteAlertOptions(RouteManager.RequestRouteOptions routeOptions, long interval)
AlertsManager.RouteAlertOptions class
with route request options and an alert interval.routeOptions - Options for requesting routes.interval - The alert interval. See setInterval(long).public RouteAlertOptions(RouteManager.RequestRouteOptions routeOptions, long interval, IFilter<Incident> filter)
AlertsManager.RouteAlertOptions class
with route request options, an alert interval, and incidents filter.routeOptions - Options for requesting routes.interval - The alert interval. See setInterval(long).filter - The incidents filter. See setFilter(com.inrix.sdk.IFilter<com.inrix.sdk.model.Incident>).public AlertsManager.RouteAlertOptions setRouteOptions(RouteManager.RequestRouteOptions routeOptions)
routeOptions - Options for requesting routes.AlertsManager.RouteAlertOptions class.AlertsManager.AlertsManagerException - Thrown when routeOptions is null.public AlertsManager.RouteAlertOptions setParkingAlertOptions(AlertsManager.ParkingAlertOptions parkingAlertOptions)
parkingAlertOptions - Options for requesting parking information.AlertsManager.RouteAlertOptions class.AlertsManager.AlertsManagerException - Thrown when parkingAlertOptions is null.public void setRetryCount(int retryCount)
AlertsManagerConfig.getRetryCount().retryCount - Number of retries.public void setOnRouteTolerance(int tolerance)
AlertsManager.OnRouteStatus.OFF_ROUTE will be triggered.tolerance - The tolerance in meters that is considered "on route".AlertsManager.AlertsManagerException - When the value is less than or equal to zero.public void setAtLocationTolerance(int tolerance)
AlertsManager.OnRouteStatus will be triggered.tolerance - The tolerance in meters that is considered at a location.AlertsManager.AlertsManagerException - When the value is less than or equal to zero.public T setSpeedFactor(float value)
value - The speed factor, which should be positive number.
Default value is AlertsManagerConfig.getSpeedFactor().AlertsManager.AlertsManagerException - Thrown when the speed factor is invalid.public T setComparator(Comparator<Incident> value)
value - The incident comparator.public T setFilter(IFilter<Incident> value)
value - The incident filter.public T setInterval(long value)
value - The alert notification interval in seconds.AlertsManager.AlertsManagerException - When the interval value is invalid.Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.