|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.lang.DeviceAddress
sophware.home.x10.X10Address
public class X10Address
X10Address uniquely identifies an X10Device or
a house code broadcast address.
| Constructor Summary | |
|---|---|
X10Address(char hc)
Creates a X10Address with the given house code |
|
X10Address(char hc,
int unit)
Creates a X10Address with the given house code,
unit number. |
|
X10Address(java.lang.String addr)
Creates a X10Address with the given address |
|
| Method Summary | |
|---|---|
int |
getAddress()
Returns the raw X10 address byte |
HomeCommand |
getBrightCommand()
Gets bright command for this address |
HomeCommand |
getDimCommand()
Gets dim command for this address |
HomeCommand |
getHailCommand()
Gets hail command for this address |
char |
getHouseCode()
Gets the house code associated with this X10Address |
HomeCommand |
getOffCommand()
Get off command for this address |
HomeCommand |
getOnCommand()
Get on command for this address |
HomeCommand |
getOnCommand(int level)
Get on command for this address |
HomeCommand |
getStatusRequestCommand()
Get status request command for this address |
short |
getUnitNum()
Gets the unit number associated with this X10Address. |
boolean |
isHouseCodeBroadcast()
Returns true if this is a house code broadcast address. |
java.lang.String |
toString()
Returns string representation of this address |
| Methods inherited from class sophware.home.lang.DeviceAddress |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public X10Address(char hc)
throws HomeException
X10Address with the given house code
hc - house code (A-P)
HomeException - house code is invalid
public X10Address(char hc,
int unit)
throws HomeException
X10Address with the given house code,
unit number.
hc - house code (A-P)unit - unit number (1-16)
HomeException - house code or unit number are invalid
public X10Address(java.lang.String addr)
throws HomeException
X10Address with the given address
addr - x10 address
HomeException - address is invalid| Method Detail |
|---|
public char getHouseCode()
X10Address
public short getUnitNum()
X10Address.
Zero if this is a house code broadcast address.
public boolean isHouseCodeBroadcast()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getAddress()
getAddress in class DeviceAddresspublic HomeCommand getOnCommand()
getOnCommand in class DeviceAddresspublic HomeCommand getOnCommand(int level)
getOnCommand in class DeviceAddresslevel - the desired level
public HomeCommand getOffCommand()
getOffCommand in class DeviceAddresspublic HomeCommand getDimCommand()
getDimCommand in class DeviceAddresspublic HomeCommand getBrightCommand()
getBrightCommand in class DeviceAddresspublic HomeCommand getHailCommand()
getHailCommand in class DeviceAddresspublic HomeCommand getStatusRequestCommand()
getStatusRequestCommand in class DeviceAddress
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||