1.0.0

org.eclipse.soda.dk.control.profile
Class ControlProfile

java.lang.Object
  extended by Profile
      extended by org.eclipse.soda.dk.control.profile.ControlProfile
All Implemented Interfaces:
ControlProfileService

public class ControlProfile
extends Profile
implements ControlProfileService

Control Profile. The ControlProfile class implements the device service and provides the controls for the device.

The list of exported services:

Version:
1.0.0
See Also:
ControlProfileService,

See the following specification(s) for more details:


Field Summary
static java.lang.String[] BIT_DURATION_NAMES
          Define the bit duration names (String[]) constant.
static java.lang.String[] BIT_NAMES
          Define the bit names (String[]) constant.
protected  Filter[] bitFilters
          Define the bit filters (Filter[]) field.
protected  java.lang.Boolean[] bitValues
          Define the bit values (Boolean[]) field.
static java.lang.String CLASS_NAME
          Defines the class name.
protected  long[] duration
          Define the duration (long[]) field.
static java.lang.String[] LONG_NAMES
           
protected  boolean running
          Define the running (boolean) field.
static int SIZE
          Define the size (int) constant.
protected  long startTime
          Define the start time (long) field.
 
Fields inherited from interface org.eclipse.soda.dk.control.profile.service.ControlProfileService
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, B1_DATA_KEY, B10_DATA_KEY, B10Expression, B10EXPRESSION_ERROR_EXTERNAL_KEY, B10EXPRESSION_EXTERNAL_KEY, B10EXPRESSION_GET_EXTERNAL_KEY, B10EXPRESSION_KEY, B10EXPRESSION_READ_EXTERNAL_KEY, B10EXPRESSION_WRITE_EXTERNAL_KEY, B11_DATA_KEY, B11Expression, B11EXPRESSION_ERROR_EXTERNAL_KEY, B11EXPRESSION_EXTERNAL_KEY, B11EXPRESSION_GET_EXTERNAL_KEY, B11EXPRESSION_KEY, B11EXPRESSION_READ_EXTERNAL_KEY, B11EXPRESSION_WRITE_EXTERNAL_KEY, B12_DATA_KEY, B12Expression, B12EXPRESSION_ERROR_EXTERNAL_KEY, B12EXPRESSION_EXTERNAL_KEY, B12EXPRESSION_GET_EXTERNAL_KEY, B12EXPRESSION_KEY, B12EXPRESSION_READ_EXTERNAL_KEY, B12EXPRESSION_WRITE_EXTERNAL_KEY, B13_DATA_KEY, B13Expression, B13EXPRESSION_ERROR_EXTERNAL_KEY, B13EXPRESSION_EXTERNAL_KEY, B13EXPRESSION_GET_EXTERNAL_KEY, B13EXPRESSION_KEY, B13EXPRESSION_READ_EXTERNAL_KEY, B13EXPRESSION_WRITE_EXTERNAL_KEY, B14_DATA_KEY, B14Expression, B14EXPRESSION_ERROR_EXTERNAL_KEY, B14EXPRESSION_EXTERNAL_KEY, B14EXPRESSION_GET_EXTERNAL_KEY, B14EXPRESSION_KEY, B14EXPRESSION_READ_EXTERNAL_KEY, B14EXPRESSION_WRITE_EXTERNAL_KEY, B15_DATA_KEY, B15Expression, B15EXPRESSION_ERROR_EXTERNAL_KEY, B15EXPRESSION_EXTERNAL_KEY, B15EXPRESSION_GET_EXTERNAL_KEY, B15EXPRESSION_KEY, B15EXPRESSION_READ_EXTERNAL_KEY, B15EXPRESSION_WRITE_EXTERNAL_KEY, B16_DATA_KEY, B16Expression, B16EXPRESSION_ERROR_EXTERNAL_KEY, B16EXPRESSION_EXTERNAL_KEY, B16EXPRESSION_GET_EXTERNAL_KEY, B16EXPRESSION_KEY, B16EXPRESSION_READ_EXTERNAL_KEY, B16EXPRESSION_WRITE_EXTERNAL_KEY, B17_DATA_KEY, B17Expression, B17EXPRESSION_ERROR_EXTERNAL_KEY, B17EXPRESSION_EXTERNAL_KEY, B17EXPRESSION_GET_EXTERNAL_KEY, B17EXPRESSION_KEY, B17EXPRESSION_READ_EXTERNAL_KEY, B17EXPRESSION_WRITE_EXTERNAL_KEY, B18_DATA_KEY, B18Expression, B18EXPRESSION_ERROR_EXTERNAL_KEY, B18EXPRESSION_EXTERNAL_KEY, B18EXPRESSION_GET_EXTERNAL_KEY, B18EXPRESSION_KEY, B18EXPRESSION_READ_EXTERNAL_KEY, B18EXPRESSION_WRITE_EXTERNAL_KEY, B19_DATA_KEY, B19Expression, B19EXPRESSION_ERROR_EXTERNAL_KEY, B19EXPRESSION_EXTERNAL_KEY, B19EXPRESSION_GET_EXTERNAL_KEY, B19EXPRESSION_KEY, B19EXPRESSION_READ_EXTERNAL_KEY, B19EXPRESSION_WRITE_EXTERNAL_KEY, B1Expression, B1EXPRESSION_ERROR_EXTERNAL_KEY, B1EXPRESSION_EXTERNAL_KEY, B1EXPRESSION_GET_EXTERNAL_KEY, B1EXPRESSION_KEY, B1EXPRESSION_READ_EXTERNAL_KEY, B1EXPRESSION_WRITE_EXTERNAL_KEY, B2_DATA_KEY, B20_DATA_KEY, B20Expression, B20EXPRESSION_ERROR_EXTERNAL_KEY, B20EXPRESSION_EXTERNAL_KEY, B20EXPRESSION_GET_EXTERNAL_KEY, B20EXPRESSION_KEY, B20EXPRESSION_READ_EXTERNAL_KEY, B20EXPRESSION_WRITE_EXTERNAL_KEY, B21_DATA_KEY, B21Expression, B21EXPRESSION_ERROR_EXTERNAL_KEY, B21EXPRESSION_EXTERNAL_KEY, B21EXPRESSION_GET_EXTERNAL_KEY, B21EXPRESSION_KEY, B21EXPRESSION_READ_EXTERNAL_KEY, B21EXPRESSION_WRITE_EXTERNAL_KEY, B22_DATA_KEY, B22Expression, B22EXPRESSION_ERROR_EXTERNAL_KEY, B22EXPRESSION_EXTERNAL_KEY, B22EXPRESSION_GET_EXTERNAL_KEY, B22EXPRESSION_KEY, B22EXPRESSION_READ_EXTERNAL_KEY, B22EXPRESSION_WRITE_EXTERNAL_KEY, B23_DATA_KEY, B23Expression, B23EXPRESSION_ERROR_EXTERNAL_KEY, B23EXPRESSION_EXTERNAL_KEY, B23EXPRESSION_GET_EXTERNAL_KEY, B23EXPRESSION_KEY, B23EXPRESSION_READ_EXTERNAL_KEY, B23EXPRESSION_WRITE_EXTERNAL_KEY, B24_DATA_KEY, B24Expression, B24EXPRESSION_ERROR_EXTERNAL_KEY, B24EXPRESSION_EXTERNAL_KEY, B24EXPRESSION_GET_EXTERNAL_KEY, B24EXPRESSION_KEY, B24EXPRESSION_READ_EXTERNAL_KEY, B24EXPRESSION_WRITE_EXTERNAL_KEY, B25_DATA_KEY, B25Expression, B25EXPRESSION_ERROR_EXTERNAL_KEY, B25EXPRESSION_EXTERNAL_KEY, B25EXPRESSION_GET_EXTERNAL_KEY, B25EXPRESSION_KEY, B25EXPRESSION_READ_EXTERNAL_KEY, B25EXPRESSION_WRITE_EXTERNAL_KEY, B26_DATA_KEY, B26Expression, B26EXPRESSION_ERROR_EXTERNAL_KEY, B26EXPRESSION_EXTERNAL_KEY, B26EXPRESSION_GET_EXTERNAL_KEY, B26EXPRESSION_KEY, B26EXPRESSION_READ_EXTERNAL_KEY, B26EXPRESSION_WRITE_EXTERNAL_KEY, B27_DATA_KEY, B27Expression, B27EXPRESSION_ERROR_EXTERNAL_KEY, B27EXPRESSION_EXTERNAL_KEY, B27EXPRESSION_GET_EXTERNAL_KEY, B27EXPRESSION_KEY, B27EXPRESSION_READ_EXTERNAL_KEY, B27EXPRESSION_WRITE_EXTERNAL_KEY, B28_DATA_KEY, B28Expression, B28EXPRESSION_ERROR_EXTERNAL_KEY, B28EXPRESSION_EXTERNAL_KEY, B28EXPRESSION_GET_EXTERNAL_KEY, B28EXPRESSION_KEY, B28EXPRESSION_READ_EXTERNAL_KEY, B28EXPRESSION_WRITE_EXTERNAL_KEY, B29_DATA_KEY, B29Expression, B29EXPRESSION_ERROR_EXTERNAL_KEY, B29EXPRESSION_EXTERNAL_KEY, B29EXPRESSION_GET_EXTERNAL_KEY, B29EXPRESSION_KEY, B29EXPRESSION_READ_EXTERNAL_KEY, B29EXPRESSION_WRITE_EXTERNAL_KEY, B2Expression, B2EXPRESSION_ERROR_EXTERNAL_KEY, B2EXPRESSION_EXTERNAL_KEY, B2EXPRESSION_GET_EXTERNAL_KEY, B2EXPRESSION_KEY, B2EXPRESSION_READ_EXTERNAL_KEY, B2EXPRESSION_WRITE_EXTERNAL_KEY, B3_DATA_KEY, B30_DATA_KEY, B30Expression, B30EXPRESSION_ERROR_EXTERNAL_KEY, B30EXPRESSION_EXTERNAL_KEY, B30EXPRESSION_GET_EXTERNAL_KEY, B30EXPRESSION_KEY, B30EXPRESSION_READ_EXTERNAL_KEY, B30EXPRESSION_WRITE_EXTERNAL_KEY, B31_DATA_KEY, B31Expression, B31EXPRESSION_ERROR_EXTERNAL_KEY, B31EXPRESSION_EXTERNAL_KEY, B31EXPRESSION_GET_EXTERNAL_KEY, B31EXPRESSION_KEY, B31EXPRESSION_READ_EXTERNAL_KEY, B31EXPRESSION_WRITE_EXTERNAL_KEY, B32_DATA_KEY, B32Expression, B32EXPRESSION_ERROR_EXTERNAL_KEY, B32EXPRESSION_EXTERNAL_KEY, B32EXPRESSION_GET_EXTERNAL_KEY, B32EXPRESSION_KEY, B32EXPRESSION_READ_EXTERNAL_KEY, B32EXPRESSION_WRITE_EXTERNAL_KEY, B3Expression, B3EXPRESSION_ERROR_EXTERNAL_KEY, B3EXPRESSION_EXTERNAL_KEY, B3EXPRESSION_GET_EXTERNAL_KEY, B3EXPRESSION_KEY, B3EXPRESSION_READ_EXTERNAL_KEY, B3EXPRESSION_WRITE_EXTERNAL_KEY, B4_DATA_KEY, B4Expression, B4EXPRESSION_ERROR_EXTERNAL_KEY, B4EXPRESSION_EXTERNAL_KEY, B4EXPRESSION_GET_EXTERNAL_KEY, B4EXPRESSION_KEY, B4EXPRESSION_READ_EXTERNAL_KEY, B4EXPRESSION_WRITE_EXTERNAL_KEY, B5_DATA_KEY, B5Expression, B5EXPRESSION_ERROR_EXTERNAL_KEY, B5EXPRESSION_EXTERNAL_KEY, B5EXPRESSION_GET_EXTERNAL_KEY, B5EXPRESSION_KEY, B5EXPRESSION_READ_EXTERNAL_KEY, B5EXPRESSION_WRITE_EXTERNAL_KEY, B6_DATA_KEY, B6Expression, B6EXPRESSION_ERROR_EXTERNAL_KEY, B6EXPRESSION_EXTERNAL_KEY, B6EXPRESSION_GET_EXTERNAL_KEY, B6EXPRESSION_KEY, B6EXPRESSION_READ_EXTERNAL_KEY, B6EXPRESSION_WRITE_EXTERNAL_KEY, B7_DATA_KEY, B7Expression, B7EXPRESSION_ERROR_EXTERNAL_KEY, B7EXPRESSION_EXTERNAL_KEY, B7EXPRESSION_GET_EXTERNAL_KEY, B7EXPRESSION_KEY, B7EXPRESSION_READ_EXTERNAL_KEY, B7EXPRESSION_WRITE_EXTERNAL_KEY, B8_DATA_KEY, B8Expression, B8EXPRESSION_ERROR_EXTERNAL_KEY, B8EXPRESSION_EXTERNAL_KEY, B8EXPRESSION_GET_EXTERNAL_KEY, B8EXPRESSION_KEY, B8EXPRESSION_READ_EXTERNAL_KEY, B8EXPRESSION_WRITE_EXTERNAL_KEY, B9_DATA_KEY, B9Expression, B9EXPRESSION_ERROR_EXTERNAL_KEY, B9EXPRESSION_EXTERNAL_KEY, B9EXPRESSION_GET_EXTERNAL_KEY, B9EXPRESSION_KEY, B9EXPRESSION_READ_EXTERNAL_KEY, B9EXPRESSION_WRITE_EXTERNAL_KEY, Bits, BITS_ERROR_EXTERNAL_KEY, BITS_EXTERNAL_KEY, BITS_GET_EXTERNAL_KEY, BITS_READ_EXTERNAL_KEY, BITS_WRITE_EXTERNAL_KEY, BitsChangeRequest, BITSCHANGEREQUEST_ERROR_EXTERNAL_KEY, BITSCHANGEREQUEST_EXECUTE_EXTERNAL_KEY, BITSCHANGEREQUEST_EXTERNAL_KEY, BitsCount, BITSCOUNT_ERROR_EXTERNAL_KEY, BITSCOUNT_EXTERNAL_KEY, BITSCOUNT_GET_EXTERNAL_KEY, BITSCOUNT_READ_EXTERNAL_KEY, Capabilities, CAPABILITIES_ERROR_EXTERNAL_KEY, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, Configuration, CONFIGURATION_ERROR_EXTERNAL_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, ControlProfile, FACTORY_SERVICE_NAME, L1_DATA_KEY, L10_DATA_KEY, L11_DATA_KEY, L12_DATA_KEY, L13_DATA_KEY, L14_DATA_KEY, L15_DATA_KEY, L16_DATA_KEY, L17_DATA_KEY, L18_DATA_KEY, L19_DATA_KEY, L2_DATA_KEY, L20_DATA_KEY, L21_DATA_KEY, L22_DATA_KEY, L23_DATA_KEY, L24_DATA_KEY, L25_DATA_KEY, L26_DATA_KEY, L27_DATA_KEY, L28_DATA_KEY, L29_DATA_KEY, L3_DATA_KEY, L30_DATA_KEY, L31_DATA_KEY, L32_DATA_KEY, L4_DATA_KEY, L5_DATA_KEY, L6_DATA_KEY, L7_DATA_KEY, L8_DATA_KEY, L9_DATA_KEY, Longs, LONGS_ERROR_EXTERNAL_KEY, LONGS_EXTERNAL_KEY, LONGS_GET_EXTERNAL_KEY, LONGS_READ_EXTERNAL_KEY, LONGS_WRITE_EXTERNAL_KEY, LongsChangeRequest, LONGSCHANGEREQUEST_ERROR_EXTERNAL_KEY, LONGSCHANGEREQUEST_EXECUTE_EXTERNAL_KEY, LONGSCHANGEREQUEST_EXTERNAL_KEY, LongsCount, LONGSCOUNT_ERROR_EXTERNAL_KEY, LONGSCOUNT_EXTERNAL_KEY, LONGSCOUNT_GET_EXTERNAL_KEY, LONGSCOUNT_READ_EXTERNAL_KEY, MANAGED_SERVICE_NAME, SERVICE_NAME, Status, STATUS_ERROR_EXTERNAL_KEY, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY
 
Constructor Summary
ControlProfile()
          Constructs a new instance of the ControlProfile class.
 
Method Summary
 void evaluate(boolean changes)
          Evalute.
 int getControlCapacity()
          Gets the control capacity.
 DeviceService getDefaultDevice()
          Gets the default DeviceService.@return DeviceService The default DeviceService.
 java.lang.String getDefaultKey()
          Gets the default key of the device.
 int getMessageCapacity()
          Gets the message capacity.
protected  void handleB10Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b10 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB11Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b11 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB12Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b12 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB13Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b13 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB14Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b14 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB15Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b15 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB16Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b16 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB17Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b17 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB18Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b18 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB19Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b19 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB1Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b1 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB20Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b20 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB21Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b21 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB22Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b22 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB23Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b23 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB24Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b24 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB25Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b25 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB26Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b26 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB27Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b27 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB28Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b28 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB29Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b29 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB2Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b2 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB30Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b30 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB31Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b31 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB32Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b32 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB3Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b3 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB4Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b4 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB5Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b5 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB6Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b6 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB7Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b7 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB8Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b8 expression with the specified source, timestamp, new value and old value parameters.
protected  void handleB9Expression(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle b9 expression with the specified source, timestamp, new value and old value parameters.
 java.lang.Object handleMethodBits(int code, Measurement measurement, java.lang.Object data)
          Handle set bits with the specified measurement and data parameters.
 java.lang.Object handleMethodBitsChangeRequest(int code, Command command, java.lang.Object data)
          Handle execute bits change request with the specified command and data parameters.
 java.lang.Object handleMethodLongs(int code, Measurement measurement, java.lang.Object data)
          Handle set states with the specified measurement and data parameters.
 java.lang.Object handleMethodLongsChangeRequest(int code, Command command, java.lang.Object data)
          Handle execute longs change request with the specified command and data parameters.
 boolean isDeviceNeeded()
           
 void measurementChanged(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
           
 int search(java.lang.String[] names, java.lang.String key)
           
 void setupCustom()
          Setup custom.
 void stop()
          Stop.
protected  void timer()
          Timer.
 void timerRun()
          Timer run.
protected  void update(boolean changes)
          Update.
 void updateBits(java.util.Map map)
          Update bits with the specified map parameter.
protected  void updateFilter(int index, java.lang.Object newValue)
          Update filter with the specified index and new value parameters.
 void updateLongs(java.util.Map map)
           
 
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 class name.

See Also:
Constant Field Values

SIZE

public static final int SIZE
Define the size (int) constant.

See Also:
Constant Field Values

BIT_NAMES

public static final java.lang.String[] BIT_NAMES
Define the bit names (String[]) constant.


LONG_NAMES

public static final java.lang.String[] LONG_NAMES

BIT_DURATION_NAMES

public static final java.lang.String[] BIT_DURATION_NAMES
Define the bit duration names (String[]) constant.


running

protected boolean running
Define the running (boolean) field.


bitFilters

protected Filter[] bitFilters
Define the bit filters (Filter[]) field.


bitValues

protected java.lang.Boolean[] bitValues
Define the bit values (Boolean[]) field.


duration

protected long[] duration
Define the duration (long[]) field.


startTime

protected long startTime
Define the start time (long) field.

Constructor Detail

ControlProfile

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

Method Detail

measurementChanged

public void measurementChanged(MeasurementService source,
                               java.lang.Object timestamp,
                               java.lang.Object newValue,
                               java.lang.Object oldValue)

getDefaultKey

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

Returns:
String The default key

getDefaultDevice

public DeviceService getDefaultDevice()
Gets the default DeviceService.@return DeviceService The default DeviceService.


isDeviceNeeded

public boolean isDeviceNeeded()

getControlCapacity

public int getControlCapacity()
Gets the control capacity.


getMessageCapacity

public int getMessageCapacity()
Gets the message capacity.

Returns:
int The message capacity.

evaluate

public void evaluate(boolean changes)
Evalute.

Parameters:
changes - The changes (boolean) parameter.

handleB10Expression

protected void handleB10Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b10 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB11Expression

protected void handleB11Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b11 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB12Expression

protected void handleB12Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b12 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB13Expression

protected void handleB13Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b13 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB14Expression

protected void handleB14Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b14 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB15Expression

protected void handleB15Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b15 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB16Expression

protected void handleB16Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b16 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB17Expression

protected void handleB17Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b17 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB18Expression

protected void handleB18Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b18 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB19Expression

protected void handleB19Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b19 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB1Expression

protected void handleB1Expression(MeasurementService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object newValue,
                                  java.lang.Object oldValue)
Handle b1 expression with the specified source, timestamp, new value and old value parameters. The source (MeasurementService) parameter. The timestamp (Object) parameter. The new value (Object) parameter. The old value (Object) parameter.


handleB20Expression

protected void handleB20Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b20 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB21Expression

protected void handleB21Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b21 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB22Expression

protected void handleB22Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b22 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB23Expression

protected void handleB23Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b23 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB24Expression

protected void handleB24Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b24 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB25Expression

protected void handleB25Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b25 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB26Expression

protected void handleB26Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b26 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB27Expression

protected void handleB27Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b27 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB28Expression

protected void handleB28Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b28 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB29Expression

protected void handleB29Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b29 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB2Expression

protected void handleB2Expression(MeasurementService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object newValue,
                                  java.lang.Object oldValue)
Handle b2 expression with the specified source, timestamp, new value and old value parameters. The source (MeasurementService) parameter. The timestamp (Object) parameter. The new value (Object) parameter. The old value (Object) parameter.


handleB30Expression

protected void handleB30Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b30 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB31Expression

protected void handleB31Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b31 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB32Expression

protected void handleB32Expression(MeasurementService source,
                                   java.lang.Object timestamp,
                                   java.lang.Object newValue,
                                   java.lang.Object oldValue)
Handle b32 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB3Expression

protected void handleB3Expression(MeasurementService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object newValue,
                                  java.lang.Object oldValue)
Handle b3 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB4Expression

protected void handleB4Expression(MeasurementService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object newValue,
                                  java.lang.Object oldValue)
Handle b4 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB5Expression

protected void handleB5Expression(MeasurementService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object newValue,
                                  java.lang.Object oldValue)
Handle b5 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB6Expression

protected void handleB6Expression(MeasurementService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object newValue,
                                  java.lang.Object oldValue)
Handle b6 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB7Expression

protected void handleB7Expression(MeasurementService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object newValue,
                                  java.lang.Object oldValue)
Handle b7 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB8Expression

protected void handleB8Expression(MeasurementService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object newValue,
                                  java.lang.Object oldValue)
Handle b8 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleB9Expression

protected void handleB9Expression(MeasurementService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object newValue,
                                  java.lang.Object oldValue)
Handle b9 expression with the specified source, timestamp, new value and old value parameters.

Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

handleMethodBitsChangeRequest

public java.lang.Object handleMethodBitsChangeRequest(int code,
                                                      Command command,
                                                      java.lang.Object data)
Handle execute bits change request with the specified command and data parameters.

Parameters:
command - The command (Command) parameter.
data - The data (Object) parameter.

handleMethodLongsChangeRequest

public java.lang.Object handleMethodLongsChangeRequest(int code,
                                                       Command command,
                                                       java.lang.Object data)
Handle execute longs change request with the specified command and data parameters.

Parameters:
command - The command (Command) parameter.
data - The data (Object) parameter.

handleMethodBits

public java.lang.Object handleMethodBits(int code,
                                         Measurement measurement,
                                         java.lang.Object data)
Handle set bits with the specified measurement and data parameters. The measurement (Measurement) parameter. The data (Object) parameter.


handleMethodLongs

public java.lang.Object handleMethodLongs(int code,
                                          Measurement measurement,
                                          java.lang.Object data)
Handle set states with the specified measurement and data parameters. The measurement (Measurement) parameter. The data (Object) parameter.


setupCustom

public void setupCustom()
Setup custom.


stop

public void stop()
Stop.


timer

protected void timer()
Timer.


timerRun

public void timerRun()
Timer run.


update

protected void update(boolean changes)
Update.

Parameters:
changes - The changes (boolean) parameter.

updateBits

public void updateBits(java.util.Map map)
                throws java.lang.RuntimeException
Update bits with the specified map parameter.

Parameters:
map - The map (Map) parameter.
Throws:
java.lang.RuntimeException - Runtime Exception.
See Also:
#handleSetBits(Measurement,Object)

search

public int search(java.lang.String[] names,
                  java.lang.String key)

updateLongs

public void updateLongs(java.util.Map map)
                 throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException

updateFilter

protected void updateFilter(int index,
                            java.lang.Object newValue)
Update filter with the specified index and new value parameters. The index (int) parameter. The new value (Object) parameter.


1.0.0

Copyright (c) 2007 IBM