2010-01-26 1.2.0

org.eclipse.soda.dk.rfid.write.profile.test.agent
Class RfidWriteProfileAbstractTestCase

java.lang.Object
  extended by ProfileAbstractTestCase
      extended by org.eclipse.soda.dk.rfid.write.profile.test.agent.RfidWriteProfileAbstractTestCase
All Implemented Interfaces:
WriteProfileStringGeneratorConstants
Direct Known Subclasses:
RfidWriteProfileDisconnectTestCase, RfidWriteProfileMultipleTagsTestCase, RfidWriteProfileNoTagsTestCase, RfidWriteProfileSingleTagTestCase

public class RfidWriteProfileAbstractTestCase
extends ProfileAbstractTestCase
implements WriteProfileStringGeneratorConstants

Since:
1.0
Version:
1.2.0

Field Summary
protected static java.lang.String AND_EXPRESSION
          (String) use to define the AND expression
protected static long BIT_1
          (long) use to define the bit1 constant
protected static long BIT_2
          (long) use to define the bit2 constant
protected static long BIT_32
          (long) use to define the bit32 constant
protected  java.lang.String controlProfileServiceBitsExternalKey
          Define control profile service bits external key.
protected  java.lang.String controlProfileServiceLongsExternalKey
          Define control profile service longs external key.
protected static int DEFAULT_KILL_TIME_DURATION
          (int) use to store the default kill time duration
protected static int DEFAULT_TIME_OUT_DURATION
          (int) use to store the default time out duration
protected  int epc_bit_size
          (int) use to store the tags epc bit size
protected  java.lang.String gpioProfileServiceAnalogInputExternalKey
          Define gpio profile service analog input external key.
protected  java.lang.String gpioProfileServiceInputExternalKey
          Define gpio profile service input external key.
protected  java.lang.String initialReadOperationId
          (String) use to store the initial read operation ID
protected static java.lang.String OR_EXPRESSION
          (String) use to define the OR expression
protected  java.util.Set originalTagInfo
          (Set) use to store the data found in the tags
protected  java.lang.String readerIdProperty
          (String) use to store the reader ID property
protected  java.lang.String readOperationId
          (String) use to store the read operation ID
protected  java.lang.String readString
          (String) use to store the format of a read string
protected  java.lang.String rfidWriteProfileServiceAntennaConfigurationExternalKey
          Define rfid write profile service antenna configuration external key.
protected  java.lang.String rfidWriteProfileServiceCapabilitiesExternalKey
          Define rfid write profile service capabilities external key.
protected  java.lang.String rfidWriteProfileServiceConfigurationExternalKey
          Define rfid write profile service configuration external key.
protected  java.lang.String rfidWriteProfileServiceDataWriteExtensionsExternalKey
          Define rfid write profile service data write extensions external key.
protected  java.lang.String rfidWriteProfileServiceStatusExternalKey
          Define rfid write profile service status external key.
protected  java.lang.String rfidWriteProfileServiceTagAggregationWriteMaskSettingExternalKey
          Define rfid write profile service tag aggregation write mask setting external key.
protected  java.lang.String rfidWriteProfileServiceTagWriteAggregatingExpressionExternalKey
          Define rfid write profile service tag write aggregating expression external key.
protected  java.lang.String rfidWriteProfileServiceTagWriteAggregatingExternalKey
          Define rfid write profile service tag write aggregating external key.
protected  java.lang.String rfidWriteProfileServiceTagWriteAggregationReportExternalKey
          Define rfid write profile service tag write aggregation report external key.
protected  java.lang.String rfidWriteProfileServiceTagWriteAntennaReportingExternalKey
          Define rfid write profile service tag write antenna reporting external key.
protected  java.lang.String rfidWriteProfileServiceTagWriteMaskSettingExternalKey
          Define rfid write profile service tag write mask setting external key.
protected  java.lang.String rfidWriteProfileServiceTagWriteReportExternalKey
          Define rfid write profile service tag write report external key.
protected  java.lang.String rfidWriteProfileServiceWriteOperationsExecuteRequestExternalKey
          Define rfid write profile service write operations execute request external key.
protected  java.lang.String rfidWriteProfileServiceWriteOperationsExecuteStatusExternalKey
          Define rfid write profile service write operations execute status external key.
protected  java.lang.String rfidWriteProfileServiceWriteOperationsExpressionExternalKey
          Define rfid write profile service write operations expression external key.
protected  java.lang.String rfidWriteProfileServiceWriteOperationsExternalKey
          Define rfid write profile service write operations external key.
protected  java.lang.String rfidWriteProfileServiceWriteOperationsStopRequestExternalKey
          Define rfid write profile service write operations stop request external key.
protected  java.lang.String tagEpc
          (String) use to store the epc's that will be written
protected  java.util.Set tagEpcSet
          (Set) use to store the Epc's that will be written to tags
protected  java.lang.String tagWriteData
          (String) use to store the write data
protected  java.lang.String tagWriteString
          (String) use to store the format of a write string
protected  int testState
          (int) use to store the current test state
protected  int timeOutDurationProperty
          (int) use to store the time out duration property
protected  java.util.Set writeDataSet
          (Set) use to store the write data that will be written to tags
protected  java.lang.String writeOperationId
          (String) use to store the write operation ID
protected  int writeOperationKillTime
          (int) use to store the write operation kill time
 
Fields inherited from interface org.eclipse.soda.dk.rfid.write.profile.test.agent.WriteProfileStringGeneratorConstants
BIT_POINTER, BIT_POINTER_HOLDER, COUNT_HOLDER, DEFAULT_EPC_SIZE, EPC_64, EPC_64_TAG_MASK, EPC_64_WORD_COUNT, EPC_96, EPC_96_TAG_MASK, EPC_96_WORD_COUNT, EPC_BIT_POINTER, EPC_MEMORYBANK, EPC_WORD_POINTER, epcState, EXPECTED_DATA_HOLDER, FILTER_HOLDER, MEMORY_BANK_HOLDER, OP_COUNT, PASSWORD, PASSWORD_HOLDER, TAG_DATA, TAG_DATA_HOLDER, TAG_MASK, TAG_MASK_HOLDER, TAG_OPERATION_ID_HOLDER, TIME_OUT_HOLDER, USER_MEMORYBANK, USER_TAG_MASK, USER_WORD_COUNT, USER_WORD_POINTER, userDataState, WORD_COUNT_HOLDER, WORD_POINTER_HOLDER, WRITE_DATA_HOLDER
 
Constructor Summary
RfidWriteProfileAbstractTestCase(java.lang.String name)
          Constructs a new instance of the RfidWriteProfileAbstractTestCase class.
 
Method Summary
static java.lang.String byteArray2Str(byte[] bytes)
          Byte array2 str with the specified bytes parameter and return the String result.
protected  void checkSetWrite(java.lang.String writeString)
          Used to verify that there is no write operation being executed before trying to start another, and that the write operation has completed before moving on.
protected  int countTagAggregationReports()
          Counts the number of aggregation reports received.
protected  java.lang.String generateReadString(java.lang.String opId)
          Generates a read string depending on the state of the tests (userdata or epc) and on the bit size of the tags.
protected  java.lang.String generateWriteString(java.util.Set expectedData)
          Generates a write string depending on the state of the tests (userdate or epc) and on the bit size of the tags.
protected  java.util.ArrayList getAllTagAggregationReports()
          Gets the all tag aggregation reports (ArrayList) value.
protected  java.util.ArrayList getAllTagReports()
          Returns all the tag reports.
protected  java.util.Map GetAntennaConfiguration()
          Get antenna configuration.
protected  java.util.Map getBitsData(long bits)
          Get bits data with the specified bits parameter and return the Map result.
protected  java.util.Map GetDataWriteExtensions()
          Get data write extensions.
protected  java.util.Map getInputsData(long bits)
          Get inputs data with the specified bits parameter and return the Map result.
protected  void getKeysAndSettingsFromProperties()
          Get keys and settings from the properties
protected  java.util.Map getLongsData(long bits)
          Get longs data with the specified bits parameter and return the Map result.
protected  java.util.Dictionary GetRfidWriteProfileCapabilities()
          Get rfid write profile capabilities.
protected  java.util.Dictionary GetRfidWriteProfileConfiguration()
          Get rfid write profile configuration.
protected  java.util.Dictionary GetRfidWriteProfileStatus()
          Get rfid write profile status.
protected  java.lang.String GetTagAggregationWriteMaskSetting()
          Get tag aggregation write mask setting.
protected  java.util.List getTagsFromTagAggregationReports(java.util.Map expectedDataExtensions)
          Get tags from tag aggregation reports with the specified expected data extensions parameter and return the List result.
protected  java.util.List getTagsFromTagReports(java.util.Map expectedDataExtensions, java.lang.String operationId)
          Returns the tags obtained from the tag reports
protected  java.lang.Boolean GetTagWriteAggregating()
          Get tag write aggregating.
protected  java.lang.String GetTagWriteAggregatingExpression()
          Get tag write aggregating expression.
protected  java.lang.Boolean GetTagWriteAntennaReporting()
          Get tag write antenna reporting.
protected  java.lang.String GetTagWriteMaskSetting()
          Get tag write mask setting.
protected  java.lang.String GetWriteOperations()
          Get write operations.
protected  java.lang.Boolean GetWriteOperationsExecuteStatus()
          Get write operations execute status.
protected  java.lang.String GetWriteOperationsExpression()
          Get write operations expression.
 void initialReadTagDataAndCompare(java.util.Set expectedData, java.util.Map expectedDataExtensions, boolean noDuplicatesAllowed)
          Verifies that the expected data and the data found in the tags before tests is not the same.
protected  void readAndVerifyTags(java.util.Set expectedData, java.util.Map expectedDataExtensions, boolean noDuplicatesAllowed)
          Reads and verifies that the expected data is equal to that which was written.
protected  java.util.Map ReadAntennaConfiguration()
          Read antenna configuration.
protected  java.util.Map ReadDataWriteExtensions()
          Read data write extensions.
protected  java.lang.String ReadTagAggregationWriteMaskSetting()
          Read tag aggregation write mask setting.
protected  java.lang.Boolean ReadTagWriteAggregating()
          Read tag write aggregating.
protected  java.lang.String ReadTagWriteAggregatingExpression()
          Read tag write aggregating expression.
protected  java.lang.Boolean ReadTagWriteAntennaReporting()
          Read tag write antenna reporting.
protected  java.lang.String ReadTagWriteMaskSetting()
          Read tag write mask setting.
protected  java.lang.String ReadWriteOperations()
          Read write operations.
protected  java.lang.Boolean ReadWriteOperationsExecuteStatus()
          Read write operations execute status.
protected  java.lang.String ReadWriteOperationsExpression()
          Read write operations expression.
 java.lang.String replace(java.lang.String temp, java.lang.String r1, java.lang.String r2)
          Use to replace two strings within a string.
protected  void ReportAnalogInput(java.util.Map dataValue)
          Report analog input.
protected  void ReportBits(java.util.Map dataValue)
          Report bits.
protected  void ReportInput(java.util.Map dataValue)
          Report input.
protected  void ReportLongs(java.util.Map dataValue)
          Report longs.
protected  java.lang.String setReadString(java.lang.String memoryBank, java.lang.String bitPointer, java.lang.String tagMask, java.lang.String tagData, java.lang.String wordPointer, java.lang.String wordCount, java.lang.String password, java.lang.String operationCount, java.lang.String timeOut, java.lang.String operationId)
          Uses the format of a read string to generate a write string with the parameters given.
protected  java.lang.String setWriteString(java.lang.String filterHolder, java.lang.String memoryBank, java.lang.String bitPointer, java.lang.String tagMask, java.lang.String tagData, java.lang.String wordPointer, java.lang.String password, java.lang.String operationCount, java.lang.String timeOut, java.lang.String operationId, java.lang.String writeData)
          Uses the format of a write string to generate a write string with the parameters given.
 void tagComparison(java.util.List receivedTags, java.util.List expectedData)
          Compares the expected data and the received tags data.
protected  void tearDown()
          Tear down.
 void verifyAggregationReceived(java.util.Set expectedData, java.util.Map expectedDataExtensions, boolean noDuplicatesAllowed)
          Verify aggregation received with the specified expected tags, expected data extensions and no duplicates allowed parameters.
 void verifyExpectedTags(java.util.Set expectedData, java.util.Map expectedDataExtensions, boolean noDuplicatesAllowed, java.lang.String operationId)
          Verifies that the tag data and the expected data match.
protected  void verifyNoAggregationReceived()
          Verify that no aggregation was received.
 void verifyTagAggregationExpression(java.util.Set expectedData)
          Verify tag writing expression with the specified expected data parameter.
protected  java.util.List verifyTagReadsForTagReports(java.util.ArrayList tagReports, java.util.Map expectedDataExtensions, java.lang.String operationId)
          Verifies that the tags read information is correct.
protected  void verifyTagWriteData(java.util.Set expectedData)
          Verifies that the expected data is not already contained in the tags.
protected  void verifyTagWriteData(java.util.Set expectedData, java.util.Map expectedDataExtensions)
          Verifies that the expected data is not already contained in the tags.
protected  void verifyTagWritingAndAggregating(java.util.Set expectedData, java.util.Map expectedDataExtensions)
          Verify tag writing and aggregation with the specified expected data and expected data extensions parameters.
 void verifyTagWritingAndAggregation(java.util.Set expectedData)
          Verify tag reading and aggregation with the specified expected data parameter.
 void verifyTagWritingExpression(java.util.Set expectedData)
          Verify tag writing expression with the specified expected data parameter.
protected  int waitForTagAggregationReports(int expectedCount, int duration)
          Wait for tag aggregation reports with the specified expected count and duration parameters and return the int result.
protected  int waitForTagReports(int expectedCount, int duration)
          Wait for tag reports with the specified expected count and duration parameters and return the int result.
protected  void waitSig()
          Used to allow for the WriteWriteOperationsmethod to finish executing.
protected  void WriteAntennaConfiguration(java.util.Map dataValue)
          Write antenna configuration.
protected  void WriteDataWriteExtensions(java.util.Map dataValue)
          Write data write extensions.
protected  void WriteTagAggregationWriteMaskSetting(java.lang.String dataValue)
          Write tag aggregation write mask setting.
protected  void writeTagStartOperation(java.lang.String dataValue)
          Executes the command to start the write operation.
protected  void writeTagStopWriting(java.lang.String dataValue)
          Executes the command to stop the write operation.
protected  void WriteTagWriteAggregating(java.lang.Boolean dataValue)
          Write tag write aggregating.
protected  void WriteTagWriteAggregatingExpression(java.lang.String dataValue)
          Write tag write aggregating expression.
protected  void WriteTagWriteAntennaReporting(java.lang.Boolean dataValue)
          Write tag write antenna reporting.
protected  void WriteTagWriteMaskSetting(java.lang.String dataValue)
          Write tag write mask setting.
protected  void WriteWriteOperations(java.lang.String dataValue)
          Write write operations.
protected  void WriteWriteOperationsExecuteStatus(java.lang.Boolean dataValue)
          Write write operations execute status.
protected  void WriteWriteOperationsExpression(java.lang.String dataValue)
          Write write operations expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIME_OUT_DURATION

protected static final int DEFAULT_TIME_OUT_DURATION
(int) use to store the default time out duration

See Also:
Constant Field Values

DEFAULT_KILL_TIME_DURATION

protected static final int DEFAULT_KILL_TIME_DURATION
(int) use to store the default kill time duration

See Also:
Constant Field Values

AND_EXPRESSION

protected static final java.lang.String AND_EXPRESSION
(String) use to define the AND expression

See Also:
Constant Field Values

OR_EXPRESSION

protected static final java.lang.String OR_EXPRESSION
(String) use to define the OR expression

See Also:
Constant Field Values

BIT_1

protected static final long BIT_1
(long) use to define the bit1 constant

See Also:
Constant Field Values

BIT_2

protected static final long BIT_2
(long) use to define the bit2 constant

See Also:
Constant Field Values

BIT_32

protected static final long BIT_32
(long) use to define the bit32 constant

See Also:
Constant Field Values

originalTagInfo

protected java.util.Set originalTagInfo
(Set) use to store the data found in the tags


writeDataSet

protected java.util.Set writeDataSet
(Set) use to store the write data that will be written to tags


tagEpcSet

protected java.util.Set tagEpcSet
(Set) use to store the Epc's that will be written to tags


writeOperationId

protected java.lang.String writeOperationId
(String) use to store the write operation ID


readOperationId

protected java.lang.String readOperationId
(String) use to store the read operation ID


initialReadOperationId

protected java.lang.String initialReadOperationId
(String) use to store the initial read operation ID


tagEpc

protected java.lang.String tagEpc
(String) use to store the epc's that will be written


tagWriteString

protected java.lang.String tagWriteString
(String) use to store the format of a write string


readString

protected java.lang.String readString
(String) use to store the format of a read string


readerIdProperty

protected java.lang.String readerIdProperty
(String) use to store the reader ID property


tagWriteData

protected java.lang.String tagWriteData
(String) use to store the write data


epc_bit_size

protected int epc_bit_size
(int) use to store the tags epc bit size


testState

protected int testState
(int) use to store the current test state


timeOutDurationProperty

protected int timeOutDurationProperty
(int) use to store the time out duration property


writeOperationKillTime

protected int writeOperationKillTime
(int) use to store the write operation kill time


controlProfileServiceBitsExternalKey

protected java.lang.String controlProfileServiceBitsExternalKey
Define control profile service bits external key.


controlProfileServiceLongsExternalKey

protected java.lang.String controlProfileServiceLongsExternalKey
Define control profile service longs external key.


gpioProfileServiceAnalogInputExternalKey

protected java.lang.String gpioProfileServiceAnalogInputExternalKey
Define gpio profile service analog input external key.


gpioProfileServiceInputExternalKey

protected java.lang.String gpioProfileServiceInputExternalKey
Define gpio profile service input external key.


rfidWriteProfileServiceAntennaConfigurationExternalKey

protected java.lang.String rfidWriteProfileServiceAntennaConfigurationExternalKey
Define rfid write profile service antenna configuration external key.


rfidWriteProfileServiceCapabilitiesExternalKey

protected java.lang.String rfidWriteProfileServiceCapabilitiesExternalKey
Define rfid write profile service capabilities external key.


rfidWriteProfileServiceConfigurationExternalKey

protected java.lang.String rfidWriteProfileServiceConfigurationExternalKey
Define rfid write profile service configuration external key.


rfidWriteProfileServiceDataWriteExtensionsExternalKey

protected java.lang.String rfidWriteProfileServiceDataWriteExtensionsExternalKey
Define rfid write profile service data write extensions external key.


rfidWriteProfileServiceStatusExternalKey

protected java.lang.String rfidWriteProfileServiceStatusExternalKey
Define rfid write profile service status external key.


rfidWriteProfileServiceTagAggregationWriteMaskSettingExternalKey

protected java.lang.String rfidWriteProfileServiceTagAggregationWriteMaskSettingExternalKey
Define rfid write profile service tag aggregation write mask setting external key.


rfidWriteProfileServiceTagWriteAggregatingExpressionExternalKey

protected java.lang.String rfidWriteProfileServiceTagWriteAggregatingExpressionExternalKey
Define rfid write profile service tag write aggregating expression external key.


rfidWriteProfileServiceTagWriteAggregatingExternalKey

protected java.lang.String rfidWriteProfileServiceTagWriteAggregatingExternalKey
Define rfid write profile service tag write aggregating external key.


rfidWriteProfileServiceTagWriteAggregationReportExternalKey

protected java.lang.String rfidWriteProfileServiceTagWriteAggregationReportExternalKey
Define rfid write profile service tag write aggregation report external key.


rfidWriteProfileServiceTagWriteAntennaReportingExternalKey

protected java.lang.String rfidWriteProfileServiceTagWriteAntennaReportingExternalKey
Define rfid write profile service tag write antenna reporting external key.


rfidWriteProfileServiceTagWriteMaskSettingExternalKey

protected java.lang.String rfidWriteProfileServiceTagWriteMaskSettingExternalKey
Define rfid write profile service tag write mask setting external key.


rfidWriteProfileServiceTagWriteReportExternalKey

protected java.lang.String rfidWriteProfileServiceTagWriteReportExternalKey
Define rfid write profile service tag write report external key.


rfidWriteProfileServiceWriteOperationsExecuteRequestExternalKey

protected java.lang.String rfidWriteProfileServiceWriteOperationsExecuteRequestExternalKey
Define rfid write profile service write operations execute request external key.


rfidWriteProfileServiceWriteOperationsExecuteStatusExternalKey

protected java.lang.String rfidWriteProfileServiceWriteOperationsExecuteStatusExternalKey
Define rfid write profile service write operations execute status external key.


rfidWriteProfileServiceWriteOperationsExpressionExternalKey

protected java.lang.String rfidWriteProfileServiceWriteOperationsExpressionExternalKey
Define rfid write profile service write operations expression external key.


rfidWriteProfileServiceWriteOperationsExternalKey

protected java.lang.String rfidWriteProfileServiceWriteOperationsExternalKey
Define rfid write profile service write operations external key.


rfidWriteProfileServiceWriteOperationsStopRequestExternalKey

protected java.lang.String rfidWriteProfileServiceWriteOperationsStopRequestExternalKey
Define rfid write profile service write operations stop request external key.

Constructor Detail

RfidWriteProfileAbstractTestCase

public RfidWriteProfileAbstractTestCase(java.lang.String name)
Constructs a new instance of the RfidWriteProfileAbstractTestCase class.

Parameters:
name - name.
Method Detail

byteArray2Str

public static java.lang.String byteArray2Str(byte[] bytes)
Byte array2 str with the specified bytes parameter and return the String result.

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

GetAntennaConfiguration

protected java.util.Map GetAntennaConfiguration()
                                         throws java.lang.InterruptedException
Get antenna configuration.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetDataWriteExtensions

protected java.util.Map GetDataWriteExtensions()
                                        throws java.lang.InterruptedException
Get data write extensions.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetRfidWriteProfileCapabilities

protected java.util.Dictionary GetRfidWriteProfileCapabilities()
                                                        throws java.lang.InterruptedException
Get rfid write profile capabilities.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetRfidWriteProfileConfiguration

protected java.util.Dictionary GetRfidWriteProfileConfiguration()
                                                         throws java.lang.InterruptedException
Get rfid write profile configuration.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetRfidWriteProfileStatus

protected java.util.Dictionary GetRfidWriteProfileStatus()
                                                  throws java.lang.InterruptedException
Get rfid write profile status.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetTagAggregationWriteMaskSetting

protected java.lang.String GetTagAggregationWriteMaskSetting()
                                                      throws java.lang.InterruptedException
Get tag aggregation write mask setting.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetTagWriteAggregating

protected java.lang.Boolean GetTagWriteAggregating()
                                            throws java.lang.InterruptedException
Get tag write aggregating.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetTagWriteAggregatingExpression

protected java.lang.String GetTagWriteAggregatingExpression()
                                                     throws java.lang.InterruptedException
Get tag write aggregating expression.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetTagWriteAntennaReporting

protected java.lang.Boolean GetTagWriteAntennaReporting()
                                                 throws java.lang.InterruptedException
Get tag write antenna reporting.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetTagWriteMaskSetting

protected java.lang.String GetTagWriteMaskSetting()
                                           throws java.lang.InterruptedException
Get tag write mask setting.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetWriteOperations

protected java.lang.String GetWriteOperations()
                                       throws java.lang.InterruptedException
Get write operations.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetWriteOperationsExecuteStatus

protected java.lang.Boolean GetWriteOperationsExecuteStatus()
                                                     throws java.lang.InterruptedException
Get write operations execute status.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

GetWriteOperationsExpression

protected java.lang.String GetWriteOperationsExpression()
                                                 throws java.lang.InterruptedException
Get write operations expression.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadAntennaConfiguration

protected java.util.Map ReadAntennaConfiguration()
                                          throws java.lang.InterruptedException
Read antenna configuration.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadDataWriteExtensions

protected java.util.Map ReadDataWriteExtensions()
                                         throws java.lang.InterruptedException
Read data write extensions.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadTagAggregationWriteMaskSetting

protected java.lang.String ReadTagAggregationWriteMaskSetting()
                                                       throws java.lang.InterruptedException
Read tag aggregation write mask setting.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadTagWriteAggregating

protected java.lang.Boolean ReadTagWriteAggregating()
                                             throws java.lang.InterruptedException
Read tag write aggregating.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadTagWriteAggregatingExpression

protected java.lang.String ReadTagWriteAggregatingExpression()
                                                      throws java.lang.InterruptedException
Read tag write aggregating expression.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadTagWriteAntennaReporting

protected java.lang.Boolean ReadTagWriteAntennaReporting()
                                                  throws java.lang.InterruptedException
Read tag write antenna reporting.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadTagWriteMaskSetting

protected java.lang.String ReadTagWriteMaskSetting()
                                            throws java.lang.InterruptedException
Read tag write mask setting.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadWriteOperations

protected java.lang.String ReadWriteOperations()
                                        throws java.lang.InterruptedException
Read write operations.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadWriteOperationsExecuteStatus

protected java.lang.Boolean ReadWriteOperationsExecuteStatus()
                                                      throws java.lang.InterruptedException
Read write operations execute status.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReadWriteOperationsExpression

protected java.lang.String ReadWriteOperationsExpression()
                                                  throws java.lang.InterruptedException
Read write operations expression.

Returns:
The results of this method.
Throws:
java.lang.InterruptedException - interrupted exception.

ReportAnalogInput

protected void ReportAnalogInput(java.util.Map dataValue)
Report analog input.

Parameters:
dataValue - data value.

ReportBits

protected void ReportBits(java.util.Map dataValue)
Report bits.

Parameters:
dataValue - data value.

ReportInput

protected void ReportInput(java.util.Map dataValue)
Report input.

Parameters:
dataValue - data value.

ReportLongs

protected void ReportLongs(java.util.Map dataValue)
Report longs.

Parameters:
dataValue - data value.

WriteAntennaConfiguration

protected void WriteAntennaConfiguration(java.util.Map dataValue)
                                  throws java.lang.InterruptedException
Write antenna configuration.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

WriteDataWriteExtensions

protected void WriteDataWriteExtensions(java.util.Map dataValue)
                                 throws java.lang.InterruptedException
Write data write extensions.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

WriteTagAggregationWriteMaskSetting

protected void WriteTagAggregationWriteMaskSetting(java.lang.String dataValue)
                                            throws java.lang.InterruptedException
Write tag aggregation write mask setting.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

WriteTagWriteAggregating

protected void WriteTagWriteAggregating(java.lang.Boolean dataValue)
                                 throws java.lang.InterruptedException
Write tag write aggregating.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

WriteTagWriteAggregatingExpression

protected void WriteTagWriteAggregatingExpression(java.lang.String dataValue)
                                           throws java.lang.InterruptedException
Write tag write aggregating expression.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

WriteTagWriteAntennaReporting

protected void WriteTagWriteAntennaReporting(java.lang.Boolean dataValue)
                                      throws java.lang.InterruptedException
Write tag write antenna reporting.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

WriteTagWriteMaskSetting

protected void WriteTagWriteMaskSetting(java.lang.String dataValue)
                                 throws java.lang.InterruptedException
Write tag write mask setting.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

WriteWriteOperations

protected void WriteWriteOperations(java.lang.String dataValue)
                             throws java.lang.InterruptedException
Write write operations.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

WriteWriteOperationsExecuteStatus

protected void WriteWriteOperationsExecuteStatus(java.lang.Boolean dataValue)
                                          throws java.lang.InterruptedException
Write write operations execute status.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

WriteWriteOperationsExpression

protected void WriteWriteOperationsExpression(java.lang.String dataValue)
                                       throws java.lang.InterruptedException
Write write operations expression.

Parameters:
dataValue - data value.
Throws:
java.lang.InterruptedException - interrupted exception.

checkSetWrite

protected void checkSetWrite(java.lang.String writeString)
                      throws java.lang.InterruptedException
Used to verify that there is no write operation being executed before trying to start another, and that the write operation has completed before moving on.

Parameters:
writeString - The write string (String) parameter.
Throws:
java.lang.InterruptedException - Interrupted Exception

countTagAggregationReports

protected int countTagAggregationReports()
Counts the number of aggregation reports received.

Returns:
(int) number of aggregation reports received.
See Also:
getAllTagAggregationReports(), getTagsFromTagAggregationReports(Map), waitForTagAggregationReports(int,int)

generateReadString

protected java.lang.String generateReadString(java.lang.String opId)
Generates a read string depending on the state of the tests (userdata or epc) and on the bit size of the tags.

Parameters:
opId - The operation ID (String) parameter.
Returns:
(String) for a write operation to use.
See Also:
setReadString(String,String,String,String,String,String,String,String,String,String)

generateWriteString

protected java.lang.String generateWriteString(java.util.Set expectedData)
Generates a write string depending on the state of the tests (userdate or epc) and on the bit size of the tags.

Parameters:
expectedData - The expected data (Set) paramter.
Returns:
(String) for a write operation to use.
See Also:
setWriteString(String,String,String,String,String,String,String,String,String,String,String)

getAllTagAggregationReports

protected java.util.ArrayList getAllTagAggregationReports()
Gets the all tag aggregation reports (ArrayList) value.

Returns:
The all tag aggregation reports (ArrayList) value.

getAllTagReports

protected java.util.ArrayList getAllTagReports()
Returns all the tag reports.

Returns:
(ArrayList) contains all reports.

getBitsData

protected java.util.Map getBitsData(long bits)
Get bits data with the specified bits parameter and return the Map result.

Parameters:
bits - The bits (long) parameter.
Returns:
Results of the get bits data (Map) value.

getInputsData

protected java.util.Map getInputsData(long bits)
Get inputs data with the specified bits parameter and return the Map result.

Parameters:
bits - The bits (long) parameter.
Returns:
Results of the get inputs data (Map) value.

getKeysAndSettingsFromProperties

protected void getKeysAndSettingsFromProperties()
Get keys and settings from the properties


getLongsData

protected java.util.Map getLongsData(long bits)
Get longs data with the specified bits parameter and return the Map result.

Parameters:
bits - The bits (long) parameter.
Returns:
Results of the get longs data (Map) value.

getTagsFromTagAggregationReports

protected java.util.List getTagsFromTagAggregationReports(java.util.Map expectedDataExtensions)
Get tags from tag aggregation reports with the specified expected data extensions parameter and return the List result.

Parameters:
expectedDataExtensions - The expected data extensions (Map) parameter.
Returns:
Results of the get tags from tag aggregation reports (List) value.

getTagsFromTagReports

protected java.util.List getTagsFromTagReports(java.util.Map expectedDataExtensions,
                                               java.lang.String operationId)
Returns the tags obtained from the tag reports

Parameters:
expectedDataExtensions - The expected data extensions (Set) parameter.
operationId - The expected operation ID (String) parameter.
Returns:
(List) contains all tags received.

initialReadTagDataAndCompare

public void initialReadTagDataAndCompare(java.util.Set expectedData,
                                         java.util.Map expectedDataExtensions,
                                         boolean noDuplicatesAllowed)
Verifies that the expected data and the data found in the tags before tests is not the same.

Parameters:
expectedData - The expected data (Set) parameter.
expectedDataExtensions - The expected data extensions (Map) parameter.
noDuplicatesAllowed - The no duplicates allowed (boolean) parameter.

readAndVerifyTags

protected void readAndVerifyTags(java.util.Set expectedData,
                                 java.util.Map expectedDataExtensions,
                                 boolean noDuplicatesAllowed)
                          throws java.lang.InterruptedException
Reads and verifies that the expected data is equal to that which was written.

Parameters:
expectedData - The expected data (Set) parameter.
expectedDataExtensions - The expected data extensions (Map) parameter.
noDuplicatesAllowed - The no duplicates (boolean parameter.
Throws:
java.lang.InterruptedException

replace

public java.lang.String replace(java.lang.String temp,
                                java.lang.String r1,
                                java.lang.String r2)
Use to replace two strings within a string.

Parameters:
temp - The (String) that contains the (String) that will be replace.
r1 - The (String) that will be replace.
r2 - The (String) that will be replace r1.
Returns:
(String) that has had the two (String) swapped.

setReadString

protected java.lang.String setReadString(java.lang.String memoryBank,
                                         java.lang.String bitPointer,
                                         java.lang.String tagMask,
                                         java.lang.String tagData,
                                         java.lang.String wordPointer,
                                         java.lang.String wordCount,
                                         java.lang.String password,
                                         java.lang.String operationCount,
                                         java.lang.String timeOut,
                                         java.lang.String operationId)
Uses the format of a read string to generate a write string with the parameters given.

Parameters:
memoryBank - The memory bank (String) parameter.
bitPointer - The bit pointer (String) parameter.
tagMask - The tag mask (String) parameter.
tagData - The tag data (String) parameter.
wordPointer - The word pointer (String) parameter.
wordCount - The word count (String) parameter.
password - The password (String) parameter.
operationCount - The operation count (String) parameter.
timeOut - The time out (String) parameter.
operationId - The operation ID (String) parameter.
Returns:
Results of the set read string (String) value.
See Also:
generateReadString(String)

setWriteString

protected java.lang.String setWriteString(java.lang.String filterHolder,
                                          java.lang.String memoryBank,
                                          java.lang.String bitPointer,
                                          java.lang.String tagMask,
                                          java.lang.String tagData,
                                          java.lang.String wordPointer,
                                          java.lang.String password,
                                          java.lang.String operationCount,
                                          java.lang.String timeOut,
                                          java.lang.String operationId,
                                          java.lang.String writeData)
Uses the format of a write string to generate a write string with the parameters given.

Parameters:
filterHolder - The filter holder (String) parameter.
memoryBank - The memory bank (String) parameter.
bitPointer - The bit pointer (String) parameter.
tagMask - The tag mask (String) parameter.
tagData - The tag data (String) parameter.
wordPointer - The word pointer (String) parameter.
password - The password (String) parameter.
operationCount - The operation count (String) parameter.
timeOut - The time out (String) parameter.
operationId - The operation ID (String) parameter.
writeData - The write data (String) parameter.
Returns:
Results of the set write string (String) value.
See Also:
generateWriteString(Set)

tagComparison

public void tagComparison(java.util.List receivedTags,
                          java.util.List expectedData)
Compares the expected data and the received tags data.

Parameters:
receivedTags - The received tags (List) parameter.
expectedData - The expected data (List) parameter.

tearDown

protected void tearDown()
                 throws java.lang.Exception
Tear down.

Throws:
java.lang.Exception - Exception.

verifyAggregationReceived

public void verifyAggregationReceived(java.util.Set expectedData,
                                      java.util.Map expectedDataExtensions,
                                      boolean noDuplicatesAllowed)
                               throws java.lang.InterruptedException
Verify aggregation received with the specified expected tags, expected data extensions and no duplicates allowed parameters.

Parameters:
expectedData - The expected tags(Set) parameter.
expectedDataExtensions - The expected data extensions (Map) parameter.
noDuplicatesAllowed - The no duplicates allowed (boolean) parameter
Throws:
java.lang.InterruptedException - Interrupted Exception.
See Also:
verifyNoAggregationReceived()

verifyExpectedTags

public void verifyExpectedTags(java.util.Set expectedData,
                               java.util.Map expectedDataExtensions,
                               boolean noDuplicatesAllowed,
                               java.lang.String operationId)
                        throws java.lang.InterruptedException
Verifies that the tag data and the expected data match.

Parameters:
expectedData - The expected data (Set) parameter.
expectedDataExtensions - The expected data extensions (Map) parameter.
noDuplicatesAllowed - The no duplicates allowed (boolean) parameter.
operationId - The operation ID (String) parameter.
Throws:
java.lang.InterruptedException - Intterupted Exception

verifyNoAggregationReceived

protected void verifyNoAggregationReceived()
Verify that no aggregation was received.


verifyTagAggregationExpression

public void verifyTagAggregationExpression(java.util.Set expectedData)
                                    throws java.lang.InterruptedException
Verify tag writing expression with the specified expected data parameter.

Parameters:
expectedData - The expected (SetThrows:
java.lang.InterruptedException - Interrupted Exception

verifyTagReadsForTagReports

protected java.util.List verifyTagReadsForTagReports(java.util.ArrayList tagReports,
                                                     java.util.Map expectedDataExtensions,
                                                     java.lang.String operationId)
Verifies that the tags read information is correct.

Parameters:
tagReports - The tag reports (ArrayList) parameter.
expectedDataExtensions - The expected data extensions (Map) parameter.
operationId - The operation ID (String) parameter.
Returns:
(List) contains all data found in the READDATA_KEY (Key)

verifyTagWriteData

protected void verifyTagWriteData(java.util.Set expectedData)
                           throws java.lang.InterruptedException
Verifies that the expected data is not already contained in the tags.

Parameters:
expectedData - The expected data (Set) parameter.
Throws:
java.lang.InterruptedException - Interrupted Exception
See Also:
verifyTagWriteData(Set,Map)

verifyTagWriteData

protected void verifyTagWriteData(java.util.Set expectedData,
                                  java.util.Map expectedDataExtensions)
                           throws java.lang.InterruptedException
Verifies that the expected data is not already contained in the tags.

Parameters:
expectedData - The expected data (Set) parameter.
expectedDataExtensions - The expected data extensions (Map) parameter.
Throws:
java.lang.InterruptedException - Interrupted Exception
See Also:
verifyTagWriteData(Set)

verifyTagWritingAndAggregating

protected void verifyTagWritingAndAggregating(java.util.Set expectedData,
                                              java.util.Map expectedDataExtensions)
                                       throws java.lang.InterruptedException
Verify tag writing and aggregation with the specified expected data and expected data extensions parameters.

Parameters:
expectedData - The expected data (Set) parameter.
expectedDataExtensions - The expected data extensions (Map)
Throws:
java.lang.InterruptedException - Interrupted Exception

verifyTagWritingAndAggregation

public void verifyTagWritingAndAggregation(java.util.Set expectedData)
                                    throws java.lang.InterruptedException
Verify tag reading and aggregation with the specified expected data parameter.

Parameters:
expectedData - The expected tags (Set) parameter.
Throws:
java.lang.InterruptedException - Interrupted Exception.

verifyTagWritingExpression

public void verifyTagWritingExpression(java.util.Set expectedData)
                                throws java.lang.InterruptedException
Verify tag writing expression with the specified expected data parameter.

Parameters:
expectedData - The expected data (Set) parameter
Throws:
java.lang.InterruptedException - Interrupted Exception

waitForTagAggregationReports

protected int waitForTagAggregationReports(int expectedCount,
                                           int duration)
                                    throws java.lang.InterruptedException
Wait for tag aggregation reports with the specified expected count and duration parameters and return the int result.

Parameters:
expectedCount - The expected count (int) parameter.
duration - The duration (int) parameter.
Returns:
Results of the wait for tag aggregation reports (int) value.
Throws:
java.lang.InterruptedException - Interrupted Exception.

waitForTagReports

protected int waitForTagReports(int expectedCount,
                                int duration)
                         throws java.lang.InterruptedException
Wait for tag reports with the specified expected count and duration parameters and return the int result.

Parameters:
expectedCount - The expected count (int) parameter.
duration - The duration (int) parameter.
Returns:
Results of the wait for tag reports (int) value.
Throws:
java.lang.InterruptedException - Interrupted Exception.
See Also:
verifyTagReadsForTagReports(ArrayList,Map,String)

waitSig

protected void waitSig()
                throws java.lang.InterruptedException
Used to allow for the WriteWriteOperationsmethod to finish executing.

Throws:
java.lang.InterruptedException - Interrupted Exception

writeTagStartOperation

protected void writeTagStartOperation(java.lang.String dataValue)
                               throws java.lang.InterruptedException
Executes the command to start the write operation.

Parameters:
dataValue - The data value (String) parameter.
Throws:
java.lang.InterruptedException

writeTagStopWriting

protected void writeTagStopWriting(java.lang.String dataValue)
                            throws java.lang.InterruptedException
Executes the command to stop the write operation.

Parameters:
dataValue - The data value (String) parameter.
Throws:
java.lang.InterruptedException

2010-01-26 1.2.0

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