1.0.0

org.eclipse.soda.dk.rfid.inventory.profile
Class RfidInventoryProfile

java.lang.Object
  extended by Profile
      extended by org.eclipse.soda.dk.rfid.inventory.profile.RfidInventoryProfile
All Implemented Interfaces:
RfidInventoryProfileService

public abstract class RfidInventoryProfile
extends Profile
implements RfidInventoryProfileService

Rfid Inventory Profile. The RfidInventoryProfile class implements the device service and provides the controls for the device.

The list of exported services:

Version:
1.0.0
See Also:
RfidInventoryProfileService,

See the following specification(s) for more details:


Field Summary
protected  InterestMasks aggregationInterest
          Define the aggregation interest (InterestMasks) field.
protected  MethodMeasurement aggregationMaskSetting
          Defines the AggregationMaskSetting measurement.
static java.lang.String CLASS_NAME
          Defines the class name.
static java.lang.String CONTROL_PROFILE_PREFIX
          Define the ControlProfilePrefix configuration key.
protected  java.lang.String controlProfileServiceBitsExternalKey
           
protected  java.lang.String controlProfileServiceBitsGetExternalKey
           
protected  java.lang.String controlProfileServiceLongsExternalKey
           
protected  java.lang.String controlProfileServiceLongsGetExternalKey
           
protected  MethodMeasurement dataExtensions
          Defines the DataExtensions measurement.
protected  MethodMeasurement duplicateFiltering
          Defines the DuplicateFiltering measurement.
protected  MethodMeasurement duplicateFilteringExpression
          Defines the DuplicateFilteringExpression measurement.
static java.lang.String GPIO_PROFILE_PREFIX
          Define the GpioProfilePrefix configuration key.
protected  java.lang.String gpioInput
          Define the gpio input (String) field.
protected  java.lang.String gpioProfileServiceInputExternalKey
           
protected  java.lang.String gpioProfileServiceInputGetExternalKey
           
protected  MethodMeasurement tagAggregating
          Defines the TagAggregating measurement.
protected  MethodMeasurement tagAggregatingExpression
          Defines the TagAggregatingExpression measurement.
protected  Signal tagAggregationReport
          Defines the TagAggregationReport signal.
protected  InterestMasks tagInterest
          Define the tag interest (InterestMasks) field.
protected  MethodMeasurement tagMaskSetting
          Defines the TagMaskSetting measurement.
protected  MethodMeasurement tagReading
          Defines the TagReading measurement.
protected  MethodMeasurement tagReadingExpression
          Defines the TagReadingExpression measurement.
protected  Signal tagReport
          Defines the TagReport signal.
 
Fields inherited from interface org.eclipse.soda.dk.rfid.inventory.profile.service.RfidInventoryProfileService
AggregationMaskSetting, AGGREGATIONMASKSETTING_ERROR_EXTERNAL_KEY, AGGREGATIONMASKSETTING_EXTERNAL_KEY, AGGREGATIONMASKSETTING_GET_EXTERNAL_KEY, AGGREGATIONMASKSETTING_KEY, AGGREGATIONMASKSETTING_READ_EXTERNAL_KEY, AGGREGATIONMASKSETTING_WRITE_EXTERNAL_KEY, ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, ANTENNA_DATA_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, COUNT_DATA_KEY, DataExtensions, DATAEXTENSIONS_DATA_KEY, DATAEXTENSIONS_ERROR_EXTERNAL_KEY, DATAEXTENSIONS_EXTERNAL_KEY, DATAEXTENSIONS_GET_EXTERNAL_KEY, DATAEXTENSIONS_READ_EXTERNAL_KEY, DATAEXTENSIONS_WRITE_EXTERNAL_KEY, DEFAULT_READSTOPTIMEOUT, DuplicateFiltering, DUPLICATEFILTERING_ERROR_EXTERNAL_KEY, DUPLICATEFILTERING_EXTERNAL_KEY, DUPLICATEFILTERING_GET_EXTERNAL_KEY, DUPLICATEFILTERING_READ_EXTERNAL_KEY, DUPLICATEFILTERING_WRITE_EXTERNAL_KEY, DuplicateFilteringExpression, DUPLICATEFILTERINGEXPRESSION_ERROR_EXTERNAL_KEY, DUPLICATEFILTERINGEXPRESSION_EXTERNAL_KEY, DUPLICATEFILTERINGEXPRESSION_GET_EXTERNAL_KEY, DUPLICATEFILTERINGEXPRESSION_KEY, DUPLICATEFILTERINGEXPRESSION_READ_EXTERNAL_KEY, DUPLICATEFILTERINGEXPRESSION_WRITE_EXTERNAL_KEY, READER_DATA_KEY, READSTOPTIMEOUT_KEY, RfidInventoryProfile, SERVICE_NAME, Status, STATUS_ERROR_EXTERNAL_KEY, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY, TagAggregating, TAGAGGREGATING_ERROR_EXTERNAL_KEY, TAGAGGREGATING_EXTERNAL_KEY, TAGAGGREGATING_GET_EXTERNAL_KEY, TAGAGGREGATING_READ_EXTERNAL_KEY, TAGAGGREGATING_WRITE_EXTERNAL_KEY, TagAggregatingExpression, TAGAGGREGATINGEXPRESSION_ERROR_EXTERNAL_KEY, TAGAGGREGATINGEXPRESSION_EXTERNAL_KEY, TAGAGGREGATINGEXPRESSION_GET_EXTERNAL_KEY, TAGAGGREGATINGEXPRESSION_KEY, TAGAGGREGATINGEXPRESSION_READ_EXTERNAL_KEY, TAGAGGREGATINGEXPRESSION_WRITE_EXTERNAL_KEY, TagAggregationReport, TAGAGGREGATIONREPORT_ERROR_EXTERNAL_KEY, TAGAGGREGATIONREPORT_EXTERNAL_KEY, TAGAGGREGATIONREPORT_TRIGGER_EXTERNAL_KEY, TagMaskSetting, TAGMASKSETTING_ERROR_EXTERNAL_KEY, TAGMASKSETTING_EXTERNAL_KEY, TAGMASKSETTING_GET_EXTERNAL_KEY, TAGMASKSETTING_KEY, TAGMASKSETTING_READ_EXTERNAL_KEY, TAGMASKSETTING_WRITE_EXTERNAL_KEY, TagReading, TAGREADING_ERROR_EXTERNAL_KEY, TAGREADING_EXTERNAL_KEY, TAGREADING_GET_EXTERNAL_KEY, TAGREADING_READ_EXTERNAL_KEY, TAGREADING_WRITE_EXTERNAL_KEY, TagReadingExpression, TAGREADINGEXPRESSION_ERROR_EXTERNAL_KEY, TAGREADINGEXPRESSION_EXTERNAL_KEY, TAGREADINGEXPRESSION_GET_EXTERNAL_KEY, TAGREADINGEXPRESSION_KEY, TAGREADINGEXPRESSION_READ_EXTERNAL_KEY, TAGREADINGEXPRESSION_WRITE_EXTERNAL_KEY, TagReport, TAGREPORT_ERROR_EXTERNAL_KEY, TAGREPORT_EXTERNAL_KEY, TAGREPORT_TRIGGER_EXTERNAL_KEY, TAGS_DATA_KEY, TIMESTAMPFIRST_DATA_KEY, TIMESTAMPLAST_DATA_KEY
 
Constructor Summary
RfidInventoryProfile()
          Constructs a new instance of the RfidInventoryProfile class.
 
Method Summary
 void activate()
           
protected  void addTagToCache(java.lang.String key, java.util.Map reads, java.util.Map cache)
          Add tag to cache with the specified key, reads and cache parameters.
protected  void applyDataExtensions(java.util.Map rfidData)
          Apply data extensions with the specified rfid data parameter.
protected abstract  boolean autonomousModeOff()
          Autonomous mode off.
protected abstract  boolean autonomousModeOn()
          Autonomous mode on.
protected  java.util.Map buildOuterTagMessage(java.util.Map tags)
          Build outer tag message with the specified tags and apply extensions parameters and return the Map result.
protected  java.util.Map buildTagMessage(java.lang.String key, java.util.Map reads)
          Build tag message with the specified key and reads parameters and return the Map result.
protected  Filter createLdapFilter(java.lang.String filterString)
          Create ldap filter with the specified filter string parameter and return the Filter result.
 void deactivate()
           
protected  void evaluateDuplicateFilteringLdapFilter()
          Evaluate duplicate filtering ldap filter.
protected  void evaluateLdapFilters()
          Evaluate ldap filters.
protected  void evaluateTagAggregatingLdapFilter()
          Evaluate tag aggregating ldap filter.
protected  void evaluateTagReadingLdapFilter()
          Evaluate tag reading ldap filter.
 void flushAggregatorCache()
          Flush aggregator cache.
 void flushTagCache()
          Flush tag cache.
 MeasurementService getAggregationMaskSetting()
          Defines the AggregationMaskSetting measurement.
 int getControlCapacity()
          Gets the control capacity.
 java.lang.String getControlProfilePrefix()
          Get the ControlProfilePrefix value.
 MeasurementService getDataExtensions()
          Defines the DataExtensions measurement.
 DeviceService getDefaultDevice()
          Gets the default DeviceService.@return DeviceService The default DeviceService.
 java.lang.String getDefaultKey()
          Gets the default key of the device.
 MeasurementService getDuplicateFiltering()
          Defines the DuplicateFiltering measurement.
 MeasurementService getDuplicateFilteringExpression()
          Defines the DuplicateFilteringExpression measurement.
 java.lang.String getGpioProfilePrefix()
          Get the GpioProfilePrefix value.
 int getMessageCapacity()
          Gets the message capacity.
 int getReadStopTimeout()
          Gets the value of readStopTimeout custom parameter.
 MeasurementService getTagAggregating()
          Defines the TagAggregating measurement.
 MeasurementService getTagAggregatingExpression()
          Defines the TagAggregatingExpression measurement.
 SignalService getTagAggregationReport()
          Defines the TagAggregationReport signal.
 MeasurementService getTagMaskSetting()
          Defines the TagMaskSetting measurement.
 MeasurementService getTagReading()
          Defines the TagReading measurement.
 MeasurementService getTagReadingExpression()
          Defines the TagReadingExpression measurement.
protected  boolean getTagReadingValue()
           
 SignalService getTagReport()
          Defines the TagReport signal.
protected  void handleControlProfileServiceBits(java.lang.String externalKey, java.util.Dictionary data)
          Handle control profile service bits with the specified external key and data parameters.
protected  void handleControlProfileServiceLongs(java.lang.String externalKey, java.util.Dictionary data)
          Handle control profile service longs with the specified external key and data parameters.
protected  void handleDuplicateFiltering(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle duplicate filtering with the specified source, timestamp, new value and old value parameters.
protected  void handleGpioProfileServiceInput(java.lang.String externalKey, java.util.Dictionary data)
          Handle gpio input with the specified data parameter.
 java.lang.Object handleMethodAggregationMaskSetting(int code, Measurement measurement, java.lang.Object data)
           
 java.lang.Object handleMethodDataExtensions(int code, Measurement measurement, java.lang.Object data)
           
 java.lang.Object handleMethodDuplicateFiltering(int code, Measurement measurement, java.lang.Object data)
           
 java.lang.Object handleMethodDuplicateFilteringExpression(int code, Measurement measurement, java.lang.Object data)
           
 java.lang.Object handleMethodTagAggregating(int code, Measurement measurement, java.lang.Object data)
           
 java.lang.Object handleMethodTagAggregatingExpression(int code, Measurement measurement, java.lang.Object data)
           
 java.lang.Object handleMethodTagMaskSetting(int code, Measurement measurement, java.lang.Object data)
           
 java.lang.Object handleMethodTagReading(int code, Measurement measurement, java.lang.Object data)
           
 java.lang.Object handleMethodTagReadingExpression(int code, Measurement measurement, java.lang.Object data)
           
protected  void handleSetAggregationMaskSetting(Measurement measurement, java.lang.Object data)
           
protected  void handleSetDataExtensions(Measurement measurement, java.lang.Object newValue)
           
protected  void handleSetDuplicateFilteringExpression(Measurement measurement, java.lang.Object data)
           
protected  void handleSetTagAggregatingExpression(Measurement measurement, java.lang.Object data)
           
protected  void handleSetTagMaskSetting(Measurement measurement, java.lang.Object data)
           
protected  void handleSetTagReadingExpression(Measurement measurement, java.lang.Object data)
           
protected  void handleTagAggregating(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle tag aggregating with the specified source, timestamp, new value and old value parameters.
 void handleTagReading(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
          Handle tag reading with the specified source, timestamp, new value and old value parameters.
 boolean isDeviceNeeded()
           
protected  boolean isDuplicateTag(java.lang.String key)
          Is duplicate tag with the specified key parameter and return the boolean result.
 void measurementChanged(MeasurementService source, java.lang.Object timestamp, java.lang.Object newValue, java.lang.Object oldValue)
           
protected  java.util.Map mergeMapOverMap(java.util.Map additionalValues, java.util.Map existingValues)
          Merge map over map with the specified additional values and existing values parameters and return the Map result.
 void notificationReceived(java.lang.String externalKey, java.util.Dictionary data)
           
protected  void notifyReadStop()
           
 void notifyTagAggregation()
          Notify tag aggregation.
 void notifyTagRead(java.util.Map tags)
           
 void notifyTagRead(java.lang.String key, java.util.Map reads)
          Notify tag read with the specified key and reads parameters.
static java.lang.String[] parseDelimitedByToken(java.lang.String target, java.lang.String delimiter)
          Parse comma delimited with the specified comma delimited parameter and return the String[] result.
static byte[] parseHexSpaceDelimited(java.lang.String spaceDelimitedHex)
          Parse hex space delimited with the specified space delimited hex parameter and return the byte[] result.
static InterestMasks parseInterestMasks(java.lang.String targetTagConfig)
          Parse interest masks with the specified comma delimited pattern and comma delimited care parameters and return the InterestMasks result.
protected  void setFilterDuplicatesLdapFilter(Filter filterDuplicatesLdapFilter)
          Sets the filter duplicates ldap filter value.
 void setReadStopTimeout(int readStopTimeout)
          Sets the value of readStopTimeout custom parameter.
protected  void setTagAggregatingLdapFilter(Filter tagAggregatingLdapFilter)
          Sets the tag aggregating ldap filter value.
protected  void setTagReadingLdapFilter(Filter tagReadingLdapFilter)
          Sets the tag reading ldap filter value.
 void setup()
           
 void setupNotification()
           
static byte[] toBytes(java.lang.String string)
          To bytes with the specified string parameter and return the byte[] result.
protected  void updateTagInCache(java.lang.String key, java.util.Map reads, java.util.Map cache)
          Update tag in cache with the specified key, reads and cache parameters.
 
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

GPIO_PROFILE_PREFIX

public static final java.lang.String GPIO_PROFILE_PREFIX
Define the GpioProfilePrefix configuration key.

See Also:
Constant Field Values

gpioProfileServiceInputExternalKey

protected java.lang.String gpioProfileServiceInputExternalKey

gpioProfileServiceInputGetExternalKey

protected java.lang.String gpioProfileServiceInputGetExternalKey

CONTROL_PROFILE_PREFIX

public static final java.lang.String CONTROL_PROFILE_PREFIX
Define the ControlProfilePrefix configuration key.

See Also:
Constant Field Values

controlProfileServiceBitsExternalKey

protected java.lang.String controlProfileServiceBitsExternalKey

controlProfileServiceBitsGetExternalKey

protected java.lang.String controlProfileServiceBitsGetExternalKey

controlProfileServiceLongsExternalKey

protected java.lang.String controlProfileServiceLongsExternalKey

controlProfileServiceLongsGetExternalKey

protected java.lang.String controlProfileServiceLongsGetExternalKey

tagReadingExpression

protected final MethodMeasurement tagReadingExpression
Defines the TagReadingExpression measurement.

See Also:
handleMethodTagReadingExpression(int, Measurement, java.lang.Object)

tagReading

protected final MethodMeasurement tagReading
Defines the TagReading measurement.

See Also:
handleMethodTagReading(int, Measurement, java.lang.Object)

tagAggregatingExpression

protected final MethodMeasurement tagAggregatingExpression
Defines the TagAggregatingExpression measurement.

See Also:
handleMethodTagAggregatingExpression(int, Measurement, java.lang.Object)

tagAggregating

protected final MethodMeasurement tagAggregating
Defines the TagAggregating measurement.

See Also:
handleMethodTagAggregating(int, Measurement, java.lang.Object)

tagMaskSetting

protected final MethodMeasurement tagMaskSetting
Defines the TagMaskSetting measurement.

See Also:
handleMethodTagMaskSetting(int, Measurement, java.lang.Object)

duplicateFilteringExpression

protected final MethodMeasurement duplicateFilteringExpression
Defines the DuplicateFilteringExpression measurement.

See Also:
handleMethodDuplicateFilteringExpression(int, Measurement, java.lang.Object)

duplicateFiltering

protected final MethodMeasurement duplicateFiltering
Defines the DuplicateFiltering measurement.

See Also:
handleMethodDuplicateFiltering(int, Measurement, java.lang.Object)

aggregationMaskSetting

protected final MethodMeasurement aggregationMaskSetting
Defines the AggregationMaskSetting measurement.

See Also:
handleMethodAggregationMaskSetting(int, Measurement, java.lang.Object)

dataExtensions

protected final MethodMeasurement dataExtensions
Defines the DataExtensions measurement.

See Also:
handleMethodDataExtensions(int, Measurement, java.lang.Object)

tagReport

protected final Signal tagReport
Defines the TagReport signal.


tagAggregationReport

protected final Signal tagAggregationReport
Defines the TagAggregationReport signal.


gpioInput

protected java.lang.String gpioInput
Define the gpio input (String) field.


tagInterest

protected InterestMasks tagInterest
Define the tag interest (InterestMasks) field.


aggregationInterest

protected InterestMasks aggregationInterest
Define the aggregation interest (InterestMasks) field.

Constructor Detail

RfidInventoryProfile

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

Method Detail

getGpioProfilePrefix

public java.lang.String getGpioProfilePrefix()
Get the GpioProfilePrefix value.


getControlProfilePrefix

public java.lang.String getControlProfilePrefix()
Get the ControlProfilePrefix value.


notificationReceived

public void notificationReceived(java.lang.String externalKey,
                                 java.util.Dictionary data)

setupNotification

public void setupNotification()

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.

getTagReadingExpression

public MeasurementService getTagReadingExpression()
Defines the TagReadingExpression measurement.

See Also:
handleMethodTagReadingExpression(int, Measurement, java.lang.Object)

getTagReading

public MeasurementService getTagReading()
Defines the TagReading measurement.

See Also:
handleMethodTagReading(int, Measurement, java.lang.Object)

getTagAggregatingExpression

public MeasurementService getTagAggregatingExpression()
Defines the TagAggregatingExpression measurement.

See Also:
handleMethodTagAggregatingExpression(int, Measurement, java.lang.Object)

getTagAggregating

public MeasurementService getTagAggregating()
Defines the TagAggregating measurement.

See Also:
handleMethodTagAggregating(int, Measurement, java.lang.Object)

getTagMaskSetting

public MeasurementService getTagMaskSetting()
Defines the TagMaskSetting measurement.

See Also:
handleMethodTagMaskSetting(int, Measurement, java.lang.Object)

getDuplicateFilteringExpression

public MeasurementService getDuplicateFilteringExpression()
Defines the DuplicateFilteringExpression measurement.

See Also:
handleMethodDuplicateFilteringExpression(int, Measurement, java.lang.Object)

getDuplicateFiltering

public MeasurementService getDuplicateFiltering()
Defines the DuplicateFiltering measurement.

See Also:
handleMethodDuplicateFiltering(int, Measurement, java.lang.Object)

getAggregationMaskSetting

public MeasurementService getAggregationMaskSetting()
Defines the AggregationMaskSetting measurement.

See Also:
handleMethodAggregationMaskSetting(int, Measurement, java.lang.Object)

getDataExtensions

public MeasurementService getDataExtensions()
Defines the DataExtensions measurement.

See Also:
handleMethodDataExtensions(int, Measurement, java.lang.Object)

getTagReport

public SignalService getTagReport()
Defines the TagReport signal.


getTagAggregationReport

public SignalService getTagAggregationReport()
Defines the TagAggregationReport signal.


setReadStopTimeout

public void setReadStopTimeout(int readStopTimeout)
Sets the value of readStopTimeout custom parameter.

See Also:
getReadStopTimeout()

getReadStopTimeout

public int getReadStopTimeout()
Gets the value of readStopTimeout custom parameter.

See Also:
setReadStopTimeout(int)

setup

public void setup()
See Also:
org.eclipse.soda.dk.device.Container#setup()

getTagReadingValue

protected boolean getTagReadingValue()

parseDelimitedByToken

public static java.lang.String[] parseDelimitedByToken(java.lang.String target,
                                                       java.lang.String delimiter)
Parse comma delimited with the specified comma delimited parameter and return the String[] result.

Parameters:
commaDelimited - The comma delimited (String) parameter.
target - The target (String) parameter.
delimiter - The delimiter (String) parameter.
Returns:
Results of the parse comma delimited (String[]) value.

parseHexSpaceDelimited

public static byte[] parseHexSpaceDelimited(java.lang.String spaceDelimitedHex)
Parse hex space delimited with the specified space delimited hex parameter and return the byte[] result.

Parameters:
spaceDelimitedHex - The space delimited hex (String) parameter.
Returns:
Results of the parse hex space delimited (byte[]) value.

parseInterestMasks

public static InterestMasks parseInterestMasks(java.lang.String targetTagConfig)
Parse interest masks with the specified comma delimited pattern and comma delimited care parameters and return the InterestMasks result.

Parameters:
commaDelimitedPattern - The comma delimited pattern (String) parameter.
commaDelimitedCare - The comma delimited care (String) parameter.
targetTagConfig - The target tag config (String) parameter.
Returns:
Results of the parse interest masks (InterestMasks) value.

toBytes

public static byte[] toBytes(java.lang.String string)
                      throws java.lang.RuntimeException
To bytes with the specified string parameter and return the byte[] result.

Parameters:
string - The string (String) parameter.
Returns:
Results of the to bytes (byte[]) value.
Throws:
java.lang.RuntimeException - Runtime Exception.

addTagToCache

protected void addTagToCache(java.lang.String key,
                             java.util.Map reads,
                             java.util.Map cache)
Add tag to cache with the specified key, reads and cache parameters.

Parameters:
key - The key (String) parameter.
reads - The reads (Map) parameter.
cache - The cache (Map) parameter.

applyDataExtensions

protected void applyDataExtensions(java.util.Map rfidData)
Apply data extensions with the specified rfid data parameter.

Parameters:
rfidData - The rfid data (Map) parameter.
See Also:
getDataExtensions(), handleSetDataExtensions(Measurement,Object)

autonomousModeOff

protected abstract boolean autonomousModeOff()
Autonomous mode off.


autonomousModeOn

protected abstract boolean autonomousModeOn()
Autonomous mode on.


buildOuterTagMessage

protected java.util.Map buildOuterTagMessage(java.util.Map tags)
Build outer tag message with the specified tags and apply extensions parameters and return the Map result.

Parameters:
tags - The tags (Map) parameter.
applyExtensions - The apply extensions (boolean) parameter.
Returns:
Results of the build outer tag message (Map) value.

buildTagMessage

protected java.util.Map buildTagMessage(java.lang.String key,
                                        java.util.Map reads)
Build tag message with the specified key and reads parameters and return the Map result.

Parameters:
key - The key (String) parameter.
reads - The reads (Map) parameter.
Returns:
Results of the build tag message (Map) value.
See Also:
buildOuterTagMessage(Map)

createLdapFilter

protected Filter createLdapFilter(java.lang.String filterString)
                           throws InvalidSyntaxException
Create ldap filter with the specified filter string parameter and return the Filter result.

Parameters:
filterString - The filter string (String) parameter.
Returns:
Results of the create ldap filter (Filter) value.
Throws:
InvalidSyntaxException - Invalid Syntax Exception.
See Also:
evaluateDuplicateFilteringLdapFilter(), evaluateTagAggregatingLdapFilter(), evaluateTagReadingLdapFilter(), setFilterDuplicatesLdapFilter(Filter), setTagAggregatingLdapFilter(Filter), setTagReadingLdapFilter(Filter)

evaluateDuplicateFilteringLdapFilter

protected void evaluateDuplicateFilteringLdapFilter()
Evaluate duplicate filtering ldap filter.


evaluateLdapFilters

protected void evaluateLdapFilters()
                            throws java.lang.InterruptedException
Evaluate ldap filters.

Throws:
java.lang.InterruptedException

notifyReadStop

protected void notifyReadStop()

deactivate

public void deactivate()

evaluateTagAggregatingLdapFilter

protected void evaluateTagAggregatingLdapFilter()
Evaluate tag aggregating ldap filter.

See Also:
setTagAggregatingLdapFilter(Filter)

evaluateTagReadingLdapFilter

protected void evaluateTagReadingLdapFilter()
Evaluate tag reading ldap filter.

See Also:
setTagReadingLdapFilter(Filter)

flushAggregatorCache

public void flushAggregatorCache()
Flush aggregator cache.


flushTagCache

public void flushTagCache()
Flush tag cache.


handleSetAggregationMaskSetting

protected void handleSetAggregationMaskSetting(Measurement measurement,
                                               java.lang.Object data)

handleMethodAggregationMaskSetting

public java.lang.Object handleMethodAggregationMaskSetting(int code,
                                                           Measurement measurement,
                                                           java.lang.Object data)

handleControlProfileServiceBits

protected void handleControlProfileServiceBits(java.lang.String externalKey,
                                               java.util.Dictionary data)
Handle control profile service bits with the specified external key and data parameters.

Parameters:
externalKey - The external key (String) parameter.
data - The data (Dictionary) parameter.

handleControlProfileServiceLongs

protected void handleControlProfileServiceLongs(java.lang.String externalKey,
                                                java.util.Dictionary data)
Handle control profile service longs with the specified external key and data parameters.

Parameters:
externalKey - The external key (String) parameter.
data - The data (Dictionary) parameter.

handleDuplicateFiltering

protected void handleDuplicateFiltering(MeasurementService source,
                                        java.lang.Object timestamp,
                                        java.lang.Object newValue,
                                        java.lang.Object oldValue)
Handle duplicate filtering 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.
See Also:
getDuplicateFiltering(), #handleSetDuplicateFiltering(Measurement,Object)

handleMethodDuplicateFilteringExpression

public java.lang.Object handleMethodDuplicateFilteringExpression(int code,
                                                                 Measurement measurement,
                                                                 java.lang.Object data)

handleSetDuplicateFilteringExpression

protected void handleSetDuplicateFilteringExpression(Measurement measurement,
                                                     java.lang.Object data)

handleGpioProfileServiceInput

protected void handleGpioProfileServiceInput(java.lang.String externalKey,
                                             java.util.Dictionary data)
Handle gpio input with the specified data parameter.

Parameters:
data - The data (Dictionary) parameter.
externalKey - The external key (String) parameter.

handleMethodDataExtensions

public java.lang.Object handleMethodDataExtensions(int code,
                                                   Measurement measurement,
                                                   java.lang.Object data)

handleSetDataExtensions

protected void handleSetDataExtensions(Measurement measurement,
                                       java.lang.Object newValue)

handleMethodDuplicateFiltering

public java.lang.Object handleMethodDuplicateFiltering(int code,
                                                       Measurement measurement,
                                                       java.lang.Object data)

handleMethodTagAggregating

public java.lang.Object handleMethodTagAggregating(int code,
                                                   Measurement measurement,
                                                   java.lang.Object data)

handleMethodTagReading

public java.lang.Object handleMethodTagReading(int code,
                                               Measurement measurement,
                                               java.lang.Object data)

handleTagAggregating

protected void handleTagAggregating(MeasurementService source,
                                    java.lang.Object timestamp,
                                    java.lang.Object newValue,
                                    java.lang.Object oldValue)
Handle tag aggregating 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.
See Also:
getTagAggregating(), #handleSetTagAggregating(Measurement,Object)

handleMethodTagAggregatingExpression

public java.lang.Object handleMethodTagAggregatingExpression(int code,
                                                             Measurement measurement,
                                                             java.lang.Object data)

handleSetTagAggregatingExpression

protected void handleSetTagAggregatingExpression(Measurement measurement,
                                                 java.lang.Object data)

handleMethodTagMaskSetting

public java.lang.Object handleMethodTagMaskSetting(int code,
                                                   Measurement measurement,
                                                   java.lang.Object data)

handleSetTagMaskSetting

protected void handleSetTagMaskSetting(Measurement measurement,
                                       java.lang.Object data)

handleTagReading

public void handleTagReading(MeasurementService source,
                             java.lang.Object timestamp,
                             java.lang.Object newValue,
                             java.lang.Object oldValue)
Handle tag reading 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.
See Also:
getTagReading(), #handleSetTagReading(Measurement,Object)

handleMethodTagReadingExpression

public java.lang.Object handleMethodTagReadingExpression(int code,
                                                         Measurement measurement,
                                                         java.lang.Object data)

handleSetTagReadingExpression

protected void handleSetTagReadingExpression(Measurement measurement,
                                             java.lang.Object data)

isDuplicateTag

protected boolean isDuplicateTag(java.lang.String key)
Is duplicate tag with the specified key parameter and return the boolean result.

Parameters:
key - The key (String) parameter.
Returns:
Results of the is duplicate tag (boolean) value.

mergeMapOverMap

protected java.util.Map mergeMapOverMap(java.util.Map additionalValues,
                                        java.util.Map existingValues)
Merge map over map with the specified additional values and existing values parameters and return the Map result.

Parameters:
additionalValues - The additional values (Map) parameter.
existingValues - The existing values (Map) parameter.
Returns:
Results of the merge map over map (Map) value.

notifyTagAggregation

public void notifyTagAggregation()
Notify tag aggregation.


notifyTagRead

public void notifyTagRead(java.lang.String key,
                          java.util.Map reads)
Notify tag read with the specified key and reads parameters.

Parameters:
key - The key (RfidService) parameter.
reads - The reads (RfidReads) parameter.

notifyTagRead

public void notifyTagRead(java.util.Map tags)

setFilterDuplicatesLdapFilter

protected void setFilterDuplicatesLdapFilter(Filter filterDuplicatesLdapFilter)
Sets the filter duplicates ldap filter value.

Parameters:
filterDuplicatesLdapFilter - The filter duplicates ldap filter (Filter) parameter.

setTagAggregatingLdapFilter

protected void setTagAggregatingLdapFilter(Filter tagAggregatingLdapFilter)
Sets the tag aggregating ldap filter value.

Parameters:
tagAggregatingLdapFilter - The tag aggregating ldap filter (Filter) parameter.
See Also:
evaluateTagAggregatingLdapFilter()

setTagReadingLdapFilter

protected void setTagReadingLdapFilter(Filter tagReadingLdapFilter)
Sets the tag reading ldap filter value.

Parameters:
tagReadingLdapFilter - The tag reading ldap filter (Filter) parameter.
See Also:
evaluateTagReadingLdapFilter()

updateTagInCache

protected void updateTagInCache(java.lang.String key,
                                java.util.Map reads,
                                java.util.Map cache)
Update tag in cache with the specified key, reads and cache parameters.

Parameters:
key - The key (String) parameter.
reads - The reads (Map) parameter.
cache - The cache (Map) parameter.

activate

public void activate()

1.0.0

Copyright (c) 2007 IBM