public class ImpinjMarginRead extends Custom implements AccessCommandOpSpec
Modifier and Type | Field and Description |
---|---|
protected UnsignedInteger |
accessPassword |
protected UnsignedByte |
bitLength |
protected UnsignedShort |
bitPointer |
protected UnsignedShortArray_HEX |
mask |
protected TwoBitField |
mB |
protected UnsignedShort |
opSpecID |
static UnsignedInteger |
PARAMETER_SUBTYPE |
static UnsignedInteger |
VENDOR_ID |
data, parameterSubtype, TYPENUM, vendorIdentifier
RESERVEDLENGTH, TYPENUMBERLENGTH
Constructor and Description |
---|
ImpinjMarginRead()
empty constructor to create new parameter.
|
ImpinjMarginRead(Custom custom)
Constructor to create this parameter from custom parameter
|
ImpinjMarginRead(org.jdom.Element element)
Constructor to create parameter from xml encoded parameter
calls decodeXML to decode parameter.
|
ImpinjMarginRead(LLRPBitList list)
Constructor to create parameter from binary encoded parameter
calls decodeBinary to decode parameter.
|
Modifier and Type | Method and Description |
---|---|
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.
|
UnsignedInteger |
getAccessPassword()
get accessPassword of type UnsignedInteger.
|
UnsignedByte |
getBitLength()
get bitLength of type UnsignedByte.
|
UnsignedShort |
getBitPointer()
get bitPointer of type UnsignedShort.
|
java.util.List<Custom> |
getCustomList()
get customList of type List <Custom> .
|
UnsignedShortArray_HEX |
getMask()
get mask of type UnsignedShortArray_HEX.
|
TwoBitField |
getMB()
get mB of type TwoBitField.
|
java.lang.String |
getName()
name of parameter (same as class name)
|
UnsignedShort |
getOpSpecID()
get opSpecID of type UnsignedShort.
|
static java.lang.Integer |
length()
For TLV Parameter length can not be determined at compile time.
|
void |
setAccessPassword(UnsignedInteger accessPassword)
set accessPassword of type UnsignedInteger .
|
void |
setBitLength(UnsignedByte bitLength)
set bitLength of type UnsignedByte .
|
void |
setBitPointer(UnsignedShort bitPointer)
set bitPointer of type UnsignedShort .
|
void |
setCustomList(java.util.List<Custom> customList)
set customList of type List <Custom>.
|
void |
setMask(UnsignedShortArray_HEX mask)
set mask of type UnsignedShortArray_HEX .
|
void |
setMB(TwoBitField mB)
set mB of type TwoBitField .
|
void |
setOpSpecID(UnsignedShort opSpecID)
set opSpecID of type UnsignedShort .
|
getData, getParameterSubtype, getTypeNum, getVendorIdentifier, setData, setParameterSubtype, setVendorIdentifier, toString
decodeBinary, encodeBinary
getByteLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decodeBinary, encodeBinary
decodeBinary, encodeBinary
decodeBinary, encodeBinary
public static final UnsignedInteger PARAMETER_SUBTYPE
public static final UnsignedInteger VENDOR_ID
protected UnsignedShort opSpecID
protected UnsignedInteger accessPassword
protected TwoBitField mB
protected UnsignedShort bitPointer
protected UnsignedByte bitLength
protected UnsignedShortArray_HEX mask
public ImpinjMarginRead()
public ImpinjMarginRead(LLRPBitList list)
list
- to be decodedpublic ImpinjMarginRead(org.jdom.Element element) throws InvalidLLRPMessageException
element
- is the xml element to be decodedInvalidLLRPMessageException
public ImpinjMarginRead(Custom custom)
custom
- public LLRPBitList encodeBinarySpecific()
Custom
encodeBinarySpecific
in class Custom
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
encodeXML
in interface AccessCommandOpSpec
encodeXML
in interface AccessCommandOpSpecResult
encodeXML
in interface SpecParameter
encodeXML
in class Custom
name
- of elementns
- Namespace of elementsprotected void decodeBinarySpecific(LLRPBitList binary)
Custom
decodeBinarySpecific
in class Custom
binary
- binary representation of the parameterpublic void decodeXML(org.jdom.Element element) throws InvalidLLRPMessageException
decodeXML
in interface AccessCommandOpSpec
decodeXML
in interface AccessCommandOpSpecResult
decodeXML
in interface SpecParameter
decodeXML
in class Custom
element
- to be decodedInvalidLLRPMessageException
public void setOpSpecID(UnsignedShort opSpecID)
opSpecID
- to be setpublic void setAccessPassword(UnsignedInteger accessPassword)
accessPassword
- to be setpublic void setMB(TwoBitField mB)
mB
- to be setpublic void setBitPointer(UnsignedShort bitPointer)
bitPointer
- to be setpublic void setBitLength(UnsignedByte bitLength)
bitLength
- to be setpublic void setMask(UnsignedShortArray_HEX mask)
mask
- to be setpublic void setCustomList(java.util.List<Custom> customList)
customList
- to be setpublic UnsignedShort getOpSpecID()
public UnsignedInteger getAccessPassword()
public TwoBitField getMB()
public UnsignedShort getBitPointer()
public UnsignedByte getBitLength()
public UnsignedShortArray_HEX getMask()
public java.util.List<Custom> getCustomList()
public void addToCustomList(Custom custom)
custom
- of type Custompublic static java.lang.Integer length()
Copyright © 2007 ETH Zurich.