public interface WeatherDependingParameter extends Parameter
WeatherSurveying instance has been registered to it. To
follow the same approach as in the TargetDependingParameter
interface, two possiblities of data retrieval are possible:
Either providing the weather surveyor directly on the #getFor
method, or registering it with registerWeather(stella.sensor.WeatherSurveying) and
subsequentially calling Parameter.get(). Parameter.set(java.lang.Object) method seems unlikely. Parameter values change with
the sensors of the weather station.CONFIG, KEY_CLASS| Modifier and Type | Method and Description |
|---|---|
Object |
getForWeather(WeatherSurveying weather)
Returns the parameter value using some sensors of the weather surveying
handed over.
|
void |
registerWeather(WeatherSurveying sensors)
Registers a weather surveyor permanently to this parameter.
|
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, stringPropertiesinitObject getForWeather(WeatherSurveying weather)
Parameter.get() link to identical sensors.void registerWeather(WeatherSurveying sensors)
Parameter.get() method will refer to
this weather station.