|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.io.HomeCommand
public abstract class HomeCommand
A HomeCommand is transmitted via a HomeTransmitter
to a device on the home's network.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
HomeCommand()
|
|
| Method Summary | |
|---|---|
void |
execute()
Executes this command as part of a Macro |
abstract int |
getBytes(byte[] data)
Gets the data transmission bytes |
HomeCommandListener |
getListener()
Gets the HomeCommandListener to for this command. |
int |
getRequestID()
Gets a request ID to for this command. |
void |
setListener(HomeCommandListener listener)
Sets a HomeCommandListener to for this command. |
void |
setRequestID(int requestID)
Assigns a request ID to this command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public HomeCommand()
| Method Detail |
|---|
public void setRequestID(int requestID)
HomeTransmitter interface
requestID - the request identifierpublic int getRequestID()
HomeTransmitter interface
public void setListener(HomeCommandListener listener)
HomeCommandListener to for this command.
This listener is notified when the command transmission completes.
listener - the HomeCommandListenerpublic HomeCommandListener getListener()
HomeCommandListener to for this command.
This listener is notified when the command transmission completes.
HomeCommandListenerpublic void execute()
execute in interface MacroStepMacroSteppublic abstract int getBytes(byte[] data)
data - output buffer for efficiency (length is protocol dependent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||