|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.lang.DeviceAddress
sophware.home.insteon.InsteonAddress
public class InsteonAddress
InsteonAddress uniquely identifies an
Insteon HomeDevice or group
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
InsteonAddress(byte[] addr)
Creates a InsteonAddress with the given address |
|
InsteonAddress(byte[] addr,
int start)
Creates a InsteonAddress with the given address |
|
InsteonAddress(short group)
Creates a InsteonAddress for the given group |
|
InsteonAddress(short high,
short middle,
short low)
Creates a InsteonAddress with the given address |
|
InsteonAddress(java.lang.String addr)
Creates a InsteonAddress with the given address |
|
| Method Summary | |
|---|---|
int |
getAddress()
Returns a copy of the raw Insteon address |
HomeCommand |
getBrightCommand()
Get bright command for this address |
byte[] |
getBytes(byte[] buf)
Get the 3 address bytes |
byte[] |
getBytes(byte[] buf,
int start)
Get the 3 address bytes |
HomeCommand |
getDimCommand()
Get dim command for this address |
short |
getGroup()
Get group number |
HomeCommand |
getHailCommand()
Get hail command for this address |
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 command for this address |
boolean |
isGroupAddress()
identifies whether or not this address is a group address |
java.lang.String |
toString()
Returns string dot 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 |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public InsteonAddress(byte[] addr)
throws HomeException
InsteonAddress with the given address
addr - first three bytes assumed to be address
HomeException - if address is invalid
public InsteonAddress(byte[] addr,
int start)
throws HomeException
InsteonAddress with the given address
addr - first three bytes after start assumed to be addressstart - position of first byte in address
HomeException - if address is invalid
public InsteonAddress(short group)
throws HomeException
InsteonAddress for the given group
group - the group number
HomeException - if address is invalid
public InsteonAddress(short high,
short middle,
short low)
throws HomeException
InsteonAddress with the given address
high - high order unsigned address bytemiddle - middle order unsigned address bytelow - low order unsigned address byte
HomeException - if address is invalid
public InsteonAddress(java.lang.String addr)
throws HomeException
InsteonAddress with the given address
addr - address in hex dot format
HomeException - if address is invalid| Method Detail |
|---|
public boolean isGroupAddress()
public short getGroup()
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] getBytes(byte[] buf)
buf - byte buffer for address (must at least 3 in length)
public byte[] getBytes(byte[] buf,
int start)
buf - byte buffer for address (must at least 3 in length)start - the staring position within the buffer
public 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 | ||||||||