public interface ThresholdEvaluatorState extends ReinitializableState
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
ThresholdEvaluatorState.Status  | 
static class  | 
ThresholdEvaluatorState.ValueStatus  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clearState()
clearState 
 | 
default ThresholdEvaluatorState.Status | 
evaluate(double dsValue)
evaluate 
 | 
ThresholdEvaluatorState.Status | 
evaluate(double dsValue,
        Long sequenceNumber)  | 
ThresholdEvaluatorState.ValueStatus | 
evaluate(ExpressionThresholdValue valueSupplier,
        Long sequenceNumber)  | 
ThresholdEvaluatorState | 
getCleanClone()
Returns a "clean" (armed, non-triggered) clone of this object 
 | 
Event | 
getEventForState(ThresholdEvaluatorState.Status status,
                Date date,
                double dsValue,
                CollectionResourceWrapper resource)
getEventForState 
 | 
BaseThresholdDefConfigWrapper | 
getThresholdConfig()
getThresholdConfig 
 | 
ThresholdingSession | 
getThresholdingSession()  | 
boolean | 
isTriggered()
Return true if current state is TRIGGERED 
 | 
void | 
setInstance(String instance)  | 
reinitializedefault ThresholdEvaluatorState.Status evaluate(double dsValue)
evaluate
dsValue - a double.ThresholdEvaluatorState.Status object.ThresholdEvaluatorState.Status evaluate(double dsValue, Long sequenceNumber)
ThresholdEvaluatorState.ValueStatus evaluate(ExpressionThresholdValue valueSupplier, Long sequenceNumber) throws ThresholdExpressionException
ThresholdExpressionExceptionEvent getEventForState(ThresholdEvaluatorState.Status status, Date date, double dsValue, CollectionResourceWrapper resource)
getEventForState
status - a ThresholdEvaluatorState.Status object.date - a Date object.dsValue - a double.resource - a CollectionResourceWrapper object.Event object.boolean isTriggered()
void clearState()
clearState
BaseThresholdDefConfigWrapper getThresholdConfig()
getThresholdConfig
BaseThresholdDefConfigWrapper object.ThresholdEvaluatorState getCleanClone()
ThresholdEvaluatorState object.ThresholdingSession getThresholdingSession()
void setInstance(String instance)
Copyright © 2021. All rights reserved.