public static class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow extends AbstractThresholdEvaluatorState
ThresholdEvaluatorState.Status
FORMATED_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
|
String |
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, formatValue
public ThresholdEvaluatorStateHighLow(BaseThresholdDefConfigWrapper threshold)
public boolean isArmed()
public void setArmed(boolean armed)
public int getExceededCount()
public void setExceededCount(int exceededCount)
public BaseThresholdDefConfigWrapper getThresholdConfig()
ThresholdEvaluatorState
getThresholdConfig
BaseThresholdDefConfigWrapper
object.public void setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig)
public String getType()
public ThresholdEvaluatorState.Status evaluate(double dsValue)
ThresholdEvaluatorState
evaluate
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)
ThresholdEvaluatorState
getEventForState
status
- a ThresholdEvaluatorState.Status
object.date
- a Date
object.dsValue
- a double.resource
- a CollectionResourceWrapper
object.Event
object.public ThresholdEvaluatorState getCleanClone()
ThresholdEvaluatorState
ThresholdEvaluatorState
object.public boolean isTriggered()
ThresholdEvaluatorState
public void clearState()
ThresholdEvaluatorState
clearState
Copyright © 2017. All rights reserved.