public interface RmiWeatherReporting extends RmiPropertyBearing, RmiWeatherCaster
WeatherEvents on condition change. A
waether watcher must therefore act as a RmiWeatherCaster.
Additionally to normal weather casting capabilities, this class should
send the current weather on newly added RmiWeatherListeners.
A weather watcher will always consists of weather sensors, accordingly
a method is defined to retrieve a single data sensor by name,
getDataSensor(java.lang.String). Retriving the entire Collection of sensor names
is possible with getAllSensorNames().NAMING_EXTENSION| Modifier and Type | Method and Description |
|---|---|
boolean |
addSensor(String prop)
Adds a sensor with the given properties file.
|
Collection |
getAllSensorNames()
Returns a reference collection to all weather sensor in this
weather watcher as a collection of rmi data casters.
|
RmiDataCaster |
getDataSensor(String name)
Returns a reference to the (running) instance of the weather sensor
with the given name.
|
String |
getStatus()
Returns a status description of the weather station.
|
boolean |
removeSensor(String name)
Removes the sensor with the given name.
|
containsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemotePropertyaddRmiWeatherListener, removeRmiWeatherListenerbindToRegistry, isValid, unbindFromRegistryRmiDataCaster getDataSensor(String name) throws RemoteException
RemoteExceptionCollection getAllSensorNames() throws RemoteException
RemoteExceptionboolean removeSensor(String name) throws RemoteException
RemoteExceptionboolean addSensor(String prop) throws RemoteException
stella.io.DriverDepending.
The weather station
registers itself as a weather listener to the sensor.RemoteExceptionString getStatus() throws RemoteException
RemoteException