|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISystemAlertsListener
Field Summary | |
---|---|
static java.lang.String |
UD_SYSTEM_ALERT_ELEC_MAX_UTLIZATION
|
static java.lang.String |
UD_SYSTEM_ALERT_ELEC_PEAK_DEMAND
|
static java.lang.String |
UD_SYSTEM_ALERT_EVENT
This interface consists of all the callbacks which should be implemented by any object which wishes to receive system alerts. |
static java.lang.String |
UD_SYSTEM_ALERT_GAS_MAX_UTLIZATION
|
static java.lang.String |
UD_SYSTEM_ALERT_WATER_MAX_UTILIZATION
|
Method Summary | |
---|---|
void |
onElectricityMaxUtilizedAlert(int currentUtil)
Notifies the listener that we have used more electricity than expected |
void |
onElectricityPeakDemandAlert(int basePrice,
int currentPrice)
Notifies the listener that we are in the peak demand mode |
void |
onGasMaxUtilizedAlert(int currentUtil)
Notifies the listener that we have used more gas than expected |
void |
onWaterMaxUtilizedAlert(int currentUtil)
Notifies the listener that we have used more water than expected |
Field Detail |
---|
static final java.lang.String UD_SYSTEM_ALERT_EVENT
static final java.lang.String UD_SYSTEM_ALERT_ELEC_PEAK_DEMAND
static final java.lang.String UD_SYSTEM_ALERT_ELEC_MAX_UTLIZATION
static final java.lang.String UD_SYSTEM_ALERT_GAS_MAX_UTLIZATION
static final java.lang.String UD_SYSTEM_ALERT_WATER_MAX_UTILIZATION
Method Detail |
---|
void onElectricityPeakDemandAlert(int basePrice, int currentPrice)
basePrice
- - the base price in centscurrentPrice
- - the current price in centsvoid onElectricityMaxUtilizedAlert(int currentUtil)
currentUtil
- - the current utilization in KW/Hvoid onGasMaxUtilizedAlert(int currentUtil)
currentUtil
- - the current utilizationvoid onWaterMaxUtilizedAlert(int currentUtil)
currentUtil
- - the current utilization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |