|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.device.Control
org.eclipse.soda.dk.command.Command
org.eclipse.soda.dk.command.DeviceCommand
org.eclipse.soda.dk.command.SimpleMessageCommand
public class SimpleMessageCommand
This command class implements a command with a message that is sent to the device and is not received from the device. This class should not be used if the message contains a parameter or a command parameter has been specified.
| Field Summary | |
|---|---|
protected MessageService |
message
Define the message (MessageService) field. |
| Fields inherited from class org.eclipse.soda.dk.device.Control |
|---|
EXCEPTION_READ_FAILED_RESOURCE, SET_VALUE_EXCEPTION_RESOURCE |
| Constructor Summary | |
|---|---|
SimpleMessageCommand(java.lang.String key,
MessageService message)
Constructs an instance of this class from the specified key parameter. |
|
| Method Summary | |
|---|---|
void |
execute(ChannelService channel)
Execute with the specified channel parameter. |
void |
execute(ChannelService channel,
java.lang.Object data)
Execute with the specified channel and data parameters. |
MessageService |
getMessage()
Gets the MessageService message property value. |
void |
noResponseReceived(TransportService transportService,
ChannelService channel,
java.lang.Object timestamp,
java.lang.Object data)
No response received with the specified transport service, channel and data parameters. |
void |
responseReceived(TransportService transportService,
ChannelService channel,
java.lang.Object timestamp,
java.lang.Object data)
Response received with the specified transport service, channel and data parameters. |
void |
setMessage(MessageService message)
Sets the message value. |
| Methods inherited from class org.eclipse.soda.dk.command.DeviceCommand |
|---|
getDevice, setDevice |
| Methods inherited from class org.eclipse.soda.dk.command.Command |
|---|
addCommandListener, execute, execute, fireCommandExecuted, fireCommandExecuted, fireCommandExecuted, fireCommandExecuted, fireErrorOccurred, fireErrorOccurred, getCommandListener, measurementChanged, measurementChanged, removeCommandListener, reportError, setCommandListener, signalOccurred, signalOccurred |
| Methods inherited from class org.eclipse.soda.dk.device.Control |
|---|
attemptRecoveryFromError, equalsValue, errorOccurred, findMethod, getCodeKey, getErrorSeverity, getKey, getQualifiedKey, getResource, setKey, setQualifiedKey, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.device.service.ControlService |
|---|
getKey |
| Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener |
|---|
errorOccurred |
| Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener |
|---|
errorOccurred |
| Field Detail |
|---|
protected MessageService message
| Constructor Detail |
|---|
public SimpleMessageCommand(java.lang.String key,
MessageService message)
key - The key (String) parameter.message - The message (MessageService) parameter.| Method Detail |
|---|
public void execute(ChannelService channel)
execute in interface CommandServiceexecute in class Commandchannel - The channel (ChannelService) parameter.execute(ChannelService,Object)
public void execute(ChannelService channel,
java.lang.Object data)
execute in interface CommandServiceexecute in class Commandchannel - The channel (ChannelService) parameter.data - The data (Object) parameter.execute(ChannelService)public MessageService getMessage()
MessageService message property value.
MessageService) value.setMessage(MessageService)
public void noResponseReceived(TransportService transportService,
ChannelService channel,
java.lang.Object timestamp,
java.lang.Object data)
noResponseReceived in interface ResponseListenertransportService - The transport service (TransportService) parameter.channel - The channel (ChannelService) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.
public void responseReceived(TransportService transportService,
ChannelService channel,
java.lang.Object timestamp,
java.lang.Object data)
responseReceived in interface ResponseListenertransportService - The transport service (TransportService) parameter.channel - The channel (ChannelService) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.noResponseReceived(TransportService,ChannelService,Object,Object)
public void setMessage(MessageService message)
throws java.lang.IllegalArgumentException
message - The message (MessageService) parameter.
java.lang.IllegalArgumentException - Illegal Argument Exception.getMessage()
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||