2010-01-26 1.2.0

org.eclipse.soda.dk.barcode.reader.inventory.profile
Class BarcodeReaderInventoryProfile

java.lang.Object
  extended by RfidInventoryProfile
      extended by org.eclipse.soda.dk.barcode.reader.inventory.profile.BarcodeReaderInventoryProfile
All Implemented Interfaces:
BarcodeReaderInventoryProfileService

public class BarcodeReaderInventoryProfile
extends RfidInventoryProfile
implements BarcodeReaderInventoryProfileService

Barcode Reader Profile. The BarcodeReaderInventoryProfile class implements the BarcodeReaderInventoryProfileService and provides the controls for the profile.

The list of exported services:

Since:
1.2
Version:
1.2.0
See Also:
BarcodeReaderInventoryProfileService, See the following specification(s) for more details:

Title: EPCglobal Low Level Reader Protocol (LLRP)
URL: http://www.epcglobalinc.org/standards/llrp
Version: 1.0.1
Date: August 13, 2007
Vendor: EPCglobal
Comment: Ratified

Title: EPCglobal Application Level Events (ALE) Specification
URL: http://www.epcglobalinc.org/standards/ale/
Version: 1.1
Date: February 27, 2008
Vendor: EPCglobal
Comment: Ratified

Title: EPCglobal Low Level Reader Protocol (LLRP)
URL: http://www.epcglobalinc.org/standards/llrp
Version: 1.0.1
Date: August 13, 2007
Vendor: EPCglobal
Comment: Ratified

Title: EPCglobal Application Level Events (ALE) Specification
URL: http://www.epcglobalinc.org/standards/ale/
Version: 1.1
Date: February 27, 2008
Vendor: EPCglobal
Comment: Ratified

Field Summary
protected  SignalService barcodeReaderDeviceServiceBarcodeReport
          Defines the BarcodeReport signalref.
static java.lang.String CLASS_NAME
          Defines the full class name.
protected  boolean reading
          Define the reading (boolean) field.
 
Fields inherited from interface org.eclipse.soda.dk.barcode.reader.inventory.profile.service.BarcodeReaderInventoryProfileService
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, BarcodeReaderInventoryProfile, Capabilities, CAPABILITIES_ERROR_EXTERNAL_KEY, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, Configuration, CONFIGURATION_ERROR_EXTERNAL_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, Metrics, METRICS_ERROR_EXTERNAL_KEY, METRICS_EXTERNAL_KEY, METRICS_GET_EXTERNAL_KEY, SERVICE_DESCRIPTION, SERVICE_NAME, Status, STATUS_ERROR_EXTERNAL_KEY, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY
 
Constructor Summary
BarcodeReaderInventoryProfile()
          Constructs a new instance of the BarcodeReaderInventoryProfile class.
 
Method Summary
protected  boolean autonomousModeOff()
          Autonomous mode off and return the boolean result.
protected  boolean autonomousModeOn()
          Autonomous mode on and return the boolean result.
 AdapterService getAdapter()
          Gets the get adapter value.
 DeviceService getDefaultDevice()
          Gets the default device (DeviceService) value.
 java.lang.String getDefaultKey()
          Gets the default key (String) value.
 void handleBarcodeReaderDeviceServiceBarcodeReport(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Handle barcode reader device service barcode report with the specified source, timestamp and data parameters.
protected  void handleSetAggregationMaskSetting(Measurement measurement, java.lang.Object data)
          Handle set aggregation mask setting with the specified measurement and data parameters.
protected  void handleSetTagMaskSetting(Measurement measurement, java.lang.Object data)
          Handle set tag mask setting with the specified measurement and data parameters.
 boolean isAdapterNeeded()
          Is adapter needed.
 boolean isDeviceNeeded()
          Is device needed.
 boolean isReading()
          Gets the reading (boolean) value.
protected  InterestMasks parseBarcodeInterestMasks(java.lang.String targetTagConfig)
          Parse barcode interest masks with the specified target tag configuration parameter and return the InterestMasks result.
 void setAdapter(AdapterService adapter)
          Set adapter.
 void setDevice(DeviceService device)
          Set device.
 void setReading(boolean reading)
          Sets the reading value.
 void setup()
           
 void signalOccurred(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Signal occurred.
protected  byte[] strToBytes(java.lang.String str)
          Str to bytes with the specified str parameter and return the byte[] result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

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

Since:
1.1
See Also:
Constant Field Values

barcodeReaderDeviceServiceBarcodeReport

protected SignalService barcodeReaderDeviceServiceBarcodeReport
Defines the BarcodeReport signalref.

Since:
1.1

reading

protected boolean reading
Define the reading (boolean) field.

Constructor Detail

BarcodeReaderInventoryProfile

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

Since:
1.1
Method Detail

autonomousModeOff

protected boolean autonomousModeOff()
Autonomous mode off and return the boolean result.

Returns:
Results of the autonomous mode off (boolean) value.

autonomousModeOn

protected boolean autonomousModeOn()
Autonomous mode on and return the boolean result.

Returns:
Results of the autonomous mode on (boolean) value.

getAdapter

public AdapterService getAdapter()
Gets the get adapter value.

Returns:
The adapter value.
Since:
1.1
See Also:
setAdapter(AdapterService)

getDefaultDevice

public DeviceService getDefaultDevice()
Gets the default device (DeviceService) value.

Returns:
DeviceService The default DeviceService.
Since:
1.1

getDefaultKey

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

Returns:
String The default key
Since:
1.1

handleBarcodeReaderDeviceServiceBarcodeReport

public void handleBarcodeReaderDeviceServiceBarcodeReport(SignalService source,
                                                          java.lang.Object timestamp,
                                                          java.lang.Object data)
Handle barcode reader device service barcode report with the specified source, timestamp and data parameters.

Parameters:
source - The source (SignalService) parameter.
timestamp - The time stamp (Object) parameter.
data - The data (Object) parameter.
Since:
1.2

handleSetAggregationMaskSetting

protected void handleSetAggregationMaskSetting(Measurement measurement,
                                               java.lang.Object data)
Handle set aggregation mask setting with the specified measurement and data parameters.

Parameters:
measurement - The measurement (Measurement) parameter.
data - The data (Object) parameter.
Since:
1.2

handleSetTagMaskSetting

protected void handleSetTagMaskSetting(Measurement measurement,
                                       java.lang.Object data)
Handle set tag mask setting with the specified measurement and data parameters.

Parameters:
measurement - The measurement (Measurement) parameter.
data - The data (Object) parameter.
Since:
1.2

isAdapterNeeded

public boolean isAdapterNeeded()
Is adapter needed.

Returns:
The results of this method.
Since:
1.1

isDeviceNeeded

public boolean isDeviceNeeded()
Is device needed.

Returns:
The results of this method.
Since:
1.1

isReading

public boolean isReading()
Gets the reading (boolean) value.

Returns:
The reading (boolean) value.
See Also:
setReading(boolean)

parseBarcodeInterestMasks

protected InterestMasks parseBarcodeInterestMasks(java.lang.String targetTagConfig)
Parse barcode 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 barcode interest masks (InterestMasks) value.
Since:
1.2

setAdapter

public void setAdapter(AdapterService adapter)
Set adapter.

Parameters:
adapter - adapter.
Since:
1.1
See Also:
getAdapter()

setDevice

public void setDevice(DeviceService device)
Set device.

Parameters:
device - device.
Since:
1.1
See Also:
getDefaultDevice()

setReading

public void setReading(boolean reading)
Sets the reading value.

Parameters:
reading - The reading (boolean) parameter.
See Also:
isReading()

setup

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

signalOccurred

public void signalOccurred(SignalService source,
                           java.lang.Object timestamp,
                           java.lang.Object data)
Signal occurred.

Parameters:
source - source.
timestamp - time stamp.
data - data.
Since:
1.1

strToBytes

protected byte[] strToBytes(java.lang.String str)
Str to bytes with the specified str parameter and return the byte[] result.

Parameters:
str - The str (String) parameter.
Returns:
Results of the str to bytes (byte[]) value.
Since:
1.2

2010-01-26 1.2.0

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