public static final class AlertsManager.DSAlertOptions extends Object
Constructor and Description |
---|
DSAlertOptions(long interval)
Initializes a new instance of the
AlertsManager.IncidentAlertOptions class. |
DSAlertOptions(long interval,
AlertsManagerConfig config)
Initializes a new instance of the
AlertsManager.IncidentAlertOptions class. |
DSAlertOptions(long interval,
float forwardConeAngle,
int maxLookAheadDistance,
int minLookAheadDistance,
int calculationStartDistance)
Initializes a new instance of the
AlertsManager.IncidentAlertOptions class. |
Modifier and Type | Method and Description |
---|---|
int |
getCalculationStartDistance() |
int |
getMaxLookAheadDistance()
Gets the max distance value.
|
int |
getMinLookAheadDistance() |
void |
setCalculationStartDistance(int calculationStartDistance) |
T |
setComparator(Comparator<M> value)
Sets the incident comparator which will be used to sort incidents before
returning a set of incidents.
|
T |
setFilter(IFilter<M> value)
Sets the filter that filters out incidents.
|
T |
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.
|
void |
setMaxLookAheadDistance(int maxLookAheadDistance)
Sets the max distance.
|
void |
setMinLookAheadDistance(int minLookAheadDistance) |
T |
setSpeedFactor(float value)
Sets the speed factor.
|
String |
toString() |
public DSAlertOptions(long interval)
AlertsManager.IncidentAlertOptions
class.interval
- Alert interval in seconds. See setInterval(long)
.public DSAlertOptions(long interval, float forwardConeAngle, int maxLookAheadDistance, int minLookAheadDistance, int calculationStartDistance)
AlertsManager.IncidentAlertOptions
class.interval
- Alert interval in seconds. See setInterval(long)
.forwardConeAngle
- The angle of the cone we want to filter incidents. See setForwardConeAngle(float)
.public DSAlertOptions(long interval, AlertsManagerConfig config)
AlertsManager.IncidentAlertOptions
class.interval
- Alert interval in seconds. See setInterval(long)
.config
- An instance of the AlertsManagerConfig
.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<M> value)
value
- The incident comparator.public T setFilter(IFilter<M> 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.public T setForwardConeAngle(float value)
AlertsManagerConfig.getForwardConeAngle()
degrees.
Valid values must fall between FORWARD_CONE_ANGLE_MIN
and 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 int getMaxLookAheadDistance()
public void setMaxLookAheadDistance(int maxLookAheadDistance)
maxLookAheadDistance
- The distance value in meters.public int getMinLookAheadDistance()
public void setMinLookAheadDistance(int minLookAheadDistance)
public int getCalculationStartDistance()
public void setCalculationStartDistance(int calculationStartDistance)
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.