public class ThresholdConfigWrapper extends BaseThresholdDefConfigWrapper
ThresholdConfigWrapper class.
Constructor and Description |
---|
ThresholdConfigWrapper(Threshold threshold)
Constructor for ThresholdConfigWrapper.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(Map<String,Double> values)
Evaluate the threshold expression/datasource in terms of the named values supplied, and return that value
|
String |
getDatasourceExpression()
getDatasourceExpression
|
Collection<String> |
getRequiredDatasources()
Returns the names of the datasources required to evaluate this threshold
|
equals, getBasethresholddef, getConfigWrapper, getDsLabel, getDsType, getFilterDatasources, getRearm, getRearmedUEI, getTrigger, getTriggeredUEI, getType, getValue, hashCode, hasRearm, hasTrigger, hasValue, merge
public String getDatasourceExpression()
getDatasourceExpression
getDatasourceExpression
in class BaseThresholdDefConfigWrapper
public Collection<String> getRequiredDatasources()
getRequiredDatasources
in class BaseThresholdDefConfigWrapper
public double evaluate(Map<String,Double> values) throws ThresholdExpressionException
evaluate
in class BaseThresholdDefConfigWrapper
values
- named values to use in evaluating the expression/data sourceThresholdExpressionException
- if any.Copyright © 2019. All rights reserved.