public static class ThresholdEvaluatorRelativeChange.ThresholdEvaluatorStateRelativeChange extends AbstractThresholdEvaluatorState
ThresholdEvaluatorState.StatusFORMATED_NAN| Constructor and Description |
|---|
ThresholdEvaluatorStateRelativeChange(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 |
getMultiplier() |
double |
getPreviousTriggeringSample() |
BaseThresholdDefConfigWrapper |
getThresholdConfig()
getThresholdConfig
|
boolean |
isTriggered()
Return true if current state is TRIGGERED
|
void |
setLastSample(double lastSample) |
void |
setMultiplier(double multiplier) |
void |
setPreviousTriggeringSample(double previousTriggeringSample) |
void |
setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig) |
createBasicEvent, formatValuepublic ThresholdEvaluatorStateRelativeChange(BaseThresholdDefConfigWrapper threshold)
public void setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig)
public BaseThresholdDefConfigWrapper getThresholdConfig()
ThresholdEvaluatorStategetThresholdConfig
BaseThresholdDefConfigWrapper object.public ThresholdEvaluatorState.Status evaluate(double dsValue)
ThresholdEvaluatorStateevaluate
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)
ThresholdEvaluatorStategetEventForState
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 getMultiplier()
public void setMultiplier(double multiplier)
public ThresholdEvaluatorState getCleanClone()
ThresholdEvaluatorStateThresholdEvaluatorState object.public boolean isTriggered()
ThresholdEvaluatorStatepublic void clearState()
ThresholdEvaluatorStateclearState
Copyright © 2017. All rights reserved.