org.opennms.netmgt.threshd
Class ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange

java.lang.Object
  extended by org.opennms.netmgt.threshd.AbstractThresholdEvaluatorState
      extended by org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange
All Implemented Interfaces:
ThresholdEvaluatorState
Enclosing class:
ThresholdEvaluatorRearmingAbsoluteChange

public static class ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange
extends AbstractThresholdEvaluatorState


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opennms.netmgt.threshd.ThresholdEvaluatorState
ThresholdEvaluatorState.Status
 
Constructor Summary
ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange(BaseThresholdDefConfigWrapper threshold)
           
 
Method Summary
 void clearState()
           
 ThresholdEvaluatorState.Status evaluate(double dsValue)
           
 ThresholdEvaluatorState getCleanClone()
          Returns a "clean" (armed, non-triggered) clone of this object
 Event getEventForState(ThresholdEvaluatorState.Status status, Date date, double dsValue, CollectionResourceWrapper resource)
           
 Double getLastSample()
           
 double getPreviousTriggeringSample()
           
 BaseThresholdDefConfigWrapper getThresholdConfig()
           
 String getType()
           
 boolean isTriggered()
          Return true if current state is TRIGGERED
 void setLastSample(double lastSample)
           
 void setPreviousTriggeringSample(double previousTriggeringSample)
           
 void setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig)
           
 
Methods inherited from class org.opennms.netmgt.threshd.AbstractThresholdEvaluatorState
createBasicEvent, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange

public ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange(BaseThresholdDefConfigWrapper threshold)
Method Detail

getType

public String getType()

setThresholdConfig

public void setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig)

getThresholdConfig

public BaseThresholdDefConfigWrapper getThresholdConfig()

evaluate

public ThresholdEvaluatorState.Status evaluate(double dsValue)

getLastSample

public Double getLastSample()

setLastSample

public void setLastSample(double lastSample)

getEventForState

public Event getEventForState(ThresholdEvaluatorState.Status status,
                              Date date,
                              double dsValue,
                              CollectionResourceWrapper resource)

getPreviousTriggeringSample

public double getPreviousTriggeringSample()

setPreviousTriggeringSample

public void setPreviousTriggeringSample(double previousTriggeringSample)

getCleanClone

public ThresholdEvaluatorState getCleanClone()
Description copied from interface: ThresholdEvaluatorState
Returns a "clean" (armed, non-triggered) clone of this object

Returns:

isTriggered

public boolean isTriggered()
Description copied from interface: ThresholdEvaluatorState
Return true if current state is TRIGGERED


clearState

public void clearState()


Copyright © 2009. All Rights Reserved.