com.jpeterson.x10.event
Class AddressEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.jpeterson.x10.event.X10Event
|
+--com.jpeterson.x10.event.AddressEvent
- public class AddressEvent
- extends X10Event
Address events indicate the target for a function.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
AddressEvent(java.lang.Object source,
char houseCode,
int deviceCode)
Create a new address event. |
Method Summary |
int |
getDeviceCode()
Retrieve the device code. |
char |
getHouseCode()
Retrieve the house code. |
java.lang.String |
toString()
Create a string that represents the X10 event. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
AddressEvent
public AddressEvent(java.lang.Object source,
char houseCode,
int deviceCode)
- Create a new address event.
- Parameters:
source
- The event source.houseCode
- the house code of the event. Valid codes are 'A'
through 'P', uppercase.deviceCode
- the device code of the event. Valid codes are
1 through 16.
getHouseCode
public char getHouseCode()
- Retrieve the house code.
- Returns:
- house code character 'A' through 'P', uppercase.
getDeviceCode
public int getDeviceCode()
- Retrieve the device code.
- Returns:
- device code value 1 through 16.
toString
public java.lang.String toString()
- Create a string that represents the X10 event.
- Overrides:
- toString in class X10Event
- Returns:
- string representation of the X10 event