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.


Variable Index

 o KMPH
Use kilometer per hour scale.
 o MPH
Use miles per hour scale.
 o MPS
Use meter per hour scale.

Constructor Index

 o WindSpeedMonitor()
Construct a new WindSpeed object.

Method Index

 o addThresholdListener(ThresholdListener)
Add a threshold listener to the listener list.
 o getAboutThisBean()
Gets the aboutThisBean property (java.lang.String) value.
 o getAutoStart()
Get the autoStart property (boolean) value.
 o getFirePropertyChangeEveryTime()
Get the firePropertyChangeEveryTime property (boolean) value.
 o getMeasureUnit()
Get the measureUnit property (int) value.
 o getNotifyWhenThresholdExceeded()
Get the notifyWhenThresholdExceeded property (boolean) value.
 o getResult()
Get the result property (float) value.
 o getResultString()
Get the resultString property (java.lang.String) value.
 o getSpeedInterval()
Gets the speedInterval property (float) value.
 o getThresholdMaximum()
Get the thresholdMaximum property (float) value.
 o getThresholdMinimum()
Get the thresholdMinimum property (float) value.
 o performAction()
Perform reading the current wind speed.
 o removeThresholdListener(ThresholdListener)
Remove a threshold listener from the listener list.
 o setAboutThisBean(String)
Sets the aboutThisBean property (java.lang.String) value.
 o setAutoStart(boolean)
Set the autoStart property (boolean) value.
 o setFirePropertyChangeEveryTime(boolean)
Set the firePropertyChangeEveryTime property (boolean) value.
 o setMeasureUnit(int)
Set the measureUnit property (int) value.
 o setNotifyWhenThresholdExceeded(boolean)
Set the notifyWhenThresholdExceeded property (boolean) value.
 o setSpeedInterval(float)
Sets the speedInterval property (float) value.
 o setThresholdMaximum(float)
Set the thresholdMaximum property (float) value.
 o setThresholdMinimum(float)
Sets the thresholdMinimum property (float) value.
 o setWeatherStation(WeatherStationInterface)
Sets the weatherStation property (com.ibm.weatherstation.WeatherStationInterface) value.
 o tiggerAction()
Make the bean to take a probe immediatelly.

Variables

 o MPH
 public static final int MPH
Use miles per hour scale.

 o KMPH
 public static final int KMPH
Use kilometer per hour scale.

 o MPS
 public static final int MPS
Use meter per hour scale.

Constructors

 o WindSpeedMonitor
 public WindSpeedMonitor()
Construct a new WindSpeed object.

Methods

 o 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.
 o getAboutThisBean
 public String getAboutThisBean()
Gets the aboutThisBean property (java.lang.String) value.

Returns:
The aboutThisBean property value.
See Also:
setAboutThisBean
 o getAutoStart
 public boolean getAutoStart()
Get the autoStart property (boolean) value.

Returns:
The autoStart property value.
See Also:
setAutoStart
 o getFirePropertyChangeEveryTime
 public boolean getFirePropertyChangeEveryTime()
Get the firePropertyChangeEveryTime property (boolean) value.

Returns:
The firePropertyChangeEveryTime property value.
See Also:
setFirePropertyChangeEveryTime
 o getMeasureUnit
 public int getMeasureUnit()
Get the measureUnit property (int) value.

Returns:
The measureUnit property value.
See Also:
setMeasureUnit
 o getNotifyWhenThresholdExceeded
 public boolean getNotifyWhenThresholdExceeded()
Get the notifyWhenThresholdExceeded property (boolean) value.

Returns:
The notifyWhenThresholdExceeded property value.
See Also:
setNotifyWhenThresholdExceeded
 o getResult
 public float getResult()
Get the result property (float) value.

Returns:
The result property value.
 o getResultString
 public String getResultString()
Get the resultString property (java.lang.String) value.

Returns:
The resultString property value.
 o getSpeedInterval
 public float getSpeedInterval()
Gets the speedInterval property (float) value.

Returns:
The speedInterval property value.
See Also:
setSpeedInterval
 o getThresholdMaximum
 public float getThresholdMaximum()
Get the thresholdMaximum property (float) value.

Returns:
The thresholdMaximum property value.
See Also:
setThresholdMaximum
 o getThresholdMinimum
 public float getThresholdMinimum()
Get the thresholdMinimum property (float) value.

Returns:
The thresholdMinimum property value.
See Also:
setThresholdMinimum
 o performAction
 protected void performAction() throws MonitoringException
Perform reading the current wind speed.

Throws: MonitoringException
if an error occurs.
Overrides:
performAction in class Monitor
 o 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.
 o 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
 o setAutoStart
 public void setAutoStart(boolean autoStart)
Set the autoStart property (boolean) value.

Parameters:
autoStart - The new value for the property.
See Also:
getAutoStart
 o setFirePropertyChangeEveryTime
 public void setFirePropertyChangeEveryTime(boolean firePropertyChangeEveryTime)
Set the firePropertyChangeEveryTime property (boolean) value.

Parameters:
firePropertyChangeEveryTime - The new value for the property.
See Also:
getFirePropertyChangeEveryTime
 o 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
 o setNotifyWhenThresholdExceeded
 public void setNotifyWhenThresholdExceeded(boolean notifyWhenThresholdExceeded)
Set the notifyWhenThresholdExceeded property (boolean) value.

Parameters:
notifyWhenThresholdExceeded - The new value for the property.
See Also:
getNotifyWhenThresholdExceeded
 o 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
 o 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
 o 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
 o 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.
 o tiggerAction
 public void tiggerAction()
Make the bean to take a probe immediatelly.


All Packages  Class Hierarchy  This Package  Previous  Next  Index