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.
-
WindDirectionMonitor()
- Constuct a new WindDirectionMonitor object.
-
addIniFileListener(IniFileListener)
- Add a iniFile listener to the listener list.
-
getAboutThisBean()
- Gets the aboutThisBean property (java.lang.String) value.
-
getAutoStart()
- Get the autoStart property (boolean) value.
-
getFirePropertyChangeEveryTime()
- Gets the firePropertyChangeEveryTime property (boolean) value.
-
getResult()
- Get the result property (int) value.
-
getResultString()
- Get the resultString property (java.lang.String) value.
-
performAction()
- Perform reading the current wind direction.
-
removeIniFileListener(IniFileListener)
- Remove a iniFile 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)
- Sets the firePropertyChangeEveryTime property (boolean) value.
-
setWeatherStation(WeatherStationInterface)
- Set the weatherStation property (com.ibm.weatherstation.WeatherStationInterface) value.
-
triggerAction()
- Make the bean to take a probe immediatelly.
WindDirectionMonitor
public WindDirectionMonitor()
- Constuct a new WindDirectionMonitor object.
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.
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()
- Gets the firePropertyChangeEveryTime property (boolean) value.
- Returns:
- The firePropertyChangeEveryTime property value.
- See Also:
- setFirePropertyChangeEveryTime
getResult
public int getResult()
- Get the result property (int) value.
- Returns:
- The result property value.
getResultString
public String getResultString()
- Get the resultString property (java.lang.String) value.
- Returns:
- The resultString property value.
performAction
protected void performAction() throws MonitoringException
- Perform reading the current wind direction.
- Throws: MonitoringException
- if an error occurs.
- Overrides:
- performAction in class Monitor
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.
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)
- Sets the firePropertyChangeEveryTime property (boolean) value.
- Parameters:
- firePropertyChangeEveryTime - The new value for the property.
- See Also:
- getFirePropertyChangeEveryTime
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.
triggerAction
public void triggerAction()
- Make the bean to take a probe immediatelly.
All Packages Class Hierarchy This Package Previous Next Index