Package org.jini.rio.core
Class ThresholdValues
java.lang.Object
org.jini.rio.core.ThresholdValues
- All Implemented Interfaces:
Serializable,Cloneable
ThresholdValues provides attributes for thresholds which can be applied to a Watch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ThresholdValuesThresholdValues(double[] range) Create a new ThresholdValuesThresholdValues(double lowThreshold, double highThreshold) Create a new ThresholdValues -
Method Summary
Modifier and TypeMethodDescriptionclone()doubleGetter for property currentHighThreshold.doubleGetter for property currentLowThreshold.doubleGetter for property highThreshold.doubleGetter for property lowThreshold.longGets the count of breached thresholdslongGets the count of cleared thresholdsvoidIncrements the count of breached thresholdsvoidIncrements the count of cleared thresholdsvoidReset the currentHighThreshold to tbe original highThreshold valuevoidReset the currentLowThreshold to tbe original lowThreshold valuevoidsetCurrentHighThreshold(double threshold) Setter for property currentHighThreshold.voidsetCurrentLowThreshold(double threshold) Setter for property currentHighThreshold.toString()
-
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 thresholdhighThreshold- 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
-
clone
-