|
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
public class Command
The Command class implements the CommandService interface.
Control,
CommandService,
ControlService,
ErrorListener,
MeasurementListener,
MessageHandler,
SignalListener| Field Summary |
|---|
| Fields inherited from class org.eclipse.soda.dk.device.Control |
|---|
EXCEPTION_READ_FAILED_RESOURCE, SET_VALUE_EXCEPTION_RESOURCE |
| Constructor Summary | |
|---|---|
Command(java.lang.String key)
Constructs an Command object using the input parameter(s). |
|
| Method Summary | |
|---|---|
void |
addCommandListener(CommandListener commandListener)
Adds the specified listener to receive listener notification. |
void |
execute()
Perform the execute action method. |
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. |
void |
execute(java.lang.Object data)
Perform the execute action method. |
void |
fireCommandExecuted(CommandListener commandListener,
java.lang.Object timestamp)
Fire command executed with the specified command listener and timestamp parameters. |
void |
fireCommandExecuted(CommandListener commandListener,
java.lang.Object timestamp,
ChannelService channel)
Fire command executed with the specified command listener, timestamp and channel parameters. |
void |
fireCommandExecuted(CommandListener commandListener,
java.lang.Object timestamp,
ChannelService channel,
java.lang.Object data)
Fire command executed with the specified command listener, timestamp, channel and data parameters. |
void |
fireCommandExecuted(CommandListener commandListener,
java.lang.Object timestamp,
java.lang.Object data)
Fire command executed with the specified command listener, timestamp and data parameters. |
protected void |
fireErrorOccurred(CommandListener commandListener,
java.lang.Object timestamp,
java.lang.Object data)
Fire error occurred with the specified command listener, timestamp and data parameters. |
void |
fireErrorOccurred(java.lang.Object timestamp,
java.lang.Object data)
Fire error occurred with the specified timestamp and data parameters. |
CommandListener |
getCommandListener()
Gets the CommandListener commandListener property value. |
void |
measurementChanged(MeasurementService source,
java.lang.Object timestamp,
ChannelService channel,
java.lang.Object newValue,
java.lang.Object oldValue)
Measurement changed with the specified source, timestamp, channel, new value and old value parameters. |
void |
measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
This method is fired to all Listeners each time the value of the measurement changes. |
void |
removeCommandListener(CommandListener commandListener)
Removes the specified listener from receiving listener notification. |
protected void |
reportError(int errorNumber,
java.lang.Throwable error,
java.lang.Object[] errorObjects)
Report error with the specified error number, error and error objects parameters. |
void |
setCommandListener(CommandListener commandListener)
Sets the commandListener. |
void |
signalOccurred(SignalService source,
java.lang.Object timestamp,
ChannelService channel,
java.lang.Object data)
Signal occurred with the specified source, timestamp, channel and data parameters. |
void |
signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
This method is fired to all Listeners each time the signal triggered. |
| 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 |
| Constructor Detail |
|---|
public Command(java.lang.String key)
Command object using the input parameter(s).
key - The key (String) parameter.| Method Detail |
|---|
public void addCommandListener(CommandListener commandListener)
addCommandListener in interface CommandServicecommandListener - The command listener (CommandListener) parameter.CommandService.addCommandListener(org.eclipse.soda.dk.command.service.CommandListener),
getCommandListener(),
removeCommandListener(CommandListener),
setCommandListener(CommandListener)public void execute()
execute in interface CommandServiceCommandService.execute(),
execute(ChannelService),
execute(ChannelService,Object),
execute(Object)public void execute(ChannelService channel)
execute in interface CommandServicechannel - The channel (ChannelService) parameter.execute(),
execute(ChannelService,Object),
execute(Object)
public void execute(ChannelService channel,
java.lang.Object data)
execute in interface CommandServicechannel - The channel (ChannelService) parameter.data - The data (Object) parameter.execute(),
execute(ChannelService),
execute(Object)public void execute(java.lang.Object data)
execute in interface CommandServicedata - The data (Object) parameter.CommandService.execute(Object),
execute(),
execute(ChannelService),
execute(ChannelService,Object)
public void fireCommandExecuted(CommandListener commandListener,
java.lang.Object timestamp)
commandListener - The command listener (CommandListener) parameter.timestamp - The time stamp (Object) parameter.fireCommandExecuted(CommandListener,Object,ChannelService),
fireCommandExecuted(CommandListener,Object,ChannelService,Object),
fireCommandExecuted(CommandListener,Object,Object)
public void fireCommandExecuted(CommandListener commandListener,
java.lang.Object timestamp,
ChannelService channel)
commandListener - The command listener (CommandListener) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.fireCommandExecuted(CommandListener,Object),
fireCommandExecuted(CommandListener,Object,ChannelService,Object),
fireCommandExecuted(CommandListener,Object,Object)
public void fireCommandExecuted(CommandListener commandListener,
java.lang.Object timestamp,
ChannelService channel,
java.lang.Object data)
commandListener - The command listener (CommandListener) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.data - The data (Object) parameter.fireCommandExecuted(CommandListener,Object),
fireCommandExecuted(CommandListener,Object,ChannelService),
fireCommandExecuted(CommandListener,Object,Object)
public void fireCommandExecuted(CommandListener commandListener,
java.lang.Object timestamp,
java.lang.Object data)
commandListener - The command listener (CommandListener) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.fireCommandExecuted(CommandListener,Object),
fireCommandExecuted(CommandListener,Object,ChannelService),
fireCommandExecuted(CommandListener,Object,ChannelService,Object)
protected void fireErrorOccurred(CommandListener commandListener,
java.lang.Object timestamp,
java.lang.Object data)
commandListener - The command listener (CommandListener) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.fireErrorOccurred(Object,Object)
public void fireErrorOccurred(java.lang.Object timestamp,
java.lang.Object data)
timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.fireErrorOccurred(CommandListener,Object,Object)public CommandListener getCommandListener()
CommandListener commandListener property value.
CommandListener)addCommandListener(CommandListener),
removeCommandListener(CommandListener),
setCommandListener(CommandListener)
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
ChannelService channel,
java.lang.Object newValue,
java.lang.Object oldValue)
measurementChanged in interface MultiplexMeasurementListenersource - The source (MeasurementService) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.newValue - The new value (Object) parameter.oldValue - The old value (Object) parameter.measurementChanged(MeasurementService,Object,Object,Object)
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
measurementChanged in interface MeasurementListenersource - The source (MeasurementService) parameter.timestamp - The time stamp (Object) parameter.newValue - The new value (Object) parameter.oldValue - The old value (Object) parameter.measurementChanged(MeasurementService,Object,ChannelService,Object,Object)public void removeCommandListener(CommandListener commandListener)
org.eclipse.soda.dk.command.service.CommandListener listener to be removed.
removeCommandListener in interface CommandServicecommandListener - The command listener (CommandListener) parameter.CommandService.removeCommandListener(org.eclipse.soda.dk.command.service.CommandListener),
addCommandListener(CommandListener),
getCommandListener(),
setCommandListener(CommandListener)
protected void reportError(int errorNumber,
java.lang.Throwable error,
java.lang.Object[] errorObjects)
throws java.lang.RuntimeException
reportError in class EscObjecterrorNumber - The error number (int) parameter.error - The error (Throwable) parameter.errorObjects - The error objects (Object[]) parameter.
java.lang.RuntimeException - Runtime Exception.EscObject.handleStaticError(String),
EscObject.attemptRecoveryFromError(int,Throwable),
EscObject.handleError(Throwable,int),
EscObject.handleError(Throwable,int,Object),
EscObject.handleError(Throwable,int,Object,Object),
EscObject.handleError(Throwable,int,Object[])public void setCommandListener(CommandListener commandListener)
commandListener - The command listener (CommandListener) parameter.addCommandListener(CommandListener),
getCommandListener(),
removeCommandListener(CommandListener)
public void signalOccurred(SignalService source,
java.lang.Object timestamp,
ChannelService channel,
java.lang.Object data)
signalOccurred in interface MultiplexSignalListenersource - The source (SignalService) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.data - The data (Object) parameter.fireErrorOccurred(CommandListener,Object,Object),
fireErrorOccurred(Object,Object),
signalOccurred(SignalService,Object,Object)
public void signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
signalOccurred in interface SignalListenersource - The source (SignalService) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.fireErrorOccurred(CommandListener,Object,Object),
fireErrorOccurred(Object,Object),
signalOccurred(SignalService,Object,ChannelService,Object)
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||