|
2009-01-09 1.2.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.
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(ChannelService channel)
Execute the command, causing it to be sent to the target hardware device. |
void |
execute(ChannelService channel,
java.lang.Object data)
Execute the command, and fill in any data fields with the value held within the data argument. |
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 command listener (CommandListener) parameter.removeCommandListener(CommandListener)void execute()
execute(ChannelService),
execute(ChannelService,Object),
execute(Object)void execute(ChannelService channel)
channel - The channel (ChannelService) parameter.execute(),
execute(ChannelService,Object),
execute(Object)
void execute(ChannelService channel,
java.lang.Object data)
channel - The channel (ChannelService) parameter.data - The data (Object) parameter.execute(),
execute(ChannelService),
execute(Object)void execute(java.lang.Object data)
data - The data (Object) parameter.execute(),
execute(ChannelService),
execute(ChannelService,Object)void removeCommandListener(CommandListener commandListener)
commandListener - The command listener (CommandListener) parameter.addCommandListener(CommandListener)
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||