All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.weatherstation.WindSpeedMonitor
java.lang.Object
|
+----com.ibm.weatherstation.Monitor
|
+----com.ibm.weatherstation.WindSpeedMonitor
- public class WindSpeedMonitor
- extends Monitor
This class performs wind speed monitoring.
-
KMPH
- Use kilometer per hour scale.
-
MPH
- Use miles per hour scale.
-
MPS
- Use meter per hour scale.
-
WindSpeedMonitor()
- Construct a new WindSpeed object.
-
addThresholdListener(ThresholdListener)
- Add a threshold listener to the listener list.
-
getAboutThisBean()
- Gets the aboutThisBean property (java.lang.String) value.
-
getAutoStart()
- Get the autoStart property (boolean) value.
-
getFirePropertyChangeEveryTime()
- Get the firePropertyChangeEveryTime property (boolean) value.
-
getMeasureUnit()
- Get the measureUnit property (int) value.
-
getNotifyWhenThresholdExceeded()
- Get the notifyWhenThresholdExceeded property (boolean) value.
-
getResult()
- Get the result property (float) value.
-
getResultString()
- Get the resultString property (java.lang.String) value.
-
getSpeedInterval()
- Gets the speedInterval property (float) value.
-
getThresholdMaximum()
- Get the thresholdMaximum property (float) value.
-
getThresholdMinimum()
- Get the thresholdMinimum property (float) value.
-
performAction()
- Perform reading the current wind speed.
-
removeThresholdListener(ThresholdListener)
- Remove a threshold listener from the listener list.
-
setAboutThisBean(String)
- Sets the aboutThisBean property (java.lang.String) value.
-
setAutoStart(boolean)
- Set the autoStart property (boolean) value.
-
setFirePropertyChangeEveryTime(boolean)
- Set the firePropertyChangeEveryTime property (boolean) value.
-
setMeasureUnit(int)
- Set the measureUnit property (int) value.
-
setNotifyWhenThresholdExceeded(boolean)
- Set the notifyWhenThresholdExceeded property (boolean) value.
-
setSpeedInterval(float)
- Sets the speedInterval property (float) value.
-
setThresholdMaximum(float)
- Set the thresholdMaximum property (float) value.
-
setThresholdMinimum(float)
- Sets the thresholdMinimum property (float) value.
-
setWeatherStation(WeatherStationInterface)
- Sets the weatherStation property (com.ibm.weatherstation.WeatherStationInterface) value.
-
tiggerAction()
- Make the bean to take a probe immediatelly.
MPH
public static final int MPH
- Use miles per hour scale.
KMPH
public static final int KMPH
- Use kilometer per hour scale.
MPS
public static final int MPS
- Use meter per hour scale.
WindSpeedMonitor
public WindSpeedMonitor()
- Construct a new WindSpeed 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()
- Get the autoStart property (boolean) value.
- Returns:
- The autoStart property value.
- See Also:
- setAutoStart
getFirePropertyChangeEveryTime
public boolean getFirePropertyChangeEveryTime()
- Get the firePropertyChangeEveryTime property (boolean) value.
- Returns:
- The firePropertyChangeEveryTime property value.
- See Also:
- setFirePropertyChangeEveryTime
getMeasureUnit
public int getMeasureUnit()
- Get the measureUnit property (int) value.
- Returns:
- The measureUnit property value.
- See Also:
- setMeasureUnit
getNotifyWhenThresholdExceeded
public boolean getNotifyWhenThresholdExceeded()
- Get the notifyWhenThresholdExceeded property (boolean) value.
- Returns:
- The notifyWhenThresholdExceeded property value.
- See Also:
- setNotifyWhenThresholdExceeded
getResult
public float getResult()
- Get the result property (float) value.
- Returns:
- The result property value.
getResultString
public String getResultString()
- Get the resultString property (java.lang.String) value.
- Returns:
- The resultString property value.
getSpeedInterval
public float getSpeedInterval()
- Gets the speedInterval property (float) value.
- Returns:
- The speedInterval property value.
- See Also:
- setSpeedInterval
getThresholdMaximum
public float getThresholdMaximum()
- Get the thresholdMaximum property (float) value.
- Returns:
- The thresholdMaximum property value.
- See Also:
- setThresholdMaximum
getThresholdMinimum
public float getThresholdMinimum()
- Get the thresholdMinimum property (float) value.
- Returns:
- The thresholdMinimum property value.
- See Also:
- setThresholdMinimum
performAction
protected void performAction() throws MonitoringException
- Perform reading the current wind speed.
- 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)
- Set the autoStart property (boolean) value.
- Parameters:
- autoStart - The new value for the property.
- See Also:
- getAutoStart
setFirePropertyChangeEveryTime
public void setFirePropertyChangeEveryTime(boolean firePropertyChangeEveryTime)
- Set the firePropertyChangeEveryTime property (boolean) value.
- Parameters:
- firePropertyChangeEveryTime - The new value for the property.
- See Also:
- getFirePropertyChangeEveryTime
setMeasureUnit
public void setMeasureUnit(int measureUnit)
- Set 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)
- Set the notifyWhenThresholdExceeded property (boolean) value.
- Parameters:
- notifyWhenThresholdExceeded - The new value for the property.
- See Also:
- getNotifyWhenThresholdExceeded
setSpeedInterval
public void setSpeedInterval(float speedInterval)
- Sets the speedInterval property (float) value.
- Parameters:
- speedInterval - The new value for the property.
- Throws: IllegalArgumentException
- if speedInterval is a negative number.
- See Also:
- getSpeedInterval
setThresholdMaximum
public void setThresholdMaximum(float thresholdMaximum)
- Set 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 or thresholdMinimum is negative.
- 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.
tiggerAction
public void tiggerAction()
- Make the bean to take a probe immediatelly.
All Packages Class Hierarchy This Package Previous Next Index