|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.llrp.ltk.types.LLRPParameter
org.llrp.ltk.types.TLVParameter
org.llrp.ltk.generated.parameters.AccessCommand
public class AccessCommand
This parameter defines the air protocol access-specific settings. It contains a TagSpec and an OpSpec Parameter. The TagSpec specifies the tag filters in terms of air protocol specific memory capabilities (e.g., memory banks, pointer and length). The OpSpec specifies all the details of the operations required for the air protocol specific access operation commands. In case there are multiple AccessSpecs that get matched during a TagSpec lookup, the Reader SHALL only execute the first enabled AccessSpec that matches, where the ordering of the AccessSpecs is the order in which the AccessSpecs were created by the Client.The order of execution of OpSpecs within an AccessSpec is the order in which the OpSpecs were set up in the AccessSpec. If an OpSpec execution fails, the Reader SHALL stop the execution of the AccessSpec. See also LLRP Specification Section 11.2.1.2 and LLRP Specification Section 16.2.5.1.2 .
| Field Summary | |
|---|---|
protected java.util.List<AccessCommandOpSpec> |
accessCommandOpSpecList
|
protected AirProtocolTagSpec |
airProtocolTagSpec
|
protected java.util.List<Custom> |
customList
|
static SignedShort |
TYPENUM
|
| Fields inherited from class org.llrp.ltk.types.TLVParameter |
|---|
RESERVEDLENGTH, TYPENUMBERLENGTH |
| Fields inherited from class org.llrp.ltk.types.LLRPParameter |
|---|
bitLength |
| Constructor Summary | |
|---|---|
AccessCommand()
empty constructor to create new parameter. |
|
AccessCommand(org.jdom.Element element)
Constructor to create parameter from xml encoded parameter calls decodeXML to decode parameter. |
|
AccessCommand(LLRPBitList list)
Constructor to create parameter from binary encoded parameter calls decodeBinary to decode parameter. |
|
| Method Summary | |
|---|---|
void |
addToAccessCommandOpSpecList(AccessCommandOpSpec accessCommandOpSpec)
add element accessCommandOpSpec of type AccessCommandOpSpec . |
void |
addToCustomList(Custom custom)
add element custom of type Custom . |
protected void |
decodeBinarySpecific(LLRPBitList binary)
decoding function to be implemented by each parameter |
void |
decodeXML(org.jdom.Element element)
create objects from xml. |
LLRPBitList |
encodeBinarySpecific()
protected method to force subclasses to implement their specific encoding |
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
create xml representation of this parameter. |
java.util.List<AccessCommandOpSpec> |
getAccessCommandOpSpecList()
get accessCommandOpSpecList of type List <AccessCommandOpSpec> . |
AirProtocolTagSpec |
getAirProtocolTagSpec()
get airProtocolTagSpec of type AirProtocolTagSpec . |
java.util.List<Custom> |
getCustomList()
get customList of type List <Custom> . |
java.lang.String |
getName()
name of parameter (same as class name) |
SignedShort |
getTypeNum()
type number uniquely identifies a parameter. |
static java.lang.Integer |
length()
For TLV Parameter length can not be determined at compile time. |
void |
setAccessCommandOpSpecList(java.util.List<AccessCommandOpSpec> accessCommandOpSpecList)
set accessCommandOpSpecList of type List <AccessCommandOpSpec>. |
void |
setAirProtocolTagSpec(AirProtocolTagSpec airProtocolTagSpec)
set airProtocolTagSpec of type AirProtocolTagSpec. |
void |
setCustomList(java.util.List<Custom> customList)
set customList of type List <Custom>. |
java.lang.String |
toString()
return string representation. |
| Methods inherited from class org.llrp.ltk.types.TLVParameter |
|---|
decodeBinary, encodeBinary |
| Methods inherited from class org.llrp.ltk.types.LLRPParameter |
|---|
getByteLength |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SignedShort TYPENUM
protected AirProtocolTagSpec airProtocolTagSpec
protected java.util.List<AccessCommandOpSpec> accessCommandOpSpecList
protected java.util.List<Custom> customList
| Constructor Detail |
|---|
public AccessCommand()
public AccessCommand(LLRPBitList list)
list - to be decoded
public AccessCommand(org.jdom.Element element)
throws InvalidLLRPMessageException
element - to be decoded
InvalidLLRPMessageException| Method Detail |
|---|
public LLRPBitList encodeBinarySpecific()
encodeBinarySpecific in class TLVParameter
public org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
encodeXML in class LLRPParametername - of elementns - Namespace of elementsprotected void decodeBinarySpecific(LLRPBitList binary)
decodeBinarySpecific in class TLVParameterbinary - binary representation of the parameter
public void decodeXML(org.jdom.Element element)
throws InvalidLLRPMessageException
decodeXML in class LLRPParameterelement - to be decoded
InvalidLLRPMessageExceptionpublic void setAirProtocolTagSpec(AirProtocolTagSpec airProtocolTagSpec)
airProtocolTagSpec - to be setpublic void setAccessCommandOpSpecList(java.util.List<AccessCommandOpSpec> accessCommandOpSpecList)
accessCommandOpSpecList - to be setpublic void setCustomList(java.util.List<Custom> customList)
customList - to be setpublic AirProtocolTagSpec getAirProtocolTagSpec()
public java.util.List<AccessCommandOpSpec> getAccessCommandOpSpecList()
public java.util.List<Custom> getCustomList()
public void addToAccessCommandOpSpecList(AccessCommandOpSpec accessCommandOpSpec)
accessCommandOpSpec - of type AccessCommandOpSpecpublic void addToCustomList(Custom custom)
custom - of type Custompublic static java.lang.Integer length()
public SignedShort getTypeNum()
getTypeNum in class LLRPParameterpublic java.lang.String getName()
getName in class LLRPParameterpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||