public class WeatherEvent extends RmiEvent implements AlarmingEvent
DataEvent or its subclasses instead.| Modifier and Type | Field and Description |
|---|---|
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.
|
localHost, sourceNamesource| Constructor and Description |
|---|
WeatherEvent(Object src,
boolean isgood,
int isreason)
A fully qualified weather event.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getHost, getSourceName, setSourceNamegetSourcepublic 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
public WeatherEvent(Object src, boolean isgood, int isreason)
public boolean isGood()
public int getReason()