2010-01-26 1.2.0

org.eclipse.soda.dk.generic.io.simulator.device
Class GenericIoSimulatorDevice

java.lang.Object
  extended by Device
      extended by org.eclipse.soda.dk.generic.io.device.GenericIoDevice
          extended by org.eclipse.soda.dk.generic.io.simulator.device.GenericIoSimulatorDevice
All Implemented Interfaces:
GenericIoDeviceService, GenericIoSimulatorDeviceService

public class GenericIoSimulatorDevice
extends GenericIoDevice
implements GenericIoSimulatorDeviceService

Simulation of GenericIo Device with an SWT window. The GenericIoSimulatorDevice class implements the GenericIoSimulatorDeviceService and provides the controls for the device.

The list of exported services:

Since:
1.0
Version:
1.2.0
See Also:
GenericIoSimulatorDeviceService, org.eclipse.soda.dk.device.service.DeviceService

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
 
Fields inherited from class org.eclipse.soda.dk.generic.io.device.GenericIoDevice
AI_DATA_KEY_PREFIX, analogInputCount, analogInputs, analogOutputCount, analogOutputs, AO_DATA_KEY_PREFIX, digitalInputCount, digitalInputs, digitalOutputCount, digitalOutputs
 
Fields inherited from interface org.eclipse.soda.dk.generic.io.simulator.device.service.GenericIoSimulatorDeviceService
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, FACTORY_SERVICE_NAME, GenericIoSimulatorDevice, MANAGED_SERVICE_NAME, SERVICE_DESCRIPTION, SERVICE_NAME
 
Fields inherited from interface org.eclipse.soda.dk.generic.io.device.service.GenericIoDeviceService
AI1_DATA_KEY, AI10_DATA_KEY, AI11_DATA_KEY, AI12_DATA_KEY, AI13_DATA_KEY, AI14_DATA_KEY, AI15_DATA_KEY, AI16_DATA_KEY, AI17_DATA_KEY, AI18_DATA_KEY, AI19_DATA_KEY, AI2_DATA_KEY, AI20_DATA_KEY, AI21_DATA_KEY, AI22_DATA_KEY, AI23_DATA_KEY, AI24_DATA_KEY, AI25_DATA_KEY, AI26_DATA_KEY, AI27_DATA_KEY, AI28_DATA_KEY, AI29_DATA_KEY, AI3_DATA_KEY, AI30_DATA_KEY, AI31_DATA_KEY, AI32_DATA_KEY, AI4_DATA_KEY, AI5_DATA_KEY, AI6_DATA_KEY, AI7_DATA_KEY, AI8_DATA_KEY, AI9_DATA_KEY, ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, ANALOG_INPUT_COUNT_ERROR_EXTERNAL_KEY, ANALOG_INPUT_COUNT_EXTERNAL_KEY, ANALOG_INPUT_COUNT_GET_EXTERNAL_KEY, ANALOG_INPUT_COUNT_KEY, ANALOG_INPUT_COUNT_READ_EXTERNAL_KEY, ANALOG_INPUTS_ERROR_EXTERNAL_KEY, ANALOG_INPUTS_EXTERNAL_KEY, ANALOG_INPUTS_GET_EXTERNAL_KEY, ANALOG_INPUTS_READ_EXTERNAL_KEY, ANALOG_OUTPUT_COUNT_ERROR_EXTERNAL_KEY, ANALOG_OUTPUT_COUNT_EXTERNAL_KEY, ANALOG_OUTPUT_COUNT_GET_EXTERNAL_KEY, ANALOG_OUTPUT_COUNT_KEY, ANALOG_OUTPUT_COUNT_READ_EXTERNAL_KEY, ANALOG_OUTPUTS_ERROR_EXTERNAL_KEY, ANALOG_OUTPUTS_EXTERNAL_KEY, ANALOG_OUTPUTS_GET_EXTERNAL_KEY, ANALOG_OUTPUTS_WRITE_EXTERNAL_KEY, AnalogInputCount, AnalogInputs, AnalogOutputCount, AnalogOutputs, AO1_DATA_KEY, AO10_DATA_KEY, AO11_DATA_KEY, AO12_DATA_KEY, AO13_DATA_KEY, AO14_DATA_KEY, AO15_DATA_KEY, AO16_DATA_KEY, AO17_DATA_KEY, AO18_DATA_KEY, AO19_DATA_KEY, AO2_DATA_KEY, AO20_DATA_KEY, AO21_DATA_KEY, AO22_DATA_KEY, AO23_DATA_KEY, AO24_DATA_KEY, AO25_DATA_KEY, AO26_DATA_KEY, AO27_DATA_KEY, AO28_DATA_KEY, AO29_DATA_KEY, AO3_DATA_KEY, AO30_DATA_KEY, AO31_DATA_KEY, AO32_DATA_KEY, AO4_DATA_KEY, AO5_DATA_KEY, AO6_DATA_KEY, AO7_DATA_KEY, AO8_DATA_KEY, AO9_DATA_KEY, DIGITAL_INPUT_COUNT_ERROR_EXTERNAL_KEY, DIGITAL_INPUT_COUNT_EXTERNAL_KEY, DIGITAL_INPUT_COUNT_GET_EXTERNAL_KEY, DIGITAL_INPUT_COUNT_KEY, DIGITAL_INPUT_COUNT_READ_EXTERNAL_KEY, DIGITAL_INPUTS_ERROR_EXTERNAL_KEY, DIGITAL_INPUTS_EXTERNAL_KEY, DIGITAL_INPUTS_GET_EXTERNAL_KEY, DIGITAL_INPUTS_READ_EXTERNAL_KEY, DIGITAL_OUTPUT_COUNT_ERROR_EXTERNAL_KEY, DIGITAL_OUTPUT_COUNT_EXTERNAL_KEY, DIGITAL_OUTPUT_COUNT_GET_EXTERNAL_KEY, DIGITAL_OUTPUT_COUNT_KEY, DIGITAL_OUTPUT_COUNT_READ_EXTERNAL_KEY, DIGITAL_OUTPUTS_ERROR_EXTERNAL_KEY, DIGITAL_OUTPUTS_EXTERNAL_KEY, DIGITAL_OUTPUTS_GET_EXTERNAL_KEY, DIGITAL_OUTPUTS_WRITE_EXTERNAL_KEY, DigitalInputCount, DigitalInputs, DigitalOutputCount, DigitalOutputs, GenericIoDevice, SERVICE_DESCRIPTION, SERVICE_NAME
 
Constructor Summary
GenericIoSimulatorDevice()
          Constructs a new instance of the GenericIoSimulatorDevice class.
 
Method Summary
 void activate()
          Activate.
 void deactivate()
          Deactivate.
protected  java.util.Map getAnalogInputValue()
          Gets the analog input value (Map) value.
 java.lang.String getDefaultKey()
          Gets the default key of the device.
 TransportService getDefaultTransport()
          Gets the default TransportService.
protected  long getDigitalInputState()
          Gets the digital input state (long) value.
protected  void setAnalogInputValue(java.util.Map inputValue)
          Sets the analog input value value.
protected  void setAnalogOutputValue(java.util.Map outputValue)
          Sets the analog output value value.
protected  void setDigitalInputState(long inputState)
          Sets the digital input state value.
protected  void setDigitalOutputState(long l)
          Sets the digital output state value.
 void setup()
           
 void setupCustom()
          Setup custom.
 
Methods inherited from class org.eclipse.soda.dk.generic.io.device.GenericIoDevice
getAnalogInputCount, getAnalogInputs, getAnalogOutputCount, getAnalogOutputs, getControlCapacity, getDigitalInputCount, getDigitalInputs, getDigitalOutputCount, getDigitalOutputs, getMessageCapacity, getNumberOfAnalogInputs, getNumberOfAnalogOutputs, getNumberOfDigitalInputs, getNumberOfDigitalOutputs, handleMethodAnalogInputCount, handleMethodAnalogInputs, handleMethodAnalogOutputCount, handleMethodAnalogOutputs, handleMethodDigitalInputCount, handleMethodDigitalInputs, handleMethodDigitalOutputCount, handleMethodDigitalOutputs, initializeIntegerMeasurement, initializeStringMeasurement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the full class name.

Since:
1.0
See Also:
Constant Field Values
Constructor Detail

GenericIoSimulatorDevice

public GenericIoSimulatorDevice()
Constructs a new instance of the GenericIoSimulatorDevice class.

Since:
1.0
Method Detail

getDefaultKey

public java.lang.String getDefaultKey()
Gets the default key of the device.

Overrides:
getDefaultKey in class GenericIoDevice
Returns:
String The default key
Since:
1.0

getDefaultTransport

public TransportService getDefaultTransport()
Gets the default TransportService.

Overrides:
getDefaultTransport in class GenericIoDevice
Returns:
TransportService The default TransportService.
Since:
1.0

setup

public void setup()
Overrides:
setup in class GenericIoDevice
Since:
1.2
See Also:
org.eclipse.soda.dk.device.Container#setup()

activate

public void activate()
Activate.


deactivate

public void deactivate()
Deactivate.


getAnalogInputValue

protected java.util.Map getAnalogInputValue()
Gets the analog input value (Map) value.

Specified by:
getAnalogInputValue in class GenericIoDevice
Returns:
The analog input value (Map) value.
See Also:
setAnalogInputValue(Map)

getDigitalInputState

protected long getDigitalInputState()
Gets the digital input state (long) value.

Specified by:
getDigitalInputState in class GenericIoDevice
Returns:
The digital input state (long) value.
See Also:
setDigitalInputState(long)

setAnalogInputValue

protected void setAnalogInputValue(java.util.Map inputValue)
Sets the analog input value value.

Parameters:
inputValue - The input value (Map) parameter.
See Also:
getAnalogInputValue()

setAnalogOutputValue

protected void setAnalogOutputValue(java.util.Map outputValue)
Sets the analog output value value.

Specified by:
setAnalogOutputValue in class GenericIoDevice
Parameters:
outputValue - The output value (Map) parameter.

setDigitalInputState

protected void setDigitalInputState(long inputState)
Sets the digital input state value.

Parameters:
inputState - The input state (long) parameter.
See Also:
getDigitalInputState()

setDigitalOutputState

protected void setDigitalOutputState(long l)
Sets the digital output state value.

Specified by:
setDigitalOutputState in class GenericIoDevice
Parameters:
l - The l (long) parameter.

setupCustom

public void setupCustom()
Setup custom.


2010-01-26 1.2.0

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