|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.io.HomeCommand
sophware.home.x10.X10Command
public class X10Command
A X10Command is transmitted via a HomeTransmitter
to an X10 device on the home's network.
X10Event,
Serialized Form| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
X10Command(DeviceAddress addr,
byte[] extData)
Creates a new extended code X10Command |
|
X10Command(DeviceAddress addr,
short function)
Creates a new X10Command |
|
X10Command(DeviceAddress addr,
short function,
short dimValue)
Creates a new X10Command |
|
| Method Summary | |
|---|---|
void |
addAddress(X10Address addr)
Add the X10Addresses to this event. |
java.util.Enumeration<X10Address> |
getAddresses()
Gets the X10Addresses to for this command. |
protected java.util.Vector<X10Address> |
getAddressVector()
Gets the X10Addresses to for this command. |
int |
getBytes(byte[] buf)
Gets the bytes associated with this command |
short |
getDimValue()
Gets the dim value |
byte[] |
getExtData(byte[] data)
Gets the extended data |
short |
getFunction()
Gets the function command |
java.lang.String |
toString()
Gets the 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
| Constructor Detail |
|---|
public X10Command(DeviceAddress addr,
short function)
X10Command
addr - the DeviceAddress to which this command will be sentfunction - the function to send
public X10Command(DeviceAddress addr,
short function,
short dimValue)
X10Command
addr - the DeviceAddress to which this command will be sentfunction - the commmand to senddimValue - the data associated with the function
public X10Command(DeviceAddress addr,
byte[] extData)
X10Command
addr - the DeviceAddress to which this command will be sentextData - the extended data associated with the command| Method Detail |
|---|
public void addAddress(X10Address addr)
X10Addresses to this event.
addr - X10Addressprotected java.util.Vector<X10Address> getAddressVector()
X10Addresses to for this command.
DeviceAddresspublic java.util.Enumeration<X10Address> getAddresses()
X10Addresses to for this command.
DeviceAddresspublic short getFunction()
public short getDimValue()
public byte[] getExtData(byte[] data)
data - buffer into which the 2 bytes of extended data are copied
public int getBytes(byte[] buf)
getBytes in class HomeCommandbuf - the buffer to be used (for efficiency)
public java.lang.String toString()
String representation of this command
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||