All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.weatherstation.WindDirectionMonitor

java.lang.Object
   |
   +----com.ibm.weatherstation.Monitor
           |
           +----com.ibm.weatherstation.WindDirectionMonitor

public class WindDirectionMonitor
extends Monitor
This class monitors the current wind direction.


Constructor Index

 o WindDirectionMonitor()
Constuct a new WindDirectionMonitor object.

Method Index

 o addIniFileListener(IniFileListener)
Add a iniFile 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()
Gets the firePropertyChangeEveryTime property (boolean) value.
 o getResult()
Get the result property (int) value.
 o getResultString()
Get the resultString property (java.lang.String) value.
 o performAction()
Perform reading the current wind direction.
 o removeIniFileListener(IniFileListener)
Remove a iniFile 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)
Sets the firePropertyChangeEveryTime property (boolean) value.
 o setWeatherStation(WeatherStationInterface)
Set the weatherStation property (com.ibm.weatherstation.WeatherStationInterface) value.
 o triggerAction()
Make the bean to take a probe immediatelly.

Constructors

 o WindDirectionMonitor
 public WindDirectionMonitor()
Constuct a new WindDirectionMonitor object.

Methods

 o addIniFileListener
 public void addIniFileListener(IniFileListener newListener)
Add a iniFile listener to the listener list.

Parameters:
newListener - com.ibm.weatherstation.event.IniFile
Throws: IllegalArgumentException
if newListener 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()
Gets the firePropertyChangeEveryTime property (boolean) value.

Returns:
The firePropertyChangeEveryTime property value.
See Also:
setFirePropertyChangeEveryTime
 o getResult
 public int getResult()
Get the result property (int) 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 performAction
 protected void performAction() throws MonitoringException
Perform reading the current wind direction.

Throws: MonitoringException
if an error occurs.
Overrides:
performAction in class Monitor
 o removeIniFileListener
 public void removeIniFileListener(IniFileListener newListener)
Remove a iniFile listener from the listener list.

Parameters:
newListener - com.ibm.weatherstation.event.IniFile
Throws: IllegalArgumentException
if newListener 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)
Sets the firePropertyChangeEveryTime property (boolean) value.

Parameters:
firePropertyChangeEveryTime - The new value for the property.
See Also:
getFirePropertyChangeEveryTime
 o setWeatherStation
 public void setWeatherStation(WeatherStationInterface weatherStation)
Set the weatherStation property (com.ibm.weatherstation.WeatherStationInterface) value.

Parameters:
weatherStation - The new value for the property.
Throws: IllegalArgumentException
if weatherStation is null.
 o triggerAction
 public void triggerAction()
Make the bean to take a probe immediatelly.


All Packages  Class Hierarchy  This Package  Previous  Next  Index