|
2008-02-07 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDeviceTest
org.eclipse.soda.dk.epcglobal.llrp.device.test.EpcglobalLlrpDeviceTest
public class EpcglobalLlrpDeviceTest
EPCglobal Low Level Reader Protocol (LLRP) Device Test. The EpcglobalLlrpDeviceTest class implements a set of devicetest tests.
The list of exported services:
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()
Gets the default DeviceService to be tested. |
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[] args)
Main method to run tests in a standalone 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 |
|---|
public static final java.lang.String CLASS_NAME
| Constructor Detail |
|---|
public EpcglobalLlrpDeviceTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - EpcglobalLlrpDeviceprotected java.util.Map getAISpecParameter(int[] antennaIds)
antennaIds - The antenna ids (int[]) parameter.
Map) value.
protected java.util.Map getAISpecStopTriggerParameter(int type,
int duration)
type - The type (int) parameter.duration - The duration (int) parameter.
Map) value.protected java.util.Map getAccessCommandParameter()
Map) value.protected java.util.Map getAccessReportSpecParameter(int accessReportTrigger)
accessReportTrigger - The access report trigger (int) parameter.
Map) value.protected java.util.Map getAccessSpecIDParameter(int id)
id - The id (int) parameter.
Map) value.protected java.util.Map getAccessSpecParameter()
Map) value.getAccessSpecParameter(int,int,int,boolean,int)
protected java.util.Map getAccessSpecParameter(int accessSpecId,
int antennaId,
int protocolId,
boolean currentState,
int ROSpecId)
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.
Map) value.getAccessSpecParameter()
protected java.util.Map getAccessSpecStopTriggerParameter(int accessSpecStopTrigger,
int operationCountValue)
accessSpecStopTrigger - The access spec stop trigger (int) parameter.operationCountValue - The operation count value (int) parameter.
Map) value.protected java.util.Map getAddAccessSpecCommandParameters()
Map) value.protected java.util.Map getAddROSpecCommandParameters(int id)
id - The id (int) parameter.
Map) value.
protected java.util.Map getC1G2ReadParameter(int OpSpecId,
int accessPassword,
int memoryBank,
int wordPointer,
int wordCount)
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.
Map) value.protected java.util.Map getC1G2TagSpecParameter()
Map) value.
protected java.util.Map getC1G2TargetTagParameter(int memoryBank,
boolean match,
int pointer,
java.lang.String tagMask,
java.lang.String tagData)
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.
Map) value.
protected java.util.Map getC1G2WriteParameter(int OpSpecId,
int accessPassword,
int memoryBank,
int wordPointer,
int wordCount,
java.lang.String writeData)
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.
Map) value.protected java.util.Map getDelete_Enable_DisableAccessSpecCommandParameters(int accessSpecId)
accessSpecId - The access spec id (int) parameter.
Map) value.protected java.util.Map getEnableGPIStateParameter()
Map) value.protected java.util.Map getEnable_Stop_DeleteROSpecParameters(int id)
id - The id (int) parameter.
Map) value.
protected java.util.Map getGPIPortCurrentStateParameter(int gpiPortNum,
boolean enable)
gpiPortNum - The gpi port num (int) parameter.enable - The enable (boolean) parameter.
Map) value.
protected java.util.Map getGPITriggerValueParameter(int gpiPortNum,
int gpiEvent,
int timeout)
gpiPortNum - The gpi port num (int) parameter.gpiEvent - The gpi event (int) parameter.timeout - The timeout (int) parameter.
Map) value.protected java.util.Map getGetGPIStateParameter(int gpiPortNum)
gpiPortNum - The gpi port num (int) parameter.
Map) value.
protected java.util.Map getInventoryParameterSpecParameter(int specId,
int protocolId)
specId - The spec id (int) parameter.protocolId - The protocol id (int) parameter.
Map) value.
protected java.util.Map getParameterSetReaderConfigGPOWriteData(int portNum,
int data)
portNum - The port num (int) parameter.data - The data (int) parameter.
Map) value.protected java.util.Map getROBoundarySpecParameter()
Map) value.
protected java.util.Map getROReportSpecParameter(int trigger,
int tagNum)
trigger - The trigger (int) parameter.tagNum - The tag num (int) parameter.
Map) value.protected java.util.Map getROSpecIDParameter(int id)
id - The id (int) parameter.
Map) value.protected java.util.Map getROSpecParameter(int id)
id - The id (int) parameter.
Map) value.protected java.util.Map getROSpecStartTriggerParameter(int type)
type - The type (int) parameter.
Map) value.
protected java.util.Map getROSpecStopTriggerParameter(int type,
int duration)
type - The type (int) parameter.duration - The duration (int) parameter.
Map) value.protected java.util.Map getTagReportContentSelectorParameter()
Map) value.protected static java.lang.String zeros(int num)
num - The num (int) parameter.
String) value.public void runTests()
protected static byte[] str2byteArray(java.lang.String str)
str - The str (String) parameter.
byte[]) value.
public DeviceService getDefaultDevice()
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationExceptionorg.eclipse.soda.dk.device.test.DeviceTest#getDefaultDevice()public void setup()
org.eclipse.soda.dk.device.test.DeviceTest#setup()
|
2008-02-07 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||