|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectProfile
org.eclipse.soda.dk.rfid.inventory.profile.RfidInventoryProfile
public abstract class RfidInventoryProfile
Rfid Inventory Profile. The RfidInventoryProfile class implements the device service and provides the controls for the device.
The list of exported services:
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. |
| 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 |
|---|
public static final java.lang.String CLASS_NAME
public static final java.lang.String GPIO_PROFILE_PREFIX
protected java.lang.String gpioProfileServiceInputExternalKey
protected java.lang.String gpioProfileServiceInputGetExternalKey
public static final java.lang.String CONTROL_PROFILE_PREFIX
protected java.lang.String controlProfileServiceBitsExternalKey
protected java.lang.String controlProfileServiceBitsGetExternalKey
protected java.lang.String controlProfileServiceLongsExternalKey
protected java.lang.String controlProfileServiceLongsGetExternalKey
protected final MethodMeasurement tagReadingExpression
handleMethodTagReadingExpression(int, Measurement, java.lang.Object)protected final MethodMeasurement tagReading
handleMethodTagReading(int, Measurement, java.lang.Object)protected final MethodMeasurement tagAggregatingExpression
handleMethodTagAggregatingExpression(int, Measurement, java.lang.Object)protected final MethodMeasurement tagAggregating
handleMethodTagAggregating(int, Measurement, java.lang.Object)protected final MethodMeasurement tagMaskSetting
handleMethodTagMaskSetting(int, Measurement, java.lang.Object)protected final MethodMeasurement duplicateFilteringExpression
handleMethodDuplicateFilteringExpression(int, Measurement, java.lang.Object)protected final MethodMeasurement duplicateFiltering
handleMethodDuplicateFiltering(int, Measurement, java.lang.Object)protected final MethodMeasurement aggregationMaskSetting
handleMethodAggregationMaskSetting(int, Measurement, java.lang.Object)protected final MethodMeasurement dataExtensions
handleMethodDataExtensions(int, Measurement, java.lang.Object)protected final Signal tagReport
protected final Signal tagAggregationReport
protected java.lang.String gpioInput
protected InterestMasks tagInterest
protected InterestMasks aggregationInterest
| Constructor Detail |
|---|
public RfidInventoryProfile()
| Method Detail |
|---|
public java.lang.String getGpioProfilePrefix()
public java.lang.String getControlProfilePrefix()
public void notificationReceived(java.lang.String externalKey,
java.util.Dictionary data)
public void setupNotification()
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
public java.lang.String getDefaultKey()
public DeviceService getDefaultDevice()
public boolean isDeviceNeeded()
public int getControlCapacity()
public int getMessageCapacity()
public MeasurementService getTagReadingExpression()
handleMethodTagReadingExpression(int, Measurement, java.lang.Object)public MeasurementService getTagReading()
handleMethodTagReading(int, Measurement, java.lang.Object)public MeasurementService getTagAggregatingExpression()
handleMethodTagAggregatingExpression(int, Measurement, java.lang.Object)public MeasurementService getTagAggregating()
handleMethodTagAggregating(int, Measurement, java.lang.Object)public MeasurementService getTagMaskSetting()
handleMethodTagMaskSetting(int, Measurement, java.lang.Object)public MeasurementService getDuplicateFilteringExpression()
handleMethodDuplicateFilteringExpression(int, Measurement, java.lang.Object)public MeasurementService getDuplicateFiltering()
handleMethodDuplicateFiltering(int, Measurement, java.lang.Object)public MeasurementService getAggregationMaskSetting()
handleMethodAggregationMaskSetting(int, Measurement, java.lang.Object)public MeasurementService getDataExtensions()
handleMethodDataExtensions(int, Measurement, java.lang.Object)public SignalService getTagReport()
public SignalService getTagAggregationReport()
public void setReadStopTimeout(int readStopTimeout)
getReadStopTimeout()public int getReadStopTimeout()
setReadStopTimeout(int)public void setup()
org.eclipse.soda.dk.device.Container#setup()protected boolean getTagReadingValue()
public static java.lang.String[] parseDelimitedByToken(java.lang.String target,
java.lang.String delimiter)
commaDelimited - The comma delimited (String) parameter.target - The target (String) parameter.delimiter - The delimiter (String) parameter.
String[])
value.public static byte[] parseHexSpaceDelimited(java.lang.String spaceDelimitedHex)
spaceDelimitedHex - The space delimited hex (String) parameter.
byte[])
value.public static InterestMasks parseInterestMasks(java.lang.String targetTagConfig)
commaDelimitedPattern - The comma delimited pattern (String)
parameter.commaDelimitedCare - The comma delimited care (String) parameter.targetTagConfig - The target tag config (String) parameter.
InterestMasks)
value.
public static byte[] toBytes(java.lang.String string)
throws java.lang.RuntimeException
string - The string (String) parameter.
byte[]) value.
java.lang.RuntimeException - Runtime Exception.
protected void addTagToCache(java.lang.String key,
java.util.Map reads,
java.util.Map cache)
key - The key (String) parameter.reads - The reads (Map) parameter.cache - The cache (Map) parameter.protected void applyDataExtensions(java.util.Map rfidData)
rfidData - The rfid data (Map) parameter.getDataExtensions(),
handleSetDataExtensions(Measurement,Object)protected abstract boolean autonomousModeOff()
protected abstract boolean autonomousModeOn()
protected java.util.Map buildOuterTagMessage(java.util.Map tags)
tags - The tags (Map) parameter.applyExtensions - The apply extensions (boolean) parameter.
Map)
value.
protected java.util.Map buildTagMessage(java.lang.String key,
java.util.Map reads)
key - The key (String) parameter.reads - The reads (Map) parameter.
Map) value.buildOuterTagMessage(Map)
protected Filter createLdapFilter(java.lang.String filterString)
throws InvalidSyntaxException
filterString - The filter string (String) parameter.
Filter)
value.
InvalidSyntaxException - Invalid Syntax Exception.evaluateDuplicateFilteringLdapFilter(),
evaluateTagAggregatingLdapFilter(),
evaluateTagReadingLdapFilter(),
setFilterDuplicatesLdapFilter(Filter),
setTagAggregatingLdapFilter(Filter),
setTagReadingLdapFilter(Filter)protected void evaluateDuplicateFilteringLdapFilter()
protected void evaluateLdapFilters()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void notifyReadStop()
public void deactivate()
protected void evaluateTagAggregatingLdapFilter()
setTagAggregatingLdapFilter(Filter)protected void evaluateTagReadingLdapFilter()
setTagReadingLdapFilter(Filter)public void flushAggregatorCache()
public void flushTagCache()
protected void handleSetAggregationMaskSetting(Measurement measurement,
java.lang.Object data)
public java.lang.Object handleMethodAggregationMaskSetting(int code,
Measurement measurement,
java.lang.Object data)
protected void handleControlProfileServiceBits(java.lang.String externalKey,
java.util.Dictionary data)
externalKey - The external key (String) parameter.data - The data (Dictionary) parameter.
protected void handleControlProfileServiceLongs(java.lang.String externalKey,
java.util.Dictionary data)
externalKey - The external key (String) parameter.data - The data (Dictionary) parameter.
protected void handleDuplicateFiltering(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
source - The source (MeasurementService) parameter.timestamp - The timestamp (Object) parameter.newValue - The new value (Object) parameter.oldValue - The old value (Object) parameter.getDuplicateFiltering(),
#handleSetDuplicateFiltering(Measurement,Object)
public java.lang.Object handleMethodDuplicateFilteringExpression(int code,
Measurement measurement,
java.lang.Object data)
protected void handleSetDuplicateFilteringExpression(Measurement measurement,
java.lang.Object data)
protected void handleGpioProfileServiceInput(java.lang.String externalKey,
java.util.Dictionary data)
data - The data (Dictionary) parameter.externalKey - The external key (String) parameter.
public java.lang.Object handleMethodDataExtensions(int code,
Measurement measurement,
java.lang.Object data)
protected void handleSetDataExtensions(Measurement measurement,
java.lang.Object newValue)
public java.lang.Object handleMethodDuplicateFiltering(int code,
Measurement measurement,
java.lang.Object data)
public java.lang.Object handleMethodTagAggregating(int code,
Measurement measurement,
java.lang.Object data)
public java.lang.Object handleMethodTagReading(int code,
Measurement measurement,
java.lang.Object data)
protected void handleTagAggregating(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
source - The source (MeasurementService) parameter.timestamp - The timestamp (Object) parameter.newValue - The new value (Object) parameter.oldValue - The old value (Object) parameter.getTagAggregating(),
#handleSetTagAggregating(Measurement,Object)
public java.lang.Object handleMethodTagAggregatingExpression(int code,
Measurement measurement,
java.lang.Object data)
protected void handleSetTagAggregatingExpression(Measurement measurement,
java.lang.Object data)
public java.lang.Object handleMethodTagMaskSetting(int code,
Measurement measurement,
java.lang.Object data)
protected void handleSetTagMaskSetting(Measurement measurement,
java.lang.Object data)
public void handleTagReading(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
source - The source (MeasurementService) parameter.timestamp - The timestamp (Object) parameter.newValue - The new value (Object) parameter.oldValue - The old value (Object) parameter.getTagReading(),
#handleSetTagReading(Measurement,Object)
public java.lang.Object handleMethodTagReadingExpression(int code,
Measurement measurement,
java.lang.Object data)
protected void handleSetTagReadingExpression(Measurement measurement,
java.lang.Object data)
protected boolean isDuplicateTag(java.lang.String key)
key - The key (String) parameter.
boolean) value.
protected java.util.Map mergeMapOverMap(java.util.Map additionalValues,
java.util.Map existingValues)
additionalValues - The additional values (Map) parameter.existingValues - The existing values (Map) parameter.
Map) value.public void notifyTagAggregation()
public void notifyTagRead(java.lang.String key,
java.util.Map reads)
key - The key (RfidService) parameter.reads - The reads (RfidReads) parameter.public void notifyTagRead(java.util.Map tags)
protected void setFilterDuplicatesLdapFilter(Filter filterDuplicatesLdapFilter)
filterDuplicatesLdapFilter - The filter duplicates ldap filter (Filter)
parameter.protected void setTagAggregatingLdapFilter(Filter tagAggregatingLdapFilter)
tagAggregatingLdapFilter - The tag aggregating ldap filter (Filter)
parameter.evaluateTagAggregatingLdapFilter()protected void setTagReadingLdapFilter(Filter tagReadingLdapFilter)
tagReadingLdapFilter - The tag reading ldap filter (Filter)
parameter.evaluateTagReadingLdapFilter()
protected void updateTagInCache(java.lang.String key,
java.util.Map reads,
java.util.Map cache)
key - The key (String) parameter.reads - The reads (Map) parameter.cache - The cache (Map) parameter.public void activate()
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||