|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WeatherJudging
The interface defining the methods necessarry to allow a raw filter reading to be converted into a single bad/false response. Normally implementations will simple check the argument value against some threshold. Note that this interface additionally allows the addition of an (unspecified) Object, which may be usefule for sensors that cannot destinguish between good and bad weather conditions simple because of their own reading, but only by adding information from other sources. Actual implementations of this interface and their actual callers must make sure that this argument object is of the appropriate type on both ends, e.g. null, otherwise the sensor will crash!
Sensors that implement only parts of this methods should ensure that
the non-implemented methods return always false. A default
implementation of this interface is the WeatherSensor, though it
does not provide any method bodies for the interfaces.
| Method Summary | |
|---|---|
boolean |
currentlyClear()
Returns true if this weather judging instance reports good weather conditions. |
boolean |
currentlyRetarding()
Returns true, if this sensor is currently in a retarding phase. |
long |
getMinClearUpTime()
Estimates the minimum time until this sensor will report clear again. |
| Method Detail |
|---|
boolean currentlyClear()
boolean currentlyRetarding()
currentlyClear(), but also true on retarding. Definite good
weather is than achieved, if the sensor is good and not retarding.
long getMinClearUpTime()
SolarHeightSensor might return an
accurate measurement.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||