public static class ThresholdEvaluatorAbsoluteChange.ThresholdEvaluatorStateAbsoluteChange extends AbstractThresholdEvaluatorState
ThresholdEvaluatorState.Status
FORMATED_NAN
Constructor and Description |
---|
ThresholdEvaluatorStateAbsoluteChange(BaseThresholdDefConfigWrapper threshold) |
Modifier and Type | Method and Description |
---|---|
void |
clearState()
clearState
|
ThresholdEvaluatorState.Status |
evaluate(double dsValue)
evaluate
|
double |
getChange() |
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
|
boolean |
isTriggered()
Return true if current state is TRIGGERED
|
void |
setChange(double change) |
void |
setLastSample(double lastSample) |
void |
setPreviousTriggeringSample(double previousTriggeringSample) |
void |
setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig) |
createBasicEvent, formatValue
public ThresholdEvaluatorStateAbsoluteChange(BaseThresholdDefConfigWrapper threshold)
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 double getChange()
public void setChange(double change)
public ThresholdEvaluatorState getCleanClone()
ThresholdEvaluatorState
ThresholdEvaluatorState
object.public boolean isTriggered()
ThresholdEvaluatorState
public void clearState()
ThresholdEvaluatorState
clearState
Copyright © 2019. All rights reserved.