|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.jpeterson.x10.ControlEvent | +--com.jpeterson.x10.module.event.CM11AStatusEvent
Field Summary | |
static int |
STATUS
The CM11A received a status event. |
Fields inherited from class com.jpeterson.x10.ControlEvent |
id |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
CM11AStatusEvent(CM11A source,
int batteryUsage,
int seconds,
int minutes,
int hours,
int julianDay,
int currentDay,
char monitoredHouseCode,
java.util.BitSet lastAddressedDevice,
java.util.BitSet onOffStatus,
java.util.BitSet dimStatus)
|
Method Summary | |
int |
getBatteryUsage()
The CM11A's idea of what the current battery usage is. |
int |
getCurrentDay()
Retrieve the CM11A's idea of what the current day is. |
java.util.BitSet |
getDimStatus()
Indication of the dim status as the CM11A sees it for the monitored house code. |
int |
getHours()
The CM11A's idea of what the current hour is. |
int |
getJulianDay()
Retrieve the CM11A's idea of the current day of the year. |
java.util.BitSet |
getLastAddressedDevice()
Indication of the last addressed device as the CM11A sees it for the monitored house code. |
int |
getMinutes()
The CM11A's idea of what the current minute is. |
char |
getMonitoredHouseCode()
Get the house code that the CM11A is configured to monitor. |
java.util.BitSet |
getOnOffStatus()
Indication of the On/Off status as the CM11A sees it for the monitored house code. |
int |
getSeconds()
The CM11A's idea of what the current second is. |
java.lang.String |
paramString()
Returns a parameter string identifying the event. |
Methods inherited from class com.jpeterson.x10.ControlEvent |
getId,
toString |
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 STATUS
Constructor Detail |
public CM11AStatusEvent(CM11A source, int batteryUsage, int seconds, int minutes, int hours, int julianDay, int currentDay, char monitoredHouseCode, java.util.BitSet lastAddressedDevice, java.util.BitSet onOffStatus, java.util.BitSet dimStatus)
Method Detail |
public int getBatteryUsage()
public int getSeconds()
public int getMinutes()
public int getHours()
public int getJulianDay()
updateStatus()
.
The utility methods CM11A.extractMonth()
and
CM11A.extractDay()
have been provided to convert this
value into month and day representations.
As far as I can tell, the CM11A has no way of determining leap years. It therefore always uses 366 days in a year. The caller is responsible for determining if the current day has been corrected for a non-leap year.
public int getCurrentDay()
public char getMonitoredHouseCode()
public java.util.BitSet getLastAddressedDevice()
public java.util.BitSet getOnOffStatus()
public java.util.BitSet getDimStatus()
updateStatus
public java.lang.String paramString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |