2009-01-09 1.2.0

org.eclipse.soda.dk.device.awt
Class CommandBridge

java.lang.Object
  extended by org.eclipse.soda.dk.device.awt.CommandBridge
All Implemented Interfaces:
CommandListener, ErrorListener

public class CommandBridge
extends java.lang.Object
implements CommandListener

Since:
1.0
Version:
1.2.0

Field Summary
protected  CommandService command
          Define the signal (SignalService) field.
protected  DeviceAwt deviceAwt
          Define the device awt (DeviceAwt) field.
protected  int index
          Define the index (int) field.
protected  java.awt.List list
          Define the list (List) field.
 
Constructor Summary
CommandBridge()
          Constructs an instance of this class.
CommandBridge(DeviceAwt deviceAwt, java.awt.List list, int index, CommandService command)
          Constructs an instance of this class from the specified device awt, list, index and command parameters.
 
Method Summary
 void commandExecuted(CommandService source, java.lang.Object timestamp, java.lang.Object data)
          Command executed with the specified source, timestamp and data parameters.
 void errorOccurred(java.lang.Object source, java.lang.Object timestamp, java.lang.Object data)
          Error occurred with the specified source, timestamp and data parameters.
 CommandService getCommand()
          Gets the command (CommandService) value.
 DeviceAwt getDeviceAwt()
          Gets the device AWT value.
 int getIndex()
          Gets the index (int) value.
 java.awt.List getList()
          Gets the list value.
 void setCommand(CommandService command)
          Sets the command value.
 void setDeviceAwt(DeviceAwt deviceAwt)
          Sets the device AWT value.
 void setIndex(int index)
          Sets the index value.
 void setList(java.awt.List list)
          Sets the list value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

protected CommandService command
Define the signal (SignalService) field.


list

protected java.awt.List list
Define the list (List) field.


index

protected int index
Define the index (int) field.


deviceAwt

protected DeviceAwt deviceAwt
Define the device awt (DeviceAwt) field.

Constructor Detail

CommandBridge

public CommandBridge()
Constructs an instance of this class.

See Also:
CommandBridge(DeviceAwt,List,int,CommandService)

CommandBridge

public CommandBridge(DeviceAwt deviceAwt,
                     java.awt.List list,
                     int index,
                     CommandService command)
Constructs an instance of this class from the specified device awt, list, index and command parameters.

Parameters:
deviceAwt - The device awt (DeviceAwt) parameter.
list - The list (List) parameter.
index - The index (int) parameter.
command - The command (CommandService) parameter.
See Also:
CommandBridge()
Method Detail

commandExecuted

public void commandExecuted(CommandService source,
                            java.lang.Object timestamp,
                            java.lang.Object data)
Command executed with the specified source, timestamp and data parameters.

Specified by:
commandExecuted in interface CommandListener
Parameters:
source - The source (CommandService) parameter.
timestamp - The timestamp (Object) parameter.
data - The data (Object) parameter.

errorOccurred

public void errorOccurred(java.lang.Object source,
                          java.lang.Object timestamp,
                          java.lang.Object data)
Error occurred with the specified source, timestamp and data parameters.

Specified by:
errorOccurred in interface ErrorListener
Parameters:
source - The source (Object) parameter.
timestamp - The timestamp (Object) parameter.
data - The data (Object) parameter.

getCommand

public CommandService getCommand()
Gets the command (CommandService) value.

Returns:
The command (CommandService) value.
See Also:
setCommand(CommandService)

getDeviceAwt

public DeviceAwt getDeviceAwt()
Gets the device AWT value.

Returns:
The device awt (DeviceAwt) value.
See Also:
setDeviceAwt(DeviceAwt)

getIndex

public int getIndex()
Gets the index (int) value.

Returns:
The index (int) value.
See Also:
setIndex(int)

getList

public java.awt.List getList()
Gets the list value.

Returns:
The list (List) value.
See Also:
setList(List)

setCommand

public void setCommand(CommandService command)
Sets the command value.

Parameters:
command - The command (CommandService) parameter.
See Also:
getCommand()

setDeviceAwt

public void setDeviceAwt(DeviceAwt deviceAwt)
Sets the device AWT value.

Parameters:
deviceAwt - The device awt (DeviceAwt) parameter.
See Also:
getDeviceAwt()

setIndex

public void setIndex(int index)
Sets the index value.

Parameters:
index - The index (int) parameter.
See Also:
getIndex()

setList

public void setList(java.awt.List list)
Sets the list value.

Parameters:
list - The list (List) parameter.
See Also:
getList()

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.