stella.sensor
Class WeatherRemainsBad
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractRemoteParameter
stella.parameter.AbstractRemoteValue
stella.sensor.WeatherRemainsBad
- All Implemented Interfaces:
- Cloneable, Remote, Parameter, RemoteParameter, Value, WeatherDependingParameter, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiCaster
public class WeatherRemainsBad
- extends AbstractRemoteValue
- implements WeatherDependingParameter
The weather trigger exports the weather from a local
WeatherSurveying
instance to remote listeners.
| Methods inherited from class stella.parameter.AbstractParameter |
createParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, setName, toString |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
station
private WeatherPredicting station
- Normal action will register a weather station after construct.
WeatherRemainsBad
public WeatherRemainsBad(Map<String,String> prop)
throws RemoteException
- Constructs a enw weather trigger. It can be queried only after a weather
station has been registered.
- Throws:
RemoteException
registerWeather
public void registerWeather(WeatherSurveying operator)
- Sets the roof operator where queries are diverted to.
- Specified by:
registerWeather in interface WeatherDependingParameter
getForWeather
public Object getForWeather(WeatherSurveying weather)
- Returns true if the weather is clear according to the weather station
handed over.
- Specified by:
getForWeather in interface WeatherDependingParameter
getValue
public Number getValue()
- Diverts to
#getFor with the currently registered weather
station.
- Specified by:
getValue in interface Value
getFrom
private Number getFrom(WeatherPredicting wp)
setValue
public Number setValue(Number fo)
- throws UnsupportedOperationException();
- Specified by:
setValue in interface Value