1.0.0

org.eclipse.soda.dk.command.service
Interface CommandListener

All Superinterfaces:
ErrorListener
All Known Implementing Classes:
Adapter, AdapterTest, AgentTest, CommandListeners, Commands, ConcreteMeasurement, DeviceAdapter, DeviceProfile, DeviceTest, DeviceTestcase, NotificationController, Profile, TestAdapter, Wire

public interface CommandListener
extends ErrorListener

The CommandListener interface defines the methods to be called when event notification occurs. A CommandListener is implemented by any class which wishes to be notified whenever a particular CommandService is executed. This can be useful for a GUI, which may wish to update, when a particular CommandService, such as the power on/off command is executed.

Version:
1.0.0
See Also:
Commands, CommandService, ControlService, ErrorListener

Method Summary
 void commandExecuted(CommandService source, java.lang.Object timestamp, java.lang.Object data)
          This method is fired to all Listeners each time the command is executed.
 
Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener
errorOccurred
 

Method Detail

commandExecuted

void commandExecuted(CommandService source,
                     java.lang.Object timestamp,
                     java.lang.Object data)
This method is fired to all Listeners each time the command is executed. Since other notifications are blocked until this method returns, implementors of this method should:

Parameters:
source - CommandService which was executed.
timestamp - The time at which the command execution was detected.
data - Any data which was contained within the command.

1.0.0

Copyright (c) 1999, 2007 IBM