|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.watch.ThresholdValues
public class ThresholdValues
ThresholdValues provides attributes for thresholds which can be applied to a Watch
| Constructor Summary | |
|---|---|
ThresholdValues()
Create a new ThresholdValues |
|
ThresholdValues(double... range)
Create a new ThresholdValues |
|
ThresholdValues(double lowThreshold,
double highThreshold)
Create a new ThresholdValues |
|
| Method Summary | |
|---|---|
Object |
clone()
|
double |
getCurrentHighThreshold()
Getter for property currentHighThreshold. |
double |
getCurrentLowThreshold()
Getter for property currentLowThreshold. |
double |
getHighThreshold()
Getter for property highThreshold. |
double |
getLowThreshold()
Getter for property lowThreshold. |
long |
getThresholdBreachedCount()
Gets the count of breached thresholds |
long |
getThresholdClearedCount()
Gets the count of cleared thresholds |
void |
incThresholdBreachedCount()
Increments the count of breached thresholds |
void |
incThresholdClearedCount()
Increments the count of cleared thresholds |
void |
resetHighThreshold()
Reset the currentHighThreshold to tbe original highThreshold value |
void |
resetLowThreshold()
Reset the currentLowThreshold to tbe original lowThreshold value |
void |
setCurrentHighThreshold(double threshold)
Setter for property currentHighThreshold. |
void |
setCurrentLowThreshold(double threshold)
Setter for property currentHighThreshold. |
void |
setHighThreshold(double highThreshold)
Setter for property highThreshold. |
void |
setLowThreshold(double lowThreshold)
Setter for property lowThreshold. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThresholdValues()
public ThresholdValues(double... range)
range - Array of double values indicating the range of acceptable
lower and upper thresholds
public ThresholdValues(double lowThreshold,
double highThreshold)
lowThreshold - The low thresholdhighThreshold - The high threshold value| Method Detail |
|---|
public void setHighThreshold(double highThreshold)
highThreshold - Value of property highThreshold. This method will
also set the currentHighThreshold property equal to the highThresholdpublic double getHighThreshold()
public void setLowThreshold(double lowThreshold)
lowThreshold - Value of property lowThreshold. This method will
also set the currentLowThreshold property equal to the lowThresholdpublic double getLowThreshold()
public double getCurrentHighThreshold()
public void setCurrentHighThreshold(double threshold)
threshold - New value of property currentHighThreshold.public double getCurrentLowThreshold()
public void setCurrentLowThreshold(double threshold)
threshold - New value of property currentHighThreshold.public void resetLowThreshold()
public void resetHighThreshold()
public void incThresholdBreachedCount()
public long getThresholdBreachedCount()
public void incThresholdClearedCount()
public long getThresholdClearedCount()
public String toString()
toString in class Object
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||