public class ExpressionConfigWrapper extends BaseThresholdDefConfigWrapper
Modifier and Type | Class and Description |
---|---|
static class |
ExpressionConfigWrapper.ExpressionThresholdValues |
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 |
---|---|
void |
accept(ThresholdDefVisitor thresholdDefVisitor) |
double |
evaluate(String expression,
Map<String,Double> values)
Evaluate given an already interpolated expression that contains no mate data.
|
String |
getDatasourceExpression()
getDatasourceExpression
|
Collection<String> |
getRequiredDatasources()
Returns the names of the datasources required to evaluate this threshold
|
ExpressionConfigWrapper.ExpressionThresholdValues |
interpolateAndEvaluate(Map<String,Double> values,
Scope scope)
Evaluate with un-interpolated expression that may contain mate data, meaning we need to interpolate it first.
|
equals, getBasethresholddef, getConfigWrapper, getDsLabel, getDsType, getFilterDatasources, getRearm, getRearmedUEI, getRearmString, getTrigger, getTriggeredUEI, getTriggerString, getType, getValue, getValueString, hashCode, hasRearm, hasTrigger, hasValue, interpolateThresholdValues, 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(String expression, Map<String,Double> values) throws ThresholdExpressionException
ThresholdExpressionException
public ExpressionConfigWrapper.ExpressionThresholdValues interpolateAndEvaluate(Map<String,Double> values, Scope scope) throws ThresholdExpressionException
ThresholdExpressionException
public void accept(ThresholdDefVisitor thresholdDefVisitor)
accept
in class BaseThresholdDefConfigWrapper
Copyright © 2021. All rights reserved.