|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandService
The CommandService interface defines the CommandService concept. A CommandService is a logical representation of a message which is sent to a hardware Device, instructing it to do something. The execute methods are used in order to send the CommandService. An application may register interest by using the CommandListener interface, and be notified whenever the CommandService is sent.
Command,
CommandListener,
ControlService| Method Summary | |
|---|---|
void |
addCommandListener(CommandListener commandListener)
Adds the specified listener to receive command listener notification. |
void |
execute()
Execute the command, causing it to be sent to the target hardware device. |
void |
execute(java.lang.Object data)
Execute the command, and fill in any data fields with the value held within the data argument. |
void |
removeCommandListener(CommandListener commandListener)
Removes the specified listener from receiving listener notification. |
| Methods inherited from interface org.eclipse.soda.dk.device.service.ControlService |
|---|
getKey |
| Method Detail |
|---|
void addCommandListener(CommandListener commandListener)
commandListener - The org.eclipse.soda.dk.command.service.CommandListener listener to be added.removeCommandListener(CommandListener)void execute()
execute(Object)void execute(java.lang.Object data)
data - The data to be used when executing this command.execute()void removeCommandListener(CommandListener commandListener)
commandListener - The org.eclipse.soda.dk.command.service.CommandListener listener to be removed.addCommandListener(CommandListener)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||