public interface ISystemAlertsListener
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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
|
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
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