All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.weatherstation.TemperatureMonitor
java.lang.Object
|
+----com.ibm.weatherstation.Monitor
|
+----com.ibm.weatherstation.TemperatureMonitor
- public class TemperatureMonitor
- extends Monitor
This class performs temperature monitoring.
-
CELSIUS
- Use Celsius scale
-
FAHRENHEIT
- Use Fahrenheit scale
-
TemperatureMonitor()
- Constructs a new TemperatureMonitor object.
-
addThresholdListener(ThresholdListener)
- Add a threshold listener to the listener list.
-
getAboutThisBean()
- Gets the aboutThisBean property (java.lang.String) value.
-
getAutoStart()
- Gets the autoStart property (boolean) value.
-
getFirePropertyChangeEveryTime()
- Gets the firePropertyChangeEveryTime property (boolean) value.
-
getMeasureUnit()
- Gets the measureUnit property (int) value.
-
getNotifyWhenThresholdExceeded()
- Gets the notifyWhenThresholdExceeded property (boolean) value.
-
getResult()
- Gets the result property (float) value.
-
getResultString()
- Gets the resultString property (java.lang.String) value.
-
getTemperatureInterval()
- Gets the temperatureInterval property (float) value.
-
getThresholdMaximum()
- Gets the thresholdMaximum property (float) value.
-
getThresholdMinimum()
- Gets the thresholdMinimum property (float) value.
-
performAction()
- Perform reading the current temperature.
-
removeThresholdListener(ThresholdListener)
- Remove a threshold listener from the listener list.
-
setAboutThisBean(String)
- Sets the aboutThisBean property (java.lang.String) value.
-
setAutoStart(boolean)
- Sets the autoStart property (boolean) value.
-
setFirePropertyChangeEveryTime(boolean)
- Sets the firePropertyChangeEveryTime property (boolean) value.
-
setMeasureUnit(int)
- Sets the measureUnit property (int) value.
-
setNotifyWhenThresholdExceeded(boolean)
- Sets the notifyWhenThresholdExceeded property (boolean) value.
-
setTemperatureInterval(float)
- Sets the temperatureInterval property (float) value.
-
setThresholdMaximum(float)
- Sets the thresholdMaximum property (float) value.
-
setThresholdMinimum(float)
- Sets the thresholdMinimum property (float) value.
-
setWeatherStation(WeatherStationInterface)
- Sets the weatherStation property (com.ibm.weatherstation.WeatherStationInterface) value.
-
triggerAction()
- Make the bean to take a probe immediatelly.
CELSIUS
public static final int CELSIUS
- Use Celsius scale
FAHRENHEIT
public static final int FAHRENHEIT
- Use Fahrenheit scale
TemperatureMonitor
public TemperatureMonitor()
- Constructs a new TemperatureMonitor object.
addThresholdListener
public void addThresholdListener(ThresholdListener listener)
- Add a threshold listener to the listener list.
- Parameters:
- listener - com.ibm.weatherstation.event.ThresholdListener
- Throws: IllegalArgumentException
- if listener is null.
getAboutThisBean
public String getAboutThisBean()
- Gets the aboutThisBean property (java.lang.String) value.
- Returns:
- The aboutThisBean property value.
- See Also:
- setAboutThisBean
getAutoStart
public boolean getAutoStart()
- Gets the autoStart property (boolean) value.
- Returns:
- The autoStart property value.
- See Also:
- setAutoStart
getFirePropertyChangeEveryTime
public boolean getFirePropertyChangeEveryTime()
- Gets the firePropertyChangeEveryTime property (boolean) value.
- Returns:
- The firePropertyChangeEveryTime property value.
- See Also:
- setFirePropertyChangeEveryTime
getMeasureUnit
public int getMeasureUnit()
- Gets the measureUnit property (int) value.
- Returns:
- The measureUnit property value.
- See Also:
- setMeasureUnit
getNotifyWhenThresholdExceeded
public boolean getNotifyWhenThresholdExceeded()
- Gets the notifyWhenThresholdExceeded property (boolean) value.
- Returns:
- The notifyWhenThresholdExceeded property value.
- See Also:
- setNotifyWhenThresholdExceeded
getResult
public float getResult()
- Gets the result property (float) value.
- Returns:
- The result property value.
getResultString
public String getResultString()
- Gets the resultString property (java.lang.String) value.
- Returns:
- The resultString property value.
getTemperatureInterval
public float getTemperatureInterval()
- Gets the temperatureInterval property (float) value.
- Returns:
- The temperatureInterval property value.
- See Also:
- setTemperatureInterval
getThresholdMaximum
public float getThresholdMaximum()
- Gets the thresholdMaximum property (float) value.
- Returns:
- The thresholdMaximum property value.
- See Also:
- setThresholdMaximum
getThresholdMinimum
public float getThresholdMinimum()
- Gets the thresholdMinimum property (float) value.
- Returns:
- The thresholdMinimum property value.
- See Also:
- setThresholdMinimum
performAction
protected void performAction() throws MonitoringException
- Perform reading the current temperature.
- Throws: MonitoringException
- if an error occurs.
- Overrides:
- performAction in class Monitor
removeThresholdListener
public void removeThresholdListener(ThresholdListener listener)
- Remove a threshold listener from the listener list.
- Parameters:
- listener - com.ibm.weatherstation.event.ThresholdListener
- Throws: IllegalArgumentException
- if listener is null.
setAboutThisBean
public void setAboutThisBean(String aboutThisBean)
- Sets the aboutThisBean property (java.lang.String) value.
- Parameters:
- aboutThisBean - The new value for the property.
- See Also:
- getAboutThisBean
setAutoStart
public void setAutoStart(boolean autoStart)
- Sets the autoStart property (boolean) value.
- Parameters:
- autoStart - The new value for the property.
- See Also:
- getAutoStart
setFirePropertyChangeEveryTime
public void setFirePropertyChangeEveryTime(boolean firePropertyChangeEveryTime)
- Sets the firePropertyChangeEveryTime property (boolean) value.
- Parameters:
- firePropertyChangeEveryTime - The new value for the property.
- See Also:
- getFirePropertyChangeEveryTime
setMeasureUnit
public void setMeasureUnit(int measureUnit)
- Sets the measureUnit property (int) value.
- Parameters:
- measureUnit - The new value for the property.
- Throws: IllegalArgumentException
- if measureUnit is not valid value.
- See Also:
- getMeasureUnit
setNotifyWhenThresholdExceeded
public void setNotifyWhenThresholdExceeded(boolean notifyWhenThresholdExceeded)
- Sets the notifyWhenThresholdExceeded property (boolean) value.
- Parameters:
- notifyWhenThresholdExceeded - The new value for the property.
- See Also:
- getNotifyWhenThresholdExceeded
setTemperatureInterval
public void setTemperatureInterval(float temperatureInterval)
- Sets the temperatureInterval property (float) value.
- Parameters:
- temperatureInterval - The new value for the property.
- Throws: IllegalArgumentException
- if temperatureInterval is negative.
- See Also:
- getTemperatureInterval
setThresholdMaximum
public void setThresholdMaximum(float thresholdMaximum)
- Sets the thresholdMaximum property (float) value.
- Parameters:
- thresholdMaximum - The new value for the property.
- Throws: IllegalArgumentException
- if thresholdMaximum is less than thresholdMinimum property value.
- See Also:
- getThresholdMaximum
setThresholdMinimum
public void setThresholdMinimum(float thresholdMinimum)
- Sets the thresholdMinimum property (float) value.
- Parameters:
- thresholdMinimum - The new value for the property.
- Throws: IllegalArgumentException
- if thresholdMinimum is greater than thresholdMaximum property value.
- See Also:
- getThresholdMinimum
setWeatherStation
public void setWeatherStation(WeatherStationInterface weatherStation)
- Sets the weatherStation property (com.ibm.weatherstation.WeatherStationInterface) value.
- Parameters:
- weatherStation - The new value for the property.
- Throws: IllegalArgumentException
- if weatherStation is null.
triggerAction
public void triggerAction()
- Make the bean to take a probe immediatelly.
All Packages Class Hierarchy This Package Previous Next Index