public static final class AlertsManager.IncidentAlertOptions extends Object
Constructor and Description |
---|
IncidentAlertOptions(long interval)
Initializes a new instance of the
AlertsManager.IncidentAlertOptions class. |
IncidentAlertOptions(long interval,
IFilter<Incident> filter,
AlertsManagerConfig config)
Initializes a new instance of the
AlertsManager.IncidentAlertOptions class. |
IncidentAlertOptions(long interval,
IFilter<Incident> filter,
float forwardConeAngle)
Initializes a new instance of the
AlertsManager.IncidentAlertOptions class. |
Modifier and Type | Method and Description |
---|---|
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.
|
AlertsManager.IncidentAlertOptions |
setForwardConeAngle(float value)
Sets the angle of the cone to search ahead for incidents.
|
T |
setInterval(long value)
Sets the desired notification interval in seconds.
|
T |
setSpeedFactor(float value)
Sets the speed factor.
|
String |
toString() |
public IncidentAlertOptions(long interval)
AlertsManager.IncidentAlertOptions
class.interval
- Alert interval in seconds. See setInterval(long)
.public IncidentAlertOptions(long interval, IFilter<Incident> filter, float forwardConeAngle)
AlertsManager.IncidentAlertOptions
class.interval
- Alert interval in seconds. See setInterval(long)
.filter
- Incidents filter. See setFilter(com.inrix.sdk.IFilter<com.inrix.sdk.model.Incident>)
.forwardConeAngle
- The angle of the cone we want to filter incidents. See AlertsManager.IncidentAlertOptions.setForwardConeAngle(float)
.public IncidentAlertOptions(long interval, IFilter<Incident> filter, AlertsManagerConfig config)
AlertsManager.IncidentAlertOptions
class.interval
- Alert interval in seconds. See setInterval(long)
.filter
- Incidents filter. See setFilter(com.inrix.sdk.IFilter<com.inrix.sdk.model.Incident>)
.config
- An instance of the AlertsManagerConfig
.public AlertsManager.IncidentAlertOptions setForwardConeAngle(float value)
AlertsManagerConfig.getForwardConeAngle()
degrees.
Valid values must fall between AlertsManager.IncidentAlertOptions.FORWARD_CONE_ANGLE_MIN
and AlertsManager.IncidentAlertOptions.FORWARD_CONE_ANGLE_MAX
.value
- The forward cone angle value in degrees.AlertsManager.IncidentAlertOptions
class.AlertsManager.AlertsManagerException
- When the forward cone angle is out of range.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.