com.universaldevices.device.model
Interface ISystemAlertsListener


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

UD_SYSTEM_ALERT_EVENT

static final 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.

See Also:
Constant Field Values

UD_SYSTEM_ALERT_ELEC_PEAK_DEMAND

static final java.lang.String UD_SYSTEM_ALERT_ELEC_PEAK_DEMAND
See Also:
Constant Field Values

UD_SYSTEM_ALERT_ELEC_MAX_UTLIZATION

static final java.lang.String UD_SYSTEM_ALERT_ELEC_MAX_UTLIZATION
See Also:
Constant Field Values

UD_SYSTEM_ALERT_GAS_MAX_UTLIZATION

static final java.lang.String UD_SYSTEM_ALERT_GAS_MAX_UTLIZATION
See Also:
Constant Field Values

UD_SYSTEM_ALERT_WATER_MAX_UTILIZATION

static final java.lang.String UD_SYSTEM_ALERT_WATER_MAX_UTILIZATION
See Also:
Constant Field Values
Method Detail

onElectricityPeakDemandAlert

void onElectricityPeakDemandAlert(int basePrice,
                                  int currentPrice)
Notifies the listener that we are in the peak demand mode

Parameters:
basePrice - - the base price in cents
currentPrice - - the current price in cents

onElectricityMaxUtilizedAlert

void onElectricityMaxUtilizedAlert(int currentUtil)
Notifies the listener that we have used more electricity than expected

Parameters:
currentUtil - - the current utilization in KW/H

onGasMaxUtilizedAlert

void onGasMaxUtilizedAlert(int currentUtil)
Notifies the listener that we have used more gas than expected

Parameters:
currentUtil - - the current utilization

onWaterMaxUtilizedAlert

void onWaterMaxUtilizedAlert(int currentUtil)
Notifies the listener that we have used more water than expected

Parameters:
currentUtil - - the current utilization