public abstract class BaseThresholdDefConfigWrapper extends Object
Abstract BaseThresholdDefConfigWrapper class.
Modifier | Constructor and Description |
---|---|
protected |
BaseThresholdDefConfigWrapper(Basethresholddef baseDef)
Constructor for BaseThresholdDefConfigWrapper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
abstract double |
evaluate(Map<String,Double> values)
Evaluate the threshold expression/datasource in terms of the named values supplied, and return that value
|
Basethresholddef |
getBasethresholddef()
getBasethresholddef
|
static BaseThresholdDefConfigWrapper |
getConfigWrapper(Basethresholddef baseDef)
getConfigWrapper
|
abstract String |
getDatasourceExpression()
getDatasourceExpression
|
String |
getDsLabel()
getDsLabel
|
String |
getDsType()
getDsType
|
List<String> |
getFilterDatasources()
Returns the names of the datasources required from the resource filters
|
double |
getRearm()
getRearm
|
String |
getRearmedUEI()
getRearmedUEI
|
abstract Collection<String> |
getRequiredDatasources()
Returns the names of the datasources required to evaluate this threshold
|
int |
getTrigger()
getTrigger
|
String |
getTriggeredUEI()
getTriggeredUEI
|
String |
getType()
getType
|
double |
getValue()
getValue
|
int |
hashCode() |
boolean |
hasRearm()
hasRearm
|
boolean |
hasTrigger()
hasTrigger
|
boolean |
hasValue()
hasValue
|
void |
merge(BaseThresholdDefConfigWrapper threshold)
merge
|
protected BaseThresholdDefConfigWrapper(Basethresholddef baseDef)
Constructor for BaseThresholdDefConfigWrapper.
baseDef
- a Basethresholddef
object.public static BaseThresholdDefConfigWrapper getConfigWrapper(Basethresholddef baseDef) throws ThresholdExpressionException
getConfigWrapper
baseDef
- a Basethresholddef
object.BaseThresholdDefConfigWrapper
object.ThresholdExpressionException
- if any.public List<String> getFilterDatasources()
public abstract String getDatasourceExpression()
getDatasourceExpression
public abstract Collection<String> getRequiredDatasources()
public abstract double evaluate(Map<String,Double> values) throws ThresholdExpressionException
values
- named values to use in evaluating the expression/data sourceThresholdExpressionException
- if any.public double getRearm()
getRearm
public int getTrigger()
getTrigger
public double getValue()
getValue
public boolean hasRearm()
hasRearm
public boolean hasTrigger()
hasTrigger
public boolean hasValue()
hasValue
public Basethresholddef getBasethresholddef()
getBasethresholddef
Basethresholddef
object.public void merge(BaseThresholdDefConfigWrapper threshold)
merge
threshold
- a BaseThresholdDefConfigWrapper
object.Copyright © 2017. All rights reserved.