2010-01-26 1.2.0

org.eclipse.soda.dk.rfid.base.profile
Class RfidBaseProfile

java.lang.Object
  extended by Profile
      extended by org.eclipse.soda.dk.rfid.base.profile.RfidBaseProfile
All Implemented Interfaces:
RfidInventoryProfileService
Direct Known Subclasses:
RfidInventoryProfile

public abstract class RfidBaseProfile
extends Profile
implements RfidInventoryProfileService

Version:
1.2.0

Field Summary
protected  java.util.Map cachedTags
          Define the cached tags (RfidMap) field.
protected  ScriptService confidenceScriptService
          Define the confidence script service (ScriptService) field.
static char[] EPC_RAW
          Define the epc raw (char[]) constant.
protected  java.util.Hashtable ldapMap
          Define the LDAP map (Dictionary) field.
static int LEVEL_ANTENNA
          Define the level antenna (int) constant.
static int LEVEL_READER
          Define the level reader (int) constant.
static int LEVEL_REPORT
          Define the level report (int) constant.
static int LEVEL_TOP
          Define the level top (int) constant.
static int REPORT_LEVEL_ANTENNAS
          Define the report level antennas (int) constant.
static int REPORT_LEVEL_DEFAULT
          Define the report level default (int) constant.
static int REPORT_LEVEL_LOW
          Define the report level minimum (int) constant.
static int REPORT_LEVEL_MAXIMUM
          Define the report level maximum (int) constant.
static int REPORT_LEVEL_MINIMUM
          Define the report level minimum (int) constant.
static int REPORT_LEVEL_NORMAL
          Define the report level normal (int) constant.
static int REPORT_LEVEL_READERS
          Define the report level readers (int) constant.
static int REPORT_LEVEL_REPORTS
          Define the report level reports (int) constant.
static int REPORT_LEVEL_SUMMARY
          Define the report level summary (int) constant.
protected  int reportLevelValue
          Define the report level value (int) field.
static java.lang.Number StandardScoreDefault
          Define the standard score default (Number) constant.
protected  java.util.Map superCache
          Define the global super cache (Map) field.
 
Fields inherited from interface org.eclipse.soda.dk.rfid.inventory.profile.service.RfidInventoryProfileService
ACCESS_PWD_DATA_KEY, AFI_DATA_KEY, AGGREGATION_FILTER_EXPRESSION_ERROR_EXTERNAL_KEY, AGGREGATION_FILTER_EXPRESSION_EXTERNAL_KEY, AGGREGATION_FILTER_EXPRESSION_GET_EXTERNAL_KEY, AGGREGATION_FILTER_EXPRESSION_KEY, AGGREGATION_FILTER_EXPRESSION_READ_EXTERNAL_KEY, AGGREGATION_FILTER_EXPRESSION_WRITE_EXTERNAL_KEY, AGGREGATION_FINAL_FILTER_EXPRESSION_ERROR_EXTERNAL_KEY, AGGREGATION_FINAL_FILTER_EXPRESSION_EXTERNAL_KEY, AGGREGATION_FINAL_FILTER_EXPRESSION_GET_EXTERNAL_KEY, AGGREGATION_FINAL_FILTER_EXPRESSION_KEY, AGGREGATION_FINAL_FILTER_EXPRESSION_READ_EXTERNAL_KEY, AGGREGATION_FINAL_FILTER_EXPRESSION_WRITE_EXTERNAL_KEY, AGGREGATION_MASK_SETTING_ERROR_EXTERNAL_KEY, AGGREGATION_MASK_SETTING_EXTERNAL_KEY, AGGREGATION_MASK_SETTING_GET_EXTERNAL_KEY, AGGREGATION_MASK_SETTING_KEY, AGGREGATION_MASK_SETTING_READ_EXTERNAL_KEY, AGGREGATION_MASK_SETTING_WRITE_EXTERNAL_KEY, AggregationFilterExpression, AggregationFinalFilterExpression, AggregationMaskSetting, ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, ANTENNA_COUNT_ERROR_EXTERNAL_KEY, ANTENNA_COUNT_EXTERNAL_KEY, ANTENNA_COUNT_GET_EXTERNAL_KEY, ANTENNA_COUNT_KEY, ANTENNA_COUNT_READ_EXTERNAL_KEY, ANTENNA_COUNT_WRITE_EXTERNAL_KEY, ANTENNA_DATA_KEY, ANTENNA_REPORT_COUNT_DATA_KEY, ANTENNA1_DATA_KEY, ANTENNA2_DATA_KEY, ANTENNA3_DATA_KEY, ANTENNA4_DATA_KEY, AntennaCount, ANTENNAS_MAP_DATA_KEY, BATTERY_CHARGE_LEVEL_DATA_KEY, BATTERY_DATA_KEY, BATTERY_REMAINING_CAPACITY_DATA_KEY, BATTERY_REMAINING_TIME_DATA_KEY, C1G2CRC_DATA_KEY, C1G2PC_DATA_KEY, Capabilities, CAPABILITIES_ERROR_EXTERNAL_KEY, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, CHANNEL_INDEX_DATA_KEY, CONFIDENCE_DATA_KEY, CONFIDENCE_SCRIPT_ERROR_EXTERNAL_KEY, CONFIDENCE_SCRIPT_EXTERNAL_KEY, CONFIDENCE_SCRIPT_GET_EXTERNAL_KEY, CONFIDENCE_SCRIPT_KEY, CONFIDENCE_SCRIPT_READ_EXTERNAL_KEY, CONFIDENCE_SCRIPT_WRITE_EXTERNAL_KEY, ConfidenceScript, Configuration, CONFIGURATION_ERROR_EXTERNAL_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, COUNT_AVERAGE_DATA_KEY, COUNT_DATA_KEY, DATA_EXTENSIONS_DATA_KEY, DATA_EXTENSIONS_ERROR_EXTERNAL_KEY, DATA_EXTENSIONS_EXTERNAL_KEY, DATA_EXTENSIONS_GET_EXTERNAL_KEY, DATA_EXTENSIONS_READ_EXTERNAL_KEY, DATA_EXTENSIONS_WRITE_EXTERNAL_KEY, DataExtensions, DUPLICATE_FILTERING_ERROR_EXTERNAL_KEY, DUPLICATE_FILTERING_EXPRESSION_ERROR_EXTERNAL_KEY, DUPLICATE_FILTERING_EXPRESSION_EXTERNAL_KEY, DUPLICATE_FILTERING_EXPRESSION_GET_EXTERNAL_KEY, DUPLICATE_FILTERING_EXPRESSION_KEY, DUPLICATE_FILTERING_EXPRESSION_READ_EXTERNAL_KEY, DUPLICATE_FILTERING_EXPRESSION_WRITE_EXTERNAL_KEY, DUPLICATE_FILTERING_EXTERNAL_KEY, DUPLICATE_FILTERING_GET_EXTERNAL_KEY, DUPLICATE_FILTERING_READ_EXTERNAL_KEY, DUPLICATE_FILTERING_WRITE_EXTERNAL_KEY, DuplicateFiltering, DuplicateFilteringExpression, DURATION_DATA_KEY, EPC_BANK_DATA_KEY, EPC_URI_DATA_KEY, KEY_DATA_KEY, KILL_PWD_DATA_KEY, LLRP_ACCESS_SPEC_ID_DATA_KEY, LLRP_AIR_PROTOCOL_TAG_DATA_DATA_KEY, LLRP_INVENTORY_PARAMETER_SPEC_ID_DATA_KEY, LLRP_OP_SPEC_NUM_WORDS_WRITTEN_DATA_KEY, LLRP_OP_SPEC_READ_DATA_DATA_KEY, LLRP_OP_SPEC_RESULT_CODE_DATA_KEY, LLRP_OP_SPEC_RESULT_DATA_KEY, LLRP_RO_SPEC_ID_DATA_KEY, LLRP_SPEC_INDEX_DATA_KEY, Metrics, METRICS_ERROR_EXTERNAL_KEY, METRICS_EXTERNAL_KEY, METRICS_GET_EXTERNAL_KEY, NSI_DATA_KEY, PARAMETER_SUBTYPE_DATA_KEY, PEAK_RSSI_AVERAGE_DATA_KEY, PEAK_RSSI_DATA_KEY, PEAK_RSSI_MAXIMUM_AVERAGE_DATA_KEY, PEAK_RSSI_MAXIMUM_DATA_KEY, PEAK_RSSI_MAXIMUM_MEDIAN_DATA_KEY, PEAK_RSSI_MAXIMUM_STANDARD_DEVIATION_DATA_KEY, PEAK_RSSI_MAXIMUM_STANDARD_SCORE_DATA_KEY, PEAK_RSSI_MINIMUM_AVERAGE_DATA_KEY, PEAK_RSSI_MINIMUM_DATA_KEY, PEAK_RSSI_MINIMUM_MEDIAN_DATA_KEY, PEAK_RSSI_MINIMUM_STANDARD_DEVIATION_DATA_KEY, PEAK_RSSI_MINIMUM_STANDARD_SCORE_DATA_KEY, PEAK_RSSI_RANGE_DATA_KEY, PEAK_RSSI_TOTAL_DATA_KEY, POSITION_DATA_KEY, READ_OPERATIONS_COUNT_ERROR_EXTERNAL_KEY, READ_OPERATIONS_COUNT_EXTERNAL_KEY, READ_OPERATIONS_COUNT_GET_EXTERNAL_KEY, READ_OPERATIONS_COUNT_KEY, READ_OPERATIONS_COUNT_READ_EXTERNAL_KEY, READ_OPERATIONS_COUNT_WRITE_EXTERNAL_KEY, READ_OPERATIONS_ERROR_EXTERNAL_KEY, READ_OPERATIONS_EXTERNAL_KEY, READ_OPERATIONS_GET_EXTERNAL_KEY, READ_OPERATIONS_KEY, READ_OPERATIONS_READ_EXTERNAL_KEY, READ_OPERATIONS_WRITE_EXTERNAL_KEY, READ_STOP_TIMEOUT, READ_STOP_TIMEOUT_DEFAULT, READ_STOP_TIMEOUT_PROPERTY, READER_DATA_KEY, READERS_MAP_DATA_KEY, ReadOperations, ReadOperationsCount, REPORTS_MAP_DATA_KEY, RfidInventoryProfile, SERVICE_DESCRIPTION, SERVICE_NAME, Status, STATUS_ERROR_EXTERNAL_KEY, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY, SUB_CYCLE_NUM_DATA_KEY, SUMMARY_DATA_KEY, SUPER_CACHE_MAXIMUM_SIZE_ERROR_EXTERNAL_KEY, SUPER_CACHE_MAXIMUM_SIZE_EXTERNAL_KEY, SUPER_CACHE_MAXIMUM_SIZE_GET_EXTERNAL_KEY, SUPER_CACHE_MAXIMUM_SIZE_KEY, SUPER_CACHE_MAXIMUM_SIZE_READ_EXTERNAL_KEY, SUPER_CACHE_MAXIMUM_SIZE_WRITE_EXTERNAL_KEY, SuperCacheMaximumSize, TAG_AGGREGATING_ERROR_EXTERNAL_KEY, TAG_AGGREGATING_EXPRESSION_ERROR_EXTERNAL_KEY, TAG_AGGREGATING_EXPRESSION_EXTERNAL_KEY, TAG_AGGREGATING_EXPRESSION_GET_EXTERNAL_KEY, TAG_AGGREGATING_EXPRESSION_KEY, TAG_AGGREGATING_EXPRESSION_READ_EXTERNAL_KEY, TAG_AGGREGATING_EXPRESSION_WRITE_EXTERNAL_KEY, TAG_AGGREGATING_EXTERNAL_KEY, TAG_AGGREGATING_GET_EXTERNAL_KEY, TAG_AGGREGATING_READ_EXTERNAL_KEY, TAG_AGGREGATING_WRITE_EXTERNAL_KEY, TAG_AGGREGATION_REPORT_ERROR_EXTERNAL_KEY, TAG_AGGREGATION_REPORT_EXTERNAL_KEY, TAG_AGGREGATION_REPORT_TRIGGER_EXTERNAL_KEY, TAG_ANTENNA_REPORT_LEVEL_ERROR_EXTERNAL_KEY, TAG_ANTENNA_REPORT_LEVEL_EXTERNAL_KEY, TAG_ANTENNA_REPORT_LEVEL_GET_EXTERNAL_KEY, TAG_ANTENNA_REPORT_LEVEL_READ_EXTERNAL_KEY, TAG_ANTENNA_REPORT_LEVEL_WRITE_EXTERNAL_KEY, TAG_COUNT_DATA_KEY, TAG_FILTER_EXPRESSION_ERROR_EXTERNAL_KEY, TAG_FILTER_EXPRESSION_EXTERNAL_KEY, TAG_FILTER_EXPRESSION_GET_EXTERNAL_KEY, TAG_FILTER_EXPRESSION_KEY, TAG_FILTER_EXPRESSION_READ_EXTERNAL_KEY, TAG_FILTER_EXPRESSION_WRITE_EXTERNAL_KEY, TAG_MASK_SETTING_ERROR_EXTERNAL_KEY, TAG_MASK_SETTING_EXTERNAL_KEY, TAG_MASK_SETTING_GET_EXTERNAL_KEY, TAG_MASK_SETTING_KEY, TAG_MASK_SETTING_READ_EXTERNAL_KEY, TAG_MASK_SETTING_WRITE_EXTERNAL_KEY, TAG_POSITION_ERROR_EXTERNAL_KEY, TAG_POSITION_EXTERNAL_KEY, TAG_POSITION_GET_EXTERNAL_KEY, TAG_POSITION_READ_EXTERNAL_KEY, TAG_POSITION_WRITE_EXTERNAL_KEY, TAG_READING_ERROR_EXTERNAL_KEY, TAG_READING_EXPRESSION_ERROR_EXTERNAL_KEY, TAG_READING_EXPRESSION_EXTERNAL_KEY, TAG_READING_EXPRESSION_GET_EXTERNAL_KEY, TAG_READING_EXPRESSION_KEY, TAG_READING_EXPRESSION_READ_EXTERNAL_KEY, TAG_READING_EXPRESSION_WRITE_EXTERNAL_KEY, TAG_READING_EXTERNAL_KEY, TAG_READING_GET_EXTERNAL_KEY, TAG_READING_READ_EXTERNAL_KEY, TAG_READING_SUB_CYCLE_DELTA, TAG_READING_SUB_CYCLE_DELTA_DEFAULT, TAG_READING_SUB_CYCLE_DELTA_PROPERTY, TAG_READING_SUB_CYCLE_INTERVAL, TAG_READING_SUB_CYCLE_INTERVAL_DEFAULT, TAG_READING_SUB_CYCLE_INTERVAL_PROPERTY, TAG_READING_SUB_CYCLE_LENGTH, TAG_READING_SUB_CYCLE_LENGTH_DEFAULT, TAG_READING_SUB_CYCLE_LENGTH_PROPERTY, TAG_READING_SUB_CYCLE_MODE, TAG_READING_SUB_CYCLE_MODE_AUTO, TAG_READING_SUB_CYCLE_MODE_DEFAULT, TAG_READING_SUB_CYCLE_MODE_PERIOD, TAG_READING_SUB_CYCLE_MODE_PROPERTY, TAG_READING_SUB_CYCLE_NUM, TAG_READING_SUB_CYCLE_NUM_DEFAULT, TAG_READING_SUB_CYCLE_NUM_PROPERTY, TAG_READING_WRITE_EXTERNAL_KEY, TAG_REPORT_ERROR_EXTERNAL_KEY, TAG_REPORT_EXTERNAL_KEY, TAG_REPORT_TRIGGER_EXTERNAL_KEY, TAG_TYPE_DATA_KEY, TagAggregating, TagAggregatingExpression, TagAggregationReport, TagAntennaReportLevel, TagFilterExpression, TagMaskSetting, TagPosition, TagReading, TAGREADING_SUBCYCLE_MODE_AUTO, TAGREADING_SUBCYCLE_MODE_NULL, TAGREADING_SUBCYCLE_MODE_PERIOD, TagReadingExpression, TagReport, TAGS_DATA_KEY, TID_BANK_DATA_KEY, TID_DATA_KEY, TIMESTAMP_FIRST_DATA_KEY, TIMESTAMP_FIRST_UPTIME_DATA_KEY, TIMESTAMP_LAST_DATA_KEY, TIMESTAMP_LAST_UPTIME_DATA_KEY, TOTAL_SUB_CYCLES_DATA_KEY, USER_BANK_DATA_KEY, USERDATA_DATA_KEY, VENDOR_EXTENSIONS_DATA_KEY, VENDOR_IDENTIFIER_DATA_KEY, VENDOR_PARAMETER_VALUE_DATA_KEY
 
Constructor Summary
protected RfidBaseProfile()
          Constructs an instance of this class.
protected RfidBaseProfile(java.lang.String capabilities, java.lang.String status, java.lang.String configuration, java.lang.String metrics)
          Constructs an instance of this class from the specified capabilities, status, configuration and metrics parameters.
protected RfidBaseProfile(java.lang.String capabilities, java.lang.String status, java.lang.String configuration, java.lang.String metrics, java.lang.String channels, java.lang.String channelChanged, java.lang.String openChannel, java.lang.String closeChannel)
          Constructs an instance of this class from the specified capabilities, status, configuration, metrics, channels, channel changed, open channel and close channel parameters.
 
Method Summary
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.
static java.util.Map buildSummary(java.util.Map tags)
          Build summary with the specified tags parameter and return the Map result.
protected  void checkSuperCache()
          Check super cache.
static int computeAntennaFactor(java.util.Map antennasMap)
          Compute antenna factor with the specified antennas map parameter and return the int result.
static java.lang.Number computeAverageRssi(int[] values, long count)
          Compute average RSSI with the specified values and count parameters and return the Number result.
static java.lang.Number computeMedianRssi(int[] values, long count)
          Compute median RSSI with the specified values and count parameters and return the Number result.
static java.lang.Number computeStandardDeviationRssi(int[] values, long count, double average)
          Compute standard deviation RSSI with the specified values, count and average parameters and return the Number result.
protected  Filter createLdapFilter(java.lang.String filterString)
          Create LDAP filter with the specified filter string parameter and return the Filter result.
 void flushTagCache()
          Flush tag cache.
 ScriptService getConfidenceScriptService()
          Gets the confidence script service (ScriptService) value.
 java.lang.String getReaderId()
          Gets the reader ID (String) value.
abstract  MeasurementService getReportLevel()
          Gets the report level (MeasurementService) value.
 int getReportLevelValue()
          Gets the tag antenna report level (int) value.
static java.lang.Number getStandardScoreDefault()
          Gets the standard score default (Number) value.
 java.util.Map getSuperCache()
          Gets the global super cache (Map) value.
abstract  MeasurementService getSuperCacheMaximumSize()
          Gets the super cache maximum size (MeasurementService) value.
 int getSuperCacheMaximumSizeValue()
          Gets the super cache maximum size value (int) value.
 void improveReportMapConstaints(java.lang.String key, java.util.Map reads, java.lang.Object timestamp, int tagAntennaReportLevelValue)
          Improve report map constraints with the specified key, reads and timestamp parameters.
static java.lang.String[] parseDelimitedByToken(java.lang.String target, java.lang.String delimiter)
          Parse delimited by token with the specified target and delimiter parameters 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 target tag configuration parameter and return the InterestMasks result.
 void setConfidenceScriptService(ScriptService confidenceScriptService)
          Sets the confidence script service value.
 void setReportLevelValue(int reportLevelValue)
          Sets the report level value value.
 void setSuperCache(java.util.Map globalSuperCache)
          Sets the global super cache value.
static byte[] toBytes(java.lang.String string)
          To bytes with the specified string parameter and return the byte[] result.
static void updateFieldTotal(java.util.Map targetMap, java.util.Map reads, java.lang.String fieldName, java.lang.Object fieldValue)
          Update field total with the specified target map, reads, field name and field value parameters.
 long updateMap(java.util.Map targetMap, java.util.Map sourceMap, int antenna, int level)
          Update map with the specified target map, reads, antenna and level parameters and return the long result.
 java.util.Map updateSuperCache(java.util.Map tagMap)
          Update global super cache with the specified tag map parameter and return the Map result.
 void updateTagInCache(java.lang.String key, java.util.Map reads, java.util.Map cache, java.lang.Object timestamp)
          Update tag in cache with the specified key, reads, cache and timestamp parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPORT_LEVEL_MINIMUM

public static final int REPORT_LEVEL_MINIMUM
Define the report level minimum (int) constant.

See Also:
Constant Field Values

LEVEL_REPORT

public static final int LEVEL_REPORT
Define the level report (int) constant.

See Also:
Constant Field Values

REPORT_LEVEL_REPORTS

public static final int REPORT_LEVEL_REPORTS
Define the report level reports (int) constant.

See Also:
Constant Field Values

StandardScoreDefault

public static final java.lang.Number StandardScoreDefault
Define the standard score default (Number) constant.


REPORT_LEVEL_LOW

public static final int REPORT_LEVEL_LOW
Define the report level minimum (int) constant.

See Also:
Constant Field Values

EPC_RAW

public static final char[] EPC_RAW
Define the epc raw (char[]) constant.


REPORT_LEVEL_MAXIMUM

public static final int REPORT_LEVEL_MAXIMUM
Define the report level maximum (int) constant.

See Also:
Constant Field Values

REPORT_LEVEL_READERS

public static final int REPORT_LEVEL_READERS
Define the report level readers (int) constant.

See Also:
Constant Field Values

REPORT_LEVEL_NORMAL

public static final int REPORT_LEVEL_NORMAL
Define the report level normal (int) constant.

See Also:
Constant Field Values

REPORT_LEVEL_ANTENNAS

public static final int REPORT_LEVEL_ANTENNAS
Define the report level antennas (int) constant.

See Also:
Constant Field Values

REPORT_LEVEL_DEFAULT

public static final int REPORT_LEVEL_DEFAULT
Define the report level default (int) constant.

See Also:
Constant Field Values

REPORT_LEVEL_SUMMARY

public static final int REPORT_LEVEL_SUMMARY
Define the report level summary (int) constant.

See Also:
Constant Field Values

LEVEL_TOP

public static final int LEVEL_TOP
Define the level top (int) constant.

See Also:
Constant Field Values

LEVEL_READER

public static final int LEVEL_READER
Define the level reader (int) constant.

See Also:
Constant Field Values

LEVEL_ANTENNA

public static final int LEVEL_ANTENNA
Define the level antenna (int) constant.

See Also:
Constant Field Values

confidenceScriptService

protected ScriptService confidenceScriptService
Define the confidence script service (ScriptService) field.


reportLevelValue

protected int reportLevelValue
Define the report level value (int) field.


cachedTags

protected java.util.Map cachedTags
Define the cached tags (RfidMap) field.


superCache

protected java.util.Map superCache
Define the global super cache (Map) field.


ldapMap

protected java.util.Hashtable ldapMap
Define the LDAP map (Dictionary) field.

Constructor Detail

RfidBaseProfile

protected RfidBaseProfile()
Constructs an instance of this class.

See Also:
RfidBaseProfile(String,String,String,String), RfidBaseProfile(String,String,String,String,String,String,String,String)

RfidBaseProfile

protected RfidBaseProfile(java.lang.String capabilities,
                          java.lang.String status,
                          java.lang.String configuration,
                          java.lang.String metrics)
Constructs an instance of this class from the specified capabilities, status, configuration and metrics parameters.

Parameters:
capabilities - The capabilities (String) parameter.
status - The status (String) parameter.
configuration - The configuration (String) parameter.
metrics - The metrics (String) parameter.
See Also:
RfidBaseProfile(), RfidBaseProfile(String,String,String,String,String,String,String,String)

RfidBaseProfile

protected RfidBaseProfile(java.lang.String capabilities,
                          java.lang.String status,
                          java.lang.String configuration,
                          java.lang.String metrics,
                          java.lang.String channels,
                          java.lang.String channelChanged,
                          java.lang.String openChannel,
                          java.lang.String closeChannel)
Constructs an instance of this class from the specified capabilities, status, configuration, metrics, channels, channel changed, open channel and close channel parameters.

Parameters:
capabilities - The capabilities (String) parameter.
status - The status (String) parameter.
configuration - The configuration (String) parameter.
metrics - The metrics (String) parameter.
channels - The channels (String) parameter.
channelChanged - The channel changed (String) parameter.
openChannel - The open channel (String) parameter.
closeChannel - The close channel (String) parameter.
Since:
1.2
See Also:
RfidBaseProfile(), RfidBaseProfile(String,String,String,String)
Method Detail

buildSummary

public static java.util.Map buildSummary(java.util.Map tags)
Build summary with the specified tags parameter and return the Map result.

Parameters:
tags - The tags (Map) parameter.
Returns:
Results of the build summary (Map) value.

computeAntennaFactor

public static int computeAntennaFactor(java.util.Map antennasMap)
Compute antenna factor with the specified antennas map parameter and return the int result.

Parameters:
antennasMap - The antennas map (Map) parameter.
Returns:
Results of the compute antenna factor (int) value.

computeAverageRssi

public static java.lang.Number computeAverageRssi(int[] values,
                                                  long count)
Compute average RSSI with the specified values and count parameters and return the Number result.

Parameters:
values - The values (int[]) parameter.
count - The count (long) parameter.
Returns:
Results of the compute average RSSI (Number) value.

computeMedianRssi

public static java.lang.Number computeMedianRssi(int[] values,
                                                 long count)
Compute median RSSI with the specified values and count parameters and return the Number result.

Parameters:
values - The values (int[]) parameter.
count - The count (long) parameter.
Returns:
Results of the compute mean RSSI (Number) value.

computeStandardDeviationRssi

public static java.lang.Number computeStandardDeviationRssi(int[] values,
                                                            long count,
                                                            double average)
Compute standard deviation RSSI with the specified values, count and average parameters and return the Number result.

Parameters:
values - The values (int[]) parameter.
count - The count (long) parameter.
average - The average (double) parameter.
Returns:
Results of the compute standard deviation RSSI (Number) value.

getStandardScoreDefault

public static java.lang.Number getStandardScoreDefault()
Gets the standard score default (Number) value.

Returns:
The standard score default (Number) value.

parseDelimitedByToken

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

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

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 target tag configuration parameter and return the InterestMasks result.

Parameters:
targetTagConfig - The target tag configuration (String) parameter.
Returns:
Results of the parse interest masks (InterestMasks) value. The target tag configuration (String) parameter.

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. Runtime Exception.
Throws:
java.lang.RuntimeException - Runtime Exception.

updateFieldTotal

public static void updateFieldTotal(java.util.Map targetMap,
                                    java.util.Map reads,
                                    java.lang.String fieldName,
                                    java.lang.Object fieldValue)
Update field total with the specified target map, reads, field name and field value parameters.

Parameters:
targetMap - The target map (Map) parameter.
reads - The reads (Map) parameter.
fieldName - The field name (String) parameter.
fieldValue - The field value (Object) parameter.

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.

checkSuperCache

protected void checkSuperCache()
Check super cache.

See Also:
getSuperCache(), setSuperCache(Map), updateSuperCache(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. Invalid Syntax Exception.
Throws:
InvalidSyntaxException - Invalid Syntax Exception.

flushTagCache

public void flushTagCache()
Flush tag cache.


getConfidenceScriptService

public ScriptService getConfidenceScriptService()
Gets the confidence script service (ScriptService) value.

Returns:
The confidence script service (ScriptService) value.
See Also:
setConfidenceScriptService(ScriptService)

getReaderId

public java.lang.String getReaderId()
Gets the reader ID (String) value.

Returns:
The reader id (String) value.

getReportLevel

public abstract MeasurementService getReportLevel()
Gets the report level (MeasurementService) value.

Returns:
The report level (MeasurementService) value.

getReportLevelValue

public int getReportLevelValue()
Gets the tag antenna report level (int) value.

Returns:
The tag antenna report level (int) value.
See Also:
setReportLevelValue(int)

getSuperCache

public java.util.Map getSuperCache()
Gets the global super cache (Map) value.

Returns:
The global super cache (Map) value.
See Also:
checkSuperCache(), setSuperCache(Map), updateSuperCache(Map)

getSuperCacheMaximumSize

public abstract MeasurementService getSuperCacheMaximumSize()
Gets the super cache maximum size (MeasurementService) value.

Returns:
The super cache maximum size (MeasurementService) value.

getSuperCacheMaximumSizeValue

public int getSuperCacheMaximumSizeValue()
Gets the super cache maximum size value (int) value.

Returns:
The super cache maximum size value (int) value.

improveReportMapConstaints

public void improveReportMapConstaints(java.lang.String key,
                                       java.util.Map reads,
                                       java.lang.Object timestamp,
                                       int tagAntennaReportLevelValue)
Improve report map constraints with the specified key, reads and timestamp parameters.

Parameters:
key - The key (String) parameter.
reads - The reads (Map) parameter.
timestamp - The time stamp (Object) parameter.
tagAntennaReportLevelValue - The tag antenna report level value (int) parameter.

setConfidenceScriptService

public void setConfidenceScriptService(ScriptService confidenceScriptService)
Sets the confidence script service value.

Parameters:
confidenceScriptService - The confidence script service (ScriptService) parameter.
See Also:
getConfidenceScriptService()

setReportLevelValue

public void setReportLevelValue(int reportLevelValue)
Sets the report level value value.

Parameters:
reportLevelValue - The report level value (int) parameter.
See Also:
getReportLevelValue()

setSuperCache

public void setSuperCache(java.util.Map globalSuperCache)
Sets the global super cache value.

Parameters:
globalSuperCache - The global super cache (Map) parameter.
See Also:
checkSuperCache(), getSuperCache(), updateSuperCache(Map)

updateMap

public long updateMap(java.util.Map targetMap,
                      java.util.Map sourceMap,
                      int antenna,
                      int level)
Update map with the specified target map, reads, antenna and level parameters and return the long result.

Parameters:
targetMap - The target map (Map) parameter.
sourceMap - The source map (Map) parameter.
antenna - The antenna (int) parameter.
level - The level (int) parameter.
Returns:
Results of the update map (long) value.

updateSuperCache

public java.util.Map updateSuperCache(java.util.Map tagMap)
Update global super cache with the specified tag map parameter and return the Map result.

Parameters:
tagMap - The tag map (Map) parameter.
Returns:
Results of the update global super cache (Map) value.
See Also:
checkSuperCache(), getSuperCache(), setSuperCache(Map)

updateTagInCache

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

Parameters:
key - The key (String) parameter.
reads - The reads (Map) parameter.
cache - The cache (Map) parameter.
timestamp - The time stamp (Object) parameter.

2010-01-26 1.2.0

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