public static class ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange extends AbstractThresholdEvaluatorState
ThresholdEvaluatorState.Status
FORMATED_NAN
Constructor and Description |
---|
ThresholdEvaluatorStateRearmingAbsoluteChange(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
|
Double |
getLastSample() |
double |
getPreviousTriggeringSample() |
BaseThresholdDefConfigWrapper |
getThresholdConfig()
getThresholdConfig
|
String |
getType() |
boolean |
isTriggered()
Return true if current state is TRIGGERED
|
void |
setLastSample(double lastSample) |
void |
setPreviousTriggeringSample(double previousTriggeringSample) |
void |
setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig) |
createBasicEvent, formatValue
public ThresholdEvaluatorStateRearmingAbsoluteChange(BaseThresholdDefConfigWrapper threshold)
public String getType()
public void setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig)
public BaseThresholdDefConfigWrapper getThresholdConfig()
ThresholdEvaluatorState
getThresholdConfig
BaseThresholdDefConfigWrapper
object.public ThresholdEvaluatorState.Status evaluate(double dsValue)
ThresholdEvaluatorState
evaluate
dsValue
- a double.ThresholdEvaluatorState.Status
object.public Double getLastSample()
public void setLastSample(double lastSample)
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 double getPreviousTriggeringSample()
public void setPreviousTriggeringSample(double previousTriggeringSample)
public ThresholdEvaluatorState getCleanClone()
ThresholdEvaluatorState
ThresholdEvaluatorState
object.public boolean isTriggered()
ThresholdEvaluatorState
public void clearState()
ThresholdEvaluatorState
clearState
Copyright © 2019. All rights reserved.