|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.io.HomeEvent
sophware.home.insteon.InsteonEvent
public class InsteonEvent
The InsteonEvent
represents an event on one of the Home's Insteon devices.
| Field Summary | |
|---|---|
static short |
BRIGHT
|
static short |
BROADCAST_MSG
|
static short |
CURRENT_STATUS
|
static short |
DIM
|
static short |
FAST_OFF
|
static short |
FAST_ON
|
static short |
GRP_BROADCAST_MSG
|
static short |
GRP_CLEANUP_ACK_MSG
|
static short |
GRP_CLEANUP_MSG
|
static short |
OFF
|
static short |
ON
|
static short |
P2P_ACK_MSG
|
static short |
P2P_MSG
Message types |
static short |
P2P_NACK_MSG
|
static short |
PING
|
static short |
READ_LAST_LEVEL
|
static short |
READ_PRESET_LEVEL
|
static long |
serialVersionUID
|
static short |
SET_LAST_LEVEL
|
static short |
SET_PRESET_LEVEL
|
static short |
SIMULATED_EVENT
|
static short |
START_MANUAL_CHANGE
|
static short |
STATUS_REPORT
|
static short |
STATUS_REQUEST
|
static short |
STOP_MANUAL_CHANGE
|
| Constructor Summary | |
|---|---|
protected |
InsteonEvent(byte[] msg)
Instantiates an InsteonEvent |
protected |
InsteonEvent(byte[] msg,
int start)
Instantiates an InsteonEvent |
| Method Summary | |
|---|---|
InsteonAddress |
getAddress()
Gets the from InsteonAddress for this event |
byte |
getCommand1()
Gets the command for this event |
byte |
getCommand2()
Gets the value associated with this command |
static java.lang.String |
getCommandName(short command)
Get command name |
float |
getDeviceRevision()
If broadcast id will return device type. |
short |
getDeviceType()
If broadcast id will return device type. |
byte |
getFlags()
Gets the raw flags associated with this command |
short |
getHopsLeft()
Gets the hops left (retransmissions) |
short |
getMaxHops()
Gets the maximum hops (retransmissions) |
short |
getMessageType()
Gets the message type 0 - direct message (binary 000) 1 - ACK of direct message (binary 001) 2 - group cleanup direct message (binary 010) 3 - ACK group cleanup direct message (binary 011) 4 - broadcast message (binary 100) 5 - NAK of direct message (binary 101) 6 - group broadcast (binary 110) 7 - NAK of group cleanup direct message (binary 111) |
byte[] |
getUserData()
Gets the extended data associated with this command |
boolean |
isBroadcastID()
True if this event is broadccast ID |
boolean |
isExtended()
Tests to see if this is an extended message |
java.lang.String |
toString()
String representation of this event |
| Methods inherited from class sophware.home.io.HomeEvent |
|---|
getDate, getEventHandler |
| 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 SIMULATED_EVENT
public static final short PING
public static final short ON
public static final short FAST_ON
public static final short OFF
public static final short FAST_OFF
public static final short BRIGHT
public static final short DIM
public static final short START_MANUAL_CHANGE
public static final short STOP_MANUAL_CHANGE
public static final short STATUS_REQUEST
public static final short STATUS_REPORT
public static final short READ_LAST_LEVEL
public static final short SET_LAST_LEVEL
public static final short READ_PRESET_LEVEL
public static final short SET_PRESET_LEVEL
public static final short CURRENT_STATUS
public static final short P2P_MSG
public static final short P2P_ACK_MSG
public static final short GRP_CLEANUP_MSG
public static final short GRP_CLEANUP_ACK_MSG
public static final short BROADCAST_MSG
public static final short P2P_NACK_MSG
public static final short GRP_BROADCAST_MSG
| Constructor Detail |
|---|
protected InsteonEvent(byte[] msg)
throws HomeException
InsteonEvent
msg - the message buffer
HomeException
protected InsteonEvent(byte[] msg,
int start)
throws HomeException
InsteonEvent
msg - the message buffer
HomeException| Method Detail |
|---|
public InsteonAddress getAddress()
InsteonAddress for this event
public byte getCommand1()
public byte getCommand2()
public short getMessageType()
public boolean isExtended()
public short getHopsLeft()
public short getMaxHops()
public byte getFlags()
public byte[] getUserData()
public boolean isBroadcastID()
public short getDeviceType()
public float getDeviceRevision()
public static java.lang.String getCommandName(short command)
public java.lang.String toString()
toString in class java.lang.ObjectString representing this event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||