2010-01-26 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.helper
Class LLRPUtils

java.lang.Object
  extended by org.eclipse.soda.dk.epcglobal.llrp.helper.LLRPUtils

public class LLRPUtils
extends java.lang.Object

Since:
1.0
Version:
1.2.0

Constructor Summary
LLRPUtils()
           
 
Method Summary
static java.lang.String byteArray2Str(byte[] bytes)
          Byte array2 str with the specified bytes parameter and return the String result.
static byte[] convertIntListToBytes(java.util.List intList)
          Convert int list to bytes with the specified int list parameter and return the byte[] result.
static java.lang.String displayByteArray(byte[] bytes)
          Display byte array with the specified bytes parameter and return the String result.
static java.lang.Number extractAntennaId(java.util.Map antennaIdParam)
          Extract antenna id with the specified antenna id param parameter and return the Integer result.
static int extractROSpecStartTrigger(java.util.Map rOSpecParameter)
          Extract rospec start trigger with the specified r ospec parameter parameter and return the int result.
static int extractROSpecStopTrigger(java.util.Map rOSpecParameter)
          Extract rospec stop trigger with the specified r ospec parameter parameter and return the int result.
static java.lang.String extractTag(java.util.Map EPCParameterChoice)
          Extract tag with the specified epcparameter choice parameter and return the String result.
static java.lang.Number extractTagSeenCount(java.util.Map tagSeenCountParam)
          Extract tag seen count with the specified tag seen count param parameter and return the Integer result.
static int getAccessOpResultCode(java.util.Map resultMap)
          Get access op result code with the specified result map parameter and return the int result.
static java.lang.String handleErrorResponse(java.lang.String sourceTask, java.util.Map paramMap)
          Handle error response with the specified source task and param map parameters and return the String result.
static java.lang.String hexStrIncrement(java.lang.String str, int inc)
          Hex str increment with the specified str and inc parameters and return the String result.
static boolean isValidTagId(java.lang.String tagId)
          Is valid tag id with the specified tag id parameter and return the boolean result.
static void main(java.lang.String[] arguments)
          Main with the specified arguments parameter.
static byte[] str2byteArray(java.lang.String str)
          Str2byte array with the specified str parameter and return the byte[] result.
static java.util.List str2wordList(java.lang.String str)
          Str2word list with the specified str parameter and return the List result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LLRPUtils

public LLRPUtils()
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.

convertIntListToBytes

public static byte[] convertIntListToBytes(java.util.List intList)
Convert int list to bytes with the specified int list parameter and return the byte[] result.

Parameters:
intList - The int list (List) parameter.
Returns:
Results of the convert int list to bytes (byte[]) value.

displayByteArray

public static java.lang.String displayByteArray(byte[] bytes)
Display byte array with the specified bytes parameter and return the String result.

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

extractAntennaId

public static java.lang.Number extractAntennaId(java.util.Map antennaIdParam)
Extract antenna id with the specified antenna id param parameter and return the Integer result.

Parameters:
antennaIdParam - The antenna id param (Map) parameter.
Returns:
Results of the extract antenna id (Integer) value.

extractROSpecStartTrigger

public static int extractROSpecStartTrigger(java.util.Map rOSpecParameter)
Extract rospec start trigger with the specified r ospec parameter parameter and return the int result.

Parameters:
rOSpecParameter - The r ospec parameter (Map) parameter.
Returns:
Results of the extract rospec start trigger (int) value.

extractROSpecStopTrigger

public static int extractROSpecStopTrigger(java.util.Map rOSpecParameter)
Extract rospec stop trigger with the specified r ospec parameter parameter and return the int result.

Parameters:
rOSpecParameter - The r ospec parameter (Map) parameter.
Returns:
Results of the extract rospec stop trigger (int) value.

extractTag

public static java.lang.String extractTag(java.util.Map EPCParameterChoice)
Extract tag with the specified epcparameter choice parameter and return the String result.

Parameters:
EPCParameterChoice - The epcparameter choice (Map) parameter.
Returns:
Results of the extract tag (String) value.

extractTagSeenCount

public static java.lang.Number extractTagSeenCount(java.util.Map tagSeenCountParam)
Extract tag seen count with the specified tag seen count param parameter and return the Integer result.

Parameters:
tagSeenCountParam - The tag seen count param (Map) parameter.
Returns:
Results of the extract tag seen count (Integer) value.

getAccessOpResultCode

public static int getAccessOpResultCode(java.util.Map resultMap)
Get access op result code with the specified result map parameter and return the int result.

Parameters:
resultMap - The result map (Map) parameter.
Returns:
Results of the get access op result code (int) value.

handleErrorResponse

public static java.lang.String handleErrorResponse(java.lang.String sourceTask,
                                                   java.util.Map paramMap)
Handle error response with the specified source task and param map parameters and return the String result.

Parameters:
sourceTask - The source task (String) parameter.
paramMap - The param map (Map) parameter.
Returns:
Results of the handle error response (String) value.

hexStrIncrement

public static java.lang.String hexStrIncrement(java.lang.String str,
                                               int inc)
Hex str increment with the specified str and inc parameters and return the String result.

Parameters:
str - The str (String) parameter.
inc - The inc (int) parameter.
Returns:
Results of the hex str increment (String) value.

isValidTagId

public static boolean isValidTagId(java.lang.String tagId)
Is valid tag id with the specified tag id parameter and return the boolean result.

Parameters:
tagId - The tag id (String) parameter.
Returns:
Results of the is valid tag id (boolean) value.

main

public static void main(java.lang.String[] arguments)
Main with the specified arguments parameter.

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

str2byteArray

public 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.
See Also:
displayByteArray(byte[])

str2wordList

public static java.util.List str2wordList(java.lang.String str)
Str2word list with the specified str parameter and return the List result.

Parameters:
str - The str (String) parameter.
Returns:
Results of the str2word list (List) value.

2010-01-26 1.2.0

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