Class ThresholdValues

java.lang.Object
org.jini.rio.core.ThresholdValues
All Implemented Interfaces:
Serializable, Cloneable

public class ThresholdValues extends Object implements Serializable, Cloneable
ThresholdValues provides attributes for thresholds which can be applied to a Watch
See Also:
  • Constructor Details

    • ThresholdValues

      public ThresholdValues()
      Create a new ThresholdValues
    • ThresholdValues

      public ThresholdValues(double[] range)
      Create a new ThresholdValues
      Parameters:
      range - Array of double values indicating the range of acceptable lower and upper thresholds
    • ThresholdValues

      public ThresholdValues(double lowThreshold, double highThreshold)
      Create a new ThresholdValues
      Parameters:
      lowThreshold - The low threshold
      highThreshold - The high threshold value
  • Method Details

    • getHighThreshold

      public double getHighThreshold()
      Getter for property highThreshold.
      Returns:
      Value of property highThreshold.
    • getLowThreshold

      public double getLowThreshold()
      Getter for property lowThreshold.
      Returns:
      Value of property lowThreshold.
    • getCurrentHighThreshold

      public double getCurrentHighThreshold()
      Getter for property currentHighThreshold.
      Returns:
      Value of property currentHighThreshold.
    • setCurrentHighThreshold

      public void setCurrentHighThreshold(double threshold)
      Setter for property currentHighThreshold.
      Parameters:
      threshold - New value of property currentHighThreshold.
    • getCurrentLowThreshold

      public double getCurrentLowThreshold()
      Getter for property currentLowThreshold.
      Returns:
      Value of property currentLowThreshold.
    • setCurrentLowThreshold

      public void setCurrentLowThreshold(double threshold)
      Setter for property currentHighThreshold.
      Parameters:
      threshold - New value of property currentHighThreshold.
    • resetLowThreshold

      public void resetLowThreshold()
      Reset the currentLowThreshold to tbe original lowThreshold value
    • resetHighThreshold

      public void resetHighThreshold()
      Reset the currentHighThreshold to tbe original highThreshold value
    • incThresholdBreachedCount

      public void incThresholdBreachedCount()
      Increments the count of breached thresholds
    • getThresholdBreachedCount

      public long getThresholdBreachedCount()
      Gets the count of breached thresholds
    • incThresholdClearedCount

      public void incThresholdClearedCount()
      Increments the count of cleared thresholds
    • getThresholdClearedCount

      public long getThresholdClearedCount()
      Gets the count of cleared thresholds
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object