|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
util.rmi.RmiEvent
stella.sensor.WeatherEvent
public class WeatherEvent
This event is generated, whenever the weather situation changes. As a rule of thumb, always use raw sensor datas to generate this type of event. Additionally to normal events, this object carry information about:
DataEvent or its subclasses instead.
| Field Summary | |
|---|---|
static int |
ANYRETARD
The mask for any retardation. |
static int |
ANYTHRESHOLD
The mask for any threshold exceed. |
static int |
DERIVATIVERETARD
The flag indicating that a sensor is derivative retarding. |
static int |
DERIVATIVETHRESHOLD
The flag indicating that a sensor's reading changed too fast. |
private boolean |
good
True if weather is good. |
static int |
GOOD
The reason-field for good weather. |
static int |
PREDICTIVERETARD
The flag indicating that a sensor is prediction retarding. |
static int |
PREDICTIVETHRESHOLD
The flag indicating that a sensor's reading is predicted bad. |
static int |
RAWRETARD
The flag indicating that a sensor is raw retarding. |
static int |
RAWTHRESHOLD
The flag indicating that a sensor entered or left its threshold value for the raw reading. |
private int |
reason
The logical or of the reasons why this event occured. |
static int |
SMOOTHRETARD
The flag indicating that a sensor is smooth retarding. |
static int |
SMOOTHTHRESHOLD
The flag indicating that a sensor entered or left its threshold value for the smoothened reading. |
static int |
UNKNOWN
The flag indicating that the source of the bad weather is unknown. |
| Fields inherited from class util.rmi.RmiEvent |
|---|
localHost, sourceName |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
WeatherEvent(Object src,
boolean isgood,
int isreason)
A fully qualified weather event. |
|
| Method Summary | |
|---|---|
int |
getReason()
Returns the reason of occurence for this weather event. |
boolean |
isGood()
Returns true if the weather situation is now clear. |
String |
toString()
Returns a string description of the weather event. |
| Methods inherited from class util.rmi.RmiEvent |
|---|
getHost, getSourceName, setSourceName |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int RAWTHRESHOLD
public static final int SMOOTHTHRESHOLD
public static final int DERIVATIVETHRESHOLD
public static final int PREDICTIVETHRESHOLD
public static final int RAWRETARD
public static final int SMOOTHRETARD
public static final int DERIVATIVERETARD
public static final int PREDICTIVERETARD
public static final int UNKNOWN
public static final int GOOD
public static final int ANYTHRESHOLD
public static final int ANYRETARD
private boolean good
private int reason
| Constructor Detail |
|---|
public WeatherEvent(Object src,
boolean isgood,
int isreason)
| Method Detail |
|---|
public boolean isGood()
public int getReason()
public String toString()
toString in class RmiEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||