public class AccessSpec extends TLVParameter
Modifier and Type | Field and Description |
---|---|
protected AccessCommand |
accessCommand |
protected AccessReportSpec |
accessReportSpec |
protected UnsignedInteger |
accessSpecID |
protected AccessSpecStopTrigger |
accessSpecStopTrigger |
protected UnsignedShort |
antennaID |
protected AccessSpecState |
currentState |
protected java.util.List<Custom> |
customList |
protected AirProtocols |
protocolID |
protected BitList |
reserved0 |
protected UnsignedInteger |
rOSpecID |
static SignedShort |
TYPENUM |
RESERVEDLENGTH, TYPENUMBERLENGTH
bitLength
Constructor and Description |
---|
AccessSpec()
empty constructor to create new parameter.
|
AccessSpec(org.jdom.Element element)
Constructor to create parameter from xml encoded parameter
calls decodeXML to decode parameter.
|
AccessSpec(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.
|
AccessCommand |
getAccessCommand()
get accessCommand of type AccessCommand .
|
AccessReportSpec |
getAccessReportSpec()
get accessReportSpec of type AccessReportSpec .
|
UnsignedInteger |
getAccessSpecID()
get accessSpecID of type UnsignedInteger.
|
AccessSpecStopTrigger |
getAccessSpecStopTrigger()
get accessSpecStopTrigger of type AccessSpecStopTrigger .
|
UnsignedShort |
getAntennaID()
get antennaID of type UnsignedShort.
|
AccessSpecState |
getCurrentState()
get currentState of type AccessSpecState.
|
java.util.List<Custom> |
getCustomList()
get customList of type List <Custom> .
|
java.lang.String |
getName()
name of parameter (same as class name)
|
AirProtocols |
getProtocolID()
get protocolID of type AirProtocols.
|
UnsignedInteger |
getROSpecID()
get rOSpecID of type UnsignedInteger.
|
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 |
setAccessCommand(AccessCommand accessCommand)
set accessCommand of type AccessCommand.
|
void |
setAccessReportSpec(AccessReportSpec accessReportSpec)
set accessReportSpec of type AccessReportSpec.
|
void |
setAccessSpecID(UnsignedInteger accessSpecID)
set accessSpecID of type UnsignedInteger .
|
void |
setAccessSpecStopTrigger(AccessSpecStopTrigger accessSpecStopTrigger)
set accessSpecStopTrigger of type AccessSpecStopTrigger.
|
void |
setAntennaID(UnsignedShort antennaID)
set antennaID of type UnsignedShort .
|
void |
setCurrentState(AccessSpecState currentState)
set currentState of type AccessSpecState .
|
void |
setCustomList(java.util.List<Custom> customList)
set customList of type List <Custom>.
|
void |
setProtocolID(AirProtocols protocolID)
set protocolID of type AirProtocols .
|
void |
setROSpecID(UnsignedInteger rOSpecID)
set rOSpecID of type UnsignedInteger .
|
java.lang.String |
toString()
return string representation.
|
decodeBinary, encodeBinary
getByteLength
public static final SignedShort TYPENUM
protected UnsignedInteger accessSpecID
protected UnsignedShort antennaID
protected AirProtocols protocolID
protected AccessSpecState currentState
protected BitList reserved0
protected UnsignedInteger rOSpecID
protected AccessSpecStopTrigger accessSpecStopTrigger
protected AccessCommand accessCommand
protected AccessReportSpec accessReportSpec
protected java.util.List<Custom> customList
public AccessSpec()
public AccessSpec(LLRPBitList list)
list
- to be decodedpublic AccessSpec(org.jdom.Element element) throws InvalidLLRPMessageException
element
- to be decodedInvalidLLRPMessageException
public LLRPBitList encodeBinarySpecific()
encodeBinarySpecific
in class TLVParameter
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
encodeXML
in class LLRPParameter
name
- of elementns
- Namespace of elementsprotected void decodeBinarySpecific(LLRPBitList binary)
decodeBinarySpecific
in class TLVParameter
binary
- binary representation of the parameterpublic void decodeXML(org.jdom.Element element) throws InvalidLLRPMessageException
decodeXML
in class LLRPParameter
element
- to be decodedInvalidLLRPMessageException
public void setAccessSpecID(UnsignedInteger accessSpecID)
accessSpecID
- to be setpublic void setAntennaID(UnsignedShort antennaID)
antennaID
- to be setpublic void setProtocolID(AirProtocols protocolID)
protocolID
- to be setpublic void setCurrentState(AccessSpecState currentState)
currentState
- to be setpublic void setROSpecID(UnsignedInteger rOSpecID)
rOSpecID
- to be setpublic void setAccessSpecStopTrigger(AccessSpecStopTrigger accessSpecStopTrigger)
accessSpecStopTrigger
- to be setpublic void setAccessCommand(AccessCommand accessCommand)
accessCommand
- to be setpublic void setAccessReportSpec(AccessReportSpec accessReportSpec)
accessReportSpec
- to be setpublic void setCustomList(java.util.List<Custom> customList)
customList
- to be setpublic UnsignedInteger getAccessSpecID()
public UnsignedShort getAntennaID()
public AirProtocols getProtocolID()
public AccessSpecState getCurrentState()
public UnsignedInteger getROSpecID()
public AccessSpecStopTrigger getAccessSpecStopTrigger()
public AccessCommand getAccessCommand()
public AccessReportSpec getAccessReportSpec()
public java.util.List<Custom> getCustomList()
public void addToCustomList(Custom custom)
custom
- of type Custompublic static java.lang.Integer length()
public SignedShort getTypeNum()
getTypeNum
in class LLRPParameter
public java.lang.String getName()
getName
in class LLRPParameter
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007 ETH Zurich.