com.jpeterson.x10.event
Class ExtendedCodeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.jpeterson.x10.event.X10Event
              |
              +--com.jpeterson.x10.event.FunctionEvent
                    |
                    +--com.jpeterson.x10.event.ExtendedCodeEvent

public class ExtendedCodeEvent
extends FunctionEvent

Extended event

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ExtendedCodeEvent(java.lang.Object source, char houseCode, byte data, byte command)
          Create a new 'Extended Code' event.
 
Method Summary
 byte getCommand()
          Retrieve the command byte.
 byte getData()
          Retrieve the data byte.
 byte[] getPacket()
          Retrieve the bytes that compose the X10 event.
 java.lang.String toString()
          Create a string that represents the X10 event.
 
Methods inherited from class com.jpeterson.x10.event.FunctionEvent
getFunction, getHouseCode
 
Methods inherited from class com.jpeterson.x10.event.X10Event
equals, getChecksum, getDimMax, getDims, getHiNibble, getLoNibble, hashCode, isExtended, isFunction
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendedCodeEvent

public ExtendedCodeEvent(java.lang.Object source,
                         char houseCode,
                         byte data,
                         byte command)
Create a new 'Extended Code' event.
Parameters:
source - The event source.
houseCode - the house code of the event. Valid codes are 'A' through 'P', uppercase.
Method Detail

getPacket

public byte[] getPacket()
Retrieve the bytes that compose the X10 event.
Overrides:
getPacket in class X10Event
Returns:
Array of bytes that constitute the payload of the X10 event. The size will be 4.

getData

public byte getData()
Retrieve the data byte.
Returns:
Extended code's data byte.

getCommand

public byte getCommand()
Retrieve the command byte.
Returns:
Extended code's command byte.

toString

public java.lang.String toString()
Create a string that represents the X10 event.
Overrides:
toString in class FunctionEvent
Returns:
string representation of the X10 event