2009-10-01 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.device.test
Class EpcglobalLlrpDeviceTest

java.lang.Object
  extended by DeviceTest
      extended by org.eclipse.soda.dk.epcglobal.llrp.device.test.EpcglobalLlrpDeviceTest
All Implemented Interfaces:
java.lang.Runnable, EpcglobalLlrpDeviceTestService

public class EpcglobalLlrpDeviceTest
extends DeviceTest
implements EpcglobalLlrpDeviceTestService, java.lang.Runnable

EPCglobal Low Level Reader Protocol (LLRP) Device Test. The EpcglobalLlrpDeviceTest class implements a set of devicetest tests.

The list of exported services:

Since:
1.0
Version:
1.2.0
See Also:

See the following specification(s) for more details:

Title: LLRP Specification
Version: 1.0.1
Vendor: EPC

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
 
Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.device.test.service.EpcglobalLlrpDeviceTestService
FACTORY_SERVICE_NAME, SERVICE_DESCRIPTION, SERVICE_NAME
 
Constructor Summary
EpcglobalLlrpDeviceTest()
          Constructs a new instance of the EpcglobalLlrpDeviceTest class.
 
Method Summary
protected  java.util.Map getAccessCommandParameter()
          Gets the access command parameter (Map) value.
protected  java.util.Map getAccessReportSpecParameter(int accessReportTrigger)
          Get access report spec parameter with the specified access report trigger parameter and return the Map result.
protected  java.util.Map getAccessSpecIDParameter(int id)
          Get access spec idparameter with the specified id parameter and return the Map result.
protected  java.util.Map getAccessSpecParameter()
          Gets the access spec parameter (Map) value.
protected  java.util.Map getAccessSpecParameter(int accessSpecId, int antennaId, int protocolId, boolean currentState, int ROSpecId)
          Get access spec parameter with the specified access spec id, antenna id, protocol id, current state and rospec id parameters and return the Map result.
protected  java.util.Map getAccessSpecStopTriggerParameter(int accessSpecStopTrigger, int operationCountValue)
          Get access spec stop trigger parameter with the specified access spec stop trigger and operation count value parameters and return the Map result.
protected  java.util.Map getAddAccessSpecCommandParameters()
          Gets the add access spec command parameters (Map) value.
protected  java.util.Map getAddROSpecCommandParameters(int id)
          Get add rospec command parameters with the specified id parameter and return the Map result.
protected  java.util.Map getAISpecParameter(int[] antennaIds)
          Get aispec parameter with the specified antenna ids parameter and return the Map result.
protected  java.util.Map getAISpecStopTriggerParameter(int type, int duration)
          Get aispec stop trigger parameter with the specified type and duration parameters and return the Map result.
protected  java.util.Map getC1G2ReadParameter(int OpSpecId, int accessPassword, int memoryBank, int wordPointer, int wordCount)
          Get c1 g2 read parameter with the specified op spec id, access password, memory bank, word pointer and word count parameters and return the Map result.
protected  java.util.Map getC1G2TagSpecParameter()
          Gets the c1 g2 tag spec parameter (Map) value.
protected  java.util.Map getC1G2TargetTagParameter(int memoryBank, boolean match, int pointer, java.lang.String tagMask, java.lang.String tagData)
          Get c1 g2 target tag parameter with the specified memory bank, match, pointer, tag mask and tag data parameters and return the Map result.
protected  java.util.Map getC1G2WriteParameter(int OpSpecId, int accessPassword, int memoryBank, int wordPointer, int wordCount, java.lang.String writeData)
          Get c1 g2 write parameter with the specified op spec id, access password, memory bank, word pointer, word count and write data parameters and return the Map result.
 DeviceService getDefaultDevice()
           
protected  java.util.Map getDelete_Enable_DisableAccessSpecCommandParameters(int accessSpecId)
          Get delete_ enable_ disable access spec command parameters with the specified access spec id parameter and return the Map result.
protected  java.util.Map getEnable_Stop_DeleteROSpecParameters(int id)
          Get enable_ stop_ delete rospec parameters with the specified id parameter and return the Map result.
protected  java.util.Map getEnableGPIStateParameter()
          Gets the enable gpistate parameter (Map) value.
protected  java.util.Map getGetGPIStateParameter(int gpiPortNum)
          Get get gpistate parameter with the specified gpi port num parameter and return the Map result.
protected  java.util.Map getGPIPortCurrentStateParameter(int gpiPortNum, boolean enable)
          Get gpiport current state parameter with the specified gpi port num and enable parameters and return the Map result.
protected  java.util.Map getGPITriggerValueParameter(int gpiPortNum, int gpiEvent, int timeout)
          Get gpitrigger value parameter with the specified gpi port num, gpi event and timeout parameters and return the Map result.
protected  java.util.Map getInventoryParameterSpecParameter(int specId, int protocolId)
          Get inventory parameter spec parameter with the specified spec id and protocol id parameters and return the Map result.
protected  java.util.Map getParameterSetReaderConfigGPOWriteData(int portNum, int data)
          Get parameter set reader config gpowrite data with the specified port num and data parameters and return the Map result.
protected  java.util.Map getROBoundarySpecParameter()
          Gets the roboundary spec parameter (Map) value.
protected  java.util.Map getROReportSpecParameter(int trigger, int tagNum)
          Get roreport spec parameter with the specified trigger and tag num parameters and return the Map result.
protected  java.util.Map getROSpecIDParameter(int id)
          Get rospec idparameter with the specified id parameter and return the Map result.
protected  java.util.Map getROSpecParameter(int id)
          Get rospec parameter with the specified id parameter and return the Map result.
protected  java.util.Map getROSpecStartTriggerParameter(int type)
          Get rospec start trigger parameter with the specified type parameter and return the Map result.
protected  java.util.Map getROSpecStopTriggerParameter(int type, int duration)
          Get rospec stop trigger parameter with the specified type and duration parameters and return the Map result.
protected  java.util.Map getTagReportContentSelectorParameter()
          Gets the tag report content selector parameter (Map) value.
static void main(java.lang.String[] arguments)
          Main method to run tests in a stand alone mode.
 void runTests()
          Run tests.
 void setup()
          Sets user-defined variables to use in the test.
protected static byte[] str2byteArray(java.lang.String str)
          Str2byte array with the specified str parameter and return the byte[] result.
protected static java.lang.String zeros(int num)
          Zeros with the specified num parameter and return the String result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

CLASS_NAME

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

See Also:
Constant Field Values
Constructor Detail

EpcglobalLlrpDeviceTest

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

Method Detail

main

public static void main(java.lang.String[] arguments)
Main method to run tests in a stand alone mode.

Parameters:
arguments - The arguments (String[]) parameter.
See Also:
EpcglobalLlrpDevice

str2byteArray

protected static byte[] str2byteArray(java.lang.String str)
Str2byte array with the specified str parameter and return the byte[] result.

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

zeros

protected static java.lang.String zeros(int num)
Zeros with the specified num parameter and return the String result.

Parameters:
num - The num (int) parameter.
Returns:
Results of the zeros (String) value.

getAISpecParameter

protected java.util.Map getAISpecParameter(int[] antennaIds)
Get aispec parameter with the specified antenna ids parameter and return the Map result.

Parameters:
antennaIds - The antenna IDs (int[]) parameter.
Returns:
Results of the get aispec parameter (Map) value.

getAISpecStopTriggerParameter

protected java.util.Map getAISpecStopTriggerParameter(int type,
                                                      int duration)
Get aispec stop trigger parameter with the specified type and duration parameters and return the Map result.

Parameters:
type - The type (int) parameter.
duration - The duration (int) parameter.
Returns:
Results of the get aispec stop trigger parameter (Map) value.

getAccessCommandParameter

protected java.util.Map getAccessCommandParameter()
Gets the access command parameter (Map) value.

Returns:
The access command parameter (Map) value.

getAccessReportSpecParameter

protected java.util.Map getAccessReportSpecParameter(int accessReportTrigger)
Get access report spec parameter with the specified access report trigger parameter and return the Map result.

Parameters:
accessReportTrigger - The access report trigger (int) parameter.
Returns:
Results of the get access report spec parameter (Map) value.

getAccessSpecIDParameter

protected java.util.Map getAccessSpecIDParameter(int id)
Get access spec idparameter with the specified id parameter and return the Map result.

Parameters:
id - The ID (int) parameter.
Returns:
Results of the get access spec idparameter (Map) value.

getAccessSpecParameter

protected java.util.Map getAccessSpecParameter()
Gets the access spec parameter (Map) value.

Returns:
The access spec parameter (Map) value.
See Also:
getAccessSpecParameter(int,int,int,boolean,int)

getAccessSpecParameter

protected java.util.Map getAccessSpecParameter(int accessSpecId,
                                               int antennaId,
                                               int protocolId,
                                               boolean currentState,
                                               int ROSpecId)
Get access spec parameter with the specified access spec id, antenna id, protocol id, current state and rospec id parameters and return the Map result.

Parameters:
accessSpecId - The access spec ID (int) parameter.
antennaId - The antenna ID (int) parameter.
protocolId - The protocol ID (int) parameter.
currentState - The current state (boolean) parameter.
ROSpecId - The rospec ID (int) parameter.
Returns:
Results of the get access spec parameter (Map) value.
See Also:
getAccessSpecParameter()

getAccessSpecStopTriggerParameter

protected java.util.Map getAccessSpecStopTriggerParameter(int accessSpecStopTrigger,
                                                          int operationCountValue)
Get access spec stop trigger parameter with the specified access spec stop trigger and operation count value parameters and return the Map result.

Parameters:
accessSpecStopTrigger - The access spec stop trigger (int) parameter.
operationCountValue - The operation count value (int) parameter.
Returns:
Results of the get access spec stop trigger parameter (Map) value.

getAddAccessSpecCommandParameters

protected java.util.Map getAddAccessSpecCommandParameters()
Gets the add access spec command parameters (Map) value.

Returns:
The add access spec command parameters (Map) value.

getAddROSpecCommandParameters

protected java.util.Map getAddROSpecCommandParameters(int id)
Get add rospec command parameters with the specified id parameter and return the Map result.

Parameters:
id - The ID (int) parameter.
Returns:
Results of the get add rospec command parameters (Map) value.

getC1G2ReadParameter

protected java.util.Map getC1G2ReadParameter(int OpSpecId,
                                             int accessPassword,
                                             int memoryBank,
                                             int wordPointer,
                                             int wordCount)
Get c1 g2 read parameter with the specified op spec id, access password, memory bank, word pointer and word count parameters and return the Map result.

Parameters:
OpSpecId - The op spec ID (int) parameter.
accessPassword - The access password (int) parameter.
memoryBank - The memory bank (int) parameter.
wordPointer - The word pointer (int) parameter.
wordCount - The word count (int) parameter.
Returns:
Results of the get c1 g2 read parameter (Map) value.

getC1G2TagSpecParameter

protected java.util.Map getC1G2TagSpecParameter()
Gets the c1 g2 tag spec parameter (Map) value.

Returns:
The c1 g2 tag spec parameter (Map) value.

getC1G2TargetTagParameter

protected java.util.Map getC1G2TargetTagParameter(int memoryBank,
                                                  boolean match,
                                                  int pointer,
                                                  java.lang.String tagMask,
                                                  java.lang.String tagData)
Get c1 g2 target tag parameter with the specified memory bank, match, pointer, tag mask and tag data parameters and return the Map result.

Parameters:
memoryBank - The memory bank (int) parameter.
match - The match (boolean) parameter.
pointer - The pointer (int) parameter.
tagMask - The tag mask (String) parameter.
tagData - The tag data (String) parameter.
Returns:
Results of the get c1 g2 target tag parameter (Map) value.

getC1G2WriteParameter

protected java.util.Map getC1G2WriteParameter(int OpSpecId,
                                              int accessPassword,
                                              int memoryBank,
                                              int wordPointer,
                                              int wordCount,
                                              java.lang.String writeData)
Get c1 g2 write parameter with the specified op spec id, access password, memory bank, word pointer, word count and write data parameters and return the Map result.

Parameters:
OpSpecId - The op spec ID (int) parameter.
accessPassword - The access password (int) parameter.
memoryBank - The memory bank (int) parameter.
wordPointer - The word pointer (int) parameter.
wordCount - The word count (int) parameter.
writeData - The write data (String) parameter.
Returns:
Results of the get c1 g2 write parameter (Map) value.

getDefaultDevice

public DeviceService getDefaultDevice()
                               throws java.lang.ClassNotFoundException,
                                      java.lang.IllegalAccessException,
                                      java.lang.InstantiationException
Returns:
DeviceService The Device to be tested.
Throws:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
See Also:
org.eclipse.soda.dk.device.test.DeviceTest#getDefaultDevice()

getDelete_Enable_DisableAccessSpecCommandParameters

protected java.util.Map getDelete_Enable_DisableAccessSpecCommandParameters(int accessSpecId)
Get delete_ enable_ disable access spec command parameters with the specified access spec id parameter and return the Map result.

Parameters:
accessSpecId - The access spec ID (int) parameter.
Returns:
Results of the get delete_ enable_ disable access spec command parameters (Map) value.

getEnableGPIStateParameter

protected java.util.Map getEnableGPIStateParameter()
Gets the enable gpistate parameter (Map) value.

Returns:
The enable gpistate parameter (Map) value.

getEnable_Stop_DeleteROSpecParameters

protected java.util.Map getEnable_Stop_DeleteROSpecParameters(int id)
Get enable_ stop_ delete rospec parameters with the specified id parameter and return the Map result.

Parameters:
id - The ID (int) parameter.
Returns:
Results of the get enable_ stop_ delete rospec parameters (Map) value.

getGPIPortCurrentStateParameter

protected java.util.Map getGPIPortCurrentStateParameter(int gpiPortNum,
                                                        boolean enable)
Get gpiport current state parameter with the specified gpi port num and enable parameters and return the Map result.

Parameters:
gpiPortNum - The gpi port num (int) parameter.
enable - The enable (boolean) parameter.
Returns:
Results of the get gpiport current state parameter (Map) value.

getGPITriggerValueParameter

protected java.util.Map getGPITriggerValueParameter(int gpiPortNum,
                                                    int gpiEvent,
                                                    int timeout)
Get gpitrigger value parameter with the specified gpi port num, gpi event and timeout parameters and return the Map result.

Parameters:
gpiPortNum - The gpi port num (int) parameter.
gpiEvent - The gpi event (int) parameter.
timeout - The timeout (int) parameter.
Returns:
Results of the get gpitrigger value parameter (Map) value.

getGetGPIStateParameter

protected java.util.Map getGetGPIStateParameter(int gpiPortNum)
Get get gpistate parameter with the specified gpi port num parameter and return the Map result.

Parameters:
gpiPortNum - The gpi port num (int) parameter.
Returns:
Results of the get get gpistate parameter (Map) value.

getInventoryParameterSpecParameter

protected java.util.Map getInventoryParameterSpecParameter(int specId,
                                                           int protocolId)
Get inventory parameter spec parameter with the specified spec id and protocol id parameters and return the Map result.

Parameters:
specId - The spec ID (int) parameter.
protocolId - The protocol ID (int) parameter.
Returns:
Results of the get inventory parameter spec parameter (Map) value.

getParameterSetReaderConfigGPOWriteData

protected java.util.Map getParameterSetReaderConfigGPOWriteData(int portNum,
                                                                int data)
Get parameter set reader config gpowrite data with the specified port num and data parameters and return the Map result.

Parameters:
portNum - The port num (int) parameter.
data - The data (int) parameter.
Returns:
Results of the get parameter set reader config gpowrite data (Map) value.

getROBoundarySpecParameter

protected java.util.Map getROBoundarySpecParameter()
Gets the roboundary spec parameter (Map) value.

Returns:
The roboundary spec parameter (Map) value.

getROReportSpecParameter

protected java.util.Map getROReportSpecParameter(int trigger,
                                                 int tagNum)
Get roreport spec parameter with the specified trigger and tag num parameters and return the Map result.

Parameters:
trigger - The trigger (int) parameter.
tagNum - The tag num (int) parameter.
Returns:
Results of the get roreport spec parameter (Map) value.

getROSpecIDParameter

protected java.util.Map getROSpecIDParameter(int id)
Get rospec idparameter with the specified id parameter and return the Map result.

Parameters:
id - The ID (int) parameter.
Returns:
Results of the get rospec idparameter (Map) value.

getROSpecParameter

protected java.util.Map getROSpecParameter(int id)
Get rospec parameter with the specified id parameter and return the Map result.

Parameters:
id - The ID (int) parameter.
Returns:
Results of the get rospec parameter (Map) value.

getROSpecStartTriggerParameter

protected java.util.Map getROSpecStartTriggerParameter(int type)
Get rospec start trigger parameter with the specified type parameter and return the Map result.

Parameters:
type - The type (int) parameter.
Returns:
Results of the get rospec start trigger parameter (Map) value.

getROSpecStopTriggerParameter

protected java.util.Map getROSpecStopTriggerParameter(int type,
                                                      int duration)
Get rospec stop trigger parameter with the specified type and duration parameters and return the Map result.

Parameters:
type - The type (int) parameter.
duration - The duration (int) parameter.
Returns:
Results of the get rospec stop trigger parameter (Map) value.

getTagReportContentSelectorParameter

protected java.util.Map getTagReportContentSelectorParameter()
Gets the tag report content selector parameter (Map) value.

Returns:
The tag report content selector parameter (Map) value.

runTests

public void runTests()
Run tests.


setup

public void setup()
Sets user-defined variables to use in the test.

See Also:
org.eclipse.soda.dk.device.test.DeviceTest#setup()

2009-10-01 1.2.0

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