public class ExpressionConfigWrapper extends BaseThresholdDefConfigWrapper
Modifier and Type | Class and Description |
---|---|
static class |
ExpressionConfigWrapper.MathBinding
This class provides an instance that gives access to the
Math functions. |
Constructor and Description |
---|
ExpressionConfigWrapper(Expression expression) |
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 ExpressionConfigWrapper(Expression expression) throws ThresholdExpressionException
ThresholdExpressionException
public String getDatasourceExpression()
BaseThresholdDefConfigWrapper
getDatasourceExpression
getDatasourceExpression
in class BaseThresholdDefConfigWrapper
public Collection<String> getRequiredDatasources()
BaseThresholdDefConfigWrapper
getRequiredDatasources
in class BaseThresholdDefConfigWrapper
public double evaluate(Map<String,Double> values) throws ThresholdExpressionException
BaseThresholdDefConfigWrapper
evaluate
in class BaseThresholdDefConfigWrapper
values
- named values to use in evaluating the expression/data sourceThresholdExpressionException
- if any.Copyright © 2019. All rights reserved.