public static class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow extends AbstractThresholdEvaluatorState
ThresholdEvaluatorState.StatusFORMATED_NAN| Constructor and Description |
|---|
ThresholdEvaluatorStateHighLow(BaseThresholdDefConfigWrapper threshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearState()
clearState
|
ThresholdEvaluatorState.Status |
evaluate(double dsValue)
evaluate
|
ThresholdEvaluatorState |
getCleanClone()
Returns a "clean" (armed, non-triggered) clone of this object
|
Event |
getEventForState(ThresholdEvaluatorState.Status status,
Date date,
double dsValue,
CollectionResourceWrapper resource)
getEventForState
|
int |
getExceededCount() |
BaseThresholdDefConfigWrapper |
getThresholdConfig()
getThresholdConfig
|
ThresholdType |
getType() |
boolean |
isArmed() |
protected boolean |
isRearmExceeded(double dsValue) |
protected boolean |
isThresholdExceeded(double dsValue) |
protected boolean |
isTriggerCountExceeded() |
boolean |
isTriggered()
Return true if current state is TRIGGERED
|
void |
setArmed(boolean armed) |
void |
setExceededCount(int exceededCount) |
void |
setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig) |
createBasicEvent, formatValuepublic ThresholdEvaluatorStateHighLow(BaseThresholdDefConfigWrapper threshold)
public boolean isArmed()
public void setArmed(boolean armed)
public int getExceededCount()
public void setExceededCount(int exceededCount)
public BaseThresholdDefConfigWrapper getThresholdConfig()
ThresholdEvaluatorStategetThresholdConfig
BaseThresholdDefConfigWrapper object.public void setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig)
public ThresholdType getType()
public ThresholdEvaluatorState.Status evaluate(double dsValue)
ThresholdEvaluatorStateevaluate
dsValue - a double.ThresholdEvaluatorState.Status object.protected boolean isThresholdExceeded(double dsValue)
protected boolean isRearmExceeded(double dsValue)
protected boolean isTriggerCountExceeded()
public Event getEventForState(ThresholdEvaluatorState.Status status, Date date, double dsValue, CollectionResourceWrapper resource)
ThresholdEvaluatorStategetEventForState
status - a ThresholdEvaluatorState.Status object.date - a Date object.dsValue - a double.resource - a CollectionResourceWrapper object.Event object.public ThresholdEvaluatorState getCleanClone()
ThresholdEvaluatorStateThresholdEvaluatorState object.public boolean isTriggered()
ThresholdEvaluatorStatepublic void clearState()
ThresholdEvaluatorStateclearState
Copyright © 2020. All rights reserved.