|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.io.HomeCommand
sophware.home.insteon.InsteonCommand
public class InsteonCommand
An InsteonCommand is transmitted via a
HomeTransmitter to an Insteon device on the home's network.
| Field Summary | |
|---|---|
static short |
CANCEL_LINKING
|
static short |
RESET_CONTROLLER
|
static long |
serialVersionUID
|
static short |
START_LINKING
|
| Constructor Summary | |
|---|---|
InsteonCommand(DeviceAddress dest,
InsteonCommand groupCommand)
constructs a cleanup command InsteonCommand |
|
InsteonCommand(DeviceAddress dest,
short command)
constructs a new InsteonCommand |
|
InsteonCommand(DeviceAddress dest,
short command,
byte[] data)
constructs a new InsteonCommand |
|
InsteonCommand(DeviceAddress dest,
short command,
short level)
constructs a new InsteonCommand |
|
InsteonCommand(DeviceAddress dest,
short command,
short level,
byte[] data)
constructs a new InsteonCommand |
|
InsteonCommand(short command)
constructs a new direct PLC InsteonCommand |
|
InsteonCommand(short command,
short value)
constructs a new direct PLC InsteonCommand |
|
| Method Summary | |
|---|---|
int |
getBytes(byte[] data)
get the transmission bytes |
short |
getCommand()
get the command value |
InsteonAddress |
getDestination()
Get destination Address |
InsteonAddress |
getGroup()
Get group Address |
short |
getLevel()
get the command value |
boolean |
isGroupCommand()
Check if group command |
java.lang.String |
toString()
string representation of this command |
| Methods inherited from class sophware.home.io.HomeCommand |
|---|
execute, getListener, getRequestID, setListener, setRequestID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
public static final short START_LINKING
public static final short CANCEL_LINKING
public static final short RESET_CONTROLLER
| Constructor Detail |
|---|
public InsteonCommand(DeviceAddress dest,
short command)
InsteonCommand
dest - the destination addresscommand - the command to be sent
public InsteonCommand(DeviceAddress dest,
InsteonCommand groupCommand)
InsteonCommand
dest - the destination addressgroupCommand - the group command to be cleaned up
public InsteonCommand(DeviceAddress dest,
short command,
short level)
InsteonCommand
dest - the destination addresscommand - the command to be sentlevel - the desired level 0-100%
public InsteonCommand(DeviceAddress dest,
short command,
byte[] data)
InsteonCommand
dest - the destination addresscommand - the command to be sentdata - the 14 bytes of extended data
public InsteonCommand(DeviceAddress dest,
short command,
short level,
byte[] data)
InsteonCommand
dest - the destination addresscommand - the command to be sentlevel - the desired level 0-100%data - the 14 bytes of extended datapublic InsteonCommand(short command)
InsteonCommand
command - the direct command
public InsteonCommand(short command,
short value)
InsteonCommand
command - the direct commandvalue - data associated with command| Method Detail |
|---|
public InsteonAddress getDestination()
public InsteonAddress getGroup()
public boolean isGroupCommand()
public short getCommand()
public short getLevel()
public int getBytes(byte[] data)
getBytes in class HomeCommanddata - a data buffer must be at least 20 bytes
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||