本文整理汇总了Java中org.llrp.ltk.types.UnsignedShort类的典型用法代码示例。如果您正苦于以下问题:Java UnsignedShort类的具体用法?Java UnsignedShort怎么用?Java UnsignedShort使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UnsignedShort类属于org.llrp.ltk.types包,在下文中一共展示了UnsignedShort类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: decodeBinarySpecific
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0;
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
Custom custom;
canSupportBlockErase = new Bit(binary.subList(position, Bit.length()));
position += Bit.length();
canSupportBlockWrite = new Bit(binary.subList(position, Bit.length()));
position += Bit.length();
position += reserved0.length();
maxNumSelectFiltersPerQuery = new UnsignedShort(binary.subList(
position, UnsignedShort.length()));
position += UnsignedShort.length();
}
示例2: decodeXML
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void decodeXML(Element element) throws InvalidLLRPMessageException {
List<Element> tempList = null;
boolean atLeastOnce = false;
Custom custom;
Element temp = null;
// child element are always in default LLRP namespace
Namespace ns = Namespace.getNamespace(LLRPConstants.LLRPNAMESPACE);
temp = element.getChild("PC_Bits", ns);
if (temp != null) {
pC_Bits = new UnsignedShort(temp);
}
element.removeChild("PC_Bits", ns);
if (element.getChildren().size() > 0) {
String message = "C1G2_PC has unknown element " +
((Element) element.getChildren().get(0)).getName();
throw new InvalidLLRPMessageException(message);
}
}
示例3: decodeBinarySpecific
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0;
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
Custom custom;
index = new UnsignedShort(binary.subList(position,
UnsignedShort.length()));
position += UnsignedShort.length();
transmitPowerValue = new SignedShort(binary.subList(position,
SignedShort.length()));
position += SignedShort.length();
}
示例4: decodeBinarySpecific
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0;
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
Custom custom;
result = new C1G2LockResultType(binary.subList(position,
C1G2LockResultType.length()));
position += C1G2LockResultType.length();
opSpecID = new UnsignedShort(binary.subList(position,
UnsignedShort.length()));
position += UnsignedShort.length();
}
示例5: decodeBinarySpecific
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0;
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
Custom custom;
eventType = new AntennaEventType(binary.subList(position,
AntennaEventType.length()));
position += AntennaEventType.length();
antennaID = new UnsignedShort(binary.subList(position,
UnsignedShort.length()));
position += UnsignedShort.length();
}
示例6: decodeBinarySpecific
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0;
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
Custom custom;
gPOPortNumber = new UnsignedShort(binary.subList(position,
UnsignedShort.length()));
position += UnsignedShort.length();
gPOData = new Bit(binary.subList(position, Bit.length()));
position += Bit.length();
position += reserved0.length();
}
示例7: decodeBinarySpecific
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0;
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
Custom custom;
opSpecID = new UnsignedShort(binary.subList(position,
UnsignedShort.length()));
position += UnsignedShort.length();
killPassword = new UnsignedInteger(binary.subList(position,
UnsignedInteger.length()));
position += UnsignedInteger.length();
}
示例8: decodeBinarySpecific
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0;
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
Custom custom;
index = new UnsignedShort(binary.subList(position,
UnsignedShort.length()));
position += UnsignedShort.length();
receiveSensitivityValue = new SignedShort(binary.subList(position,
SignedShort.length()));
position += SignedShort.length();
}
示例9: decodeXML
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void decodeXML(Element element) throws InvalidLLRPMessageException {
List<Element> tempList = null;
boolean atLeastOnce = false;
Custom custom;
Element temp = null;
// child element are always in default LLRP namespace
Namespace ns = Namespace.getNamespace(LLRPConstants.LLRPNAMESPACE);
temp = element.getChild("AntennaID", ns);
if (temp != null) {
antennaID = new UnsignedShort(temp);
}
element.removeChild("AntennaID", ns);
if (element.getChildren().size() > 0) {
String message = "AntennaID has unknown element " +
((Element) element.getChildren().get(0)).getName();
throw new InvalidLLRPMessageException(message);
}
}
示例10: decodeBinarySpecific
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0;
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
Custom custom;
gPIPortNum = new UnsignedShort(binary.subList(position,
UnsignedShort.length()));
position += UnsignedShort.length();
config = new Bit(binary.subList(position, Bit.length()));
position += Bit.length();
position += reserved0.length();
state = new GPIPortState(binary.subList(position, GPIPortState.length()));
position += GPIPortState.length();
}
示例11: decodeBinarySpecific
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
protected void decodeBinarySpecific(LLRPBitList binary) {
int position = 0;
int tempByteLength;
int tempLength = 0;
int count;
SignedShort type;
int fieldCount;
Custom custom;
result = new C1G2BlockWriteResultType(binary.subList(position,
C1G2BlockWriteResultType.length()));
position += C1G2BlockWriteResultType.length();
opSpecID = new UnsignedShort(binary.subList(position,
UnsignedShort.length()));
position += UnsignedShort.length();
numWordsWritten = new UnsignedShort(binary.subList(position,
UnsignedShort.length()));
position += UnsignedShort.length();
}
示例12: length
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* return length of parameter. For TV Parameter it is always length of its field plus 8 bits for type.
* @return Integer giving length
*/
public static Integer length() {
int tempLength = PARAMETERTYPELENGTH;
// the length of a TV parameter in bits is always the type
tempLength += UnsignedShort.length();
return tempLength;
}
示例13: decodeXML
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void decodeXML(Element element) throws InvalidLLRPMessageException {
List<Element> tempList = null;
boolean atLeastOnce = false;
Custom custom;
Element temp = null;
// child element are always in default LLRP namespace
Namespace ns = Namespace.getNamespace(LLRPConstants.LLRPNAMESPACE);
temp = element.getChild("Index", ns);
if (temp != null) {
index = new UnsignedShort(temp);
}
element.removeChild("Index", ns);
temp = element.getChild("TransmitPowerValue", ns);
if (temp != null) {
transmitPowerValue = new SignedShort(temp);
}
element.removeChild("TransmitPowerValue", ns);
if (element.getChildren().size() > 0) {
String message = "TransmitPowerLevelTableEntry has unknown element " +
((Element) element.getChildren().get(0)).getName();
throw new InvalidLLRPMessageException(message);
}
}
示例14: decodeXML
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void decodeXML(Element element) throws InvalidLLRPMessageException {
List<Element> tempList = null;
boolean atLeastOnce = false;
Custom custom;
Element temp = null;
// child element are always in default LLRP namespace
Namespace ns = Namespace.getNamespace(LLRPConstants.LLRPNAMESPACE);
temp = element.getChild("GPIPortNumber", ns);
if (temp != null) {
gPIPortNumber = new UnsignedShort(temp);
}
element.removeChild("GPIPortNumber", ns);
temp = element.getChild("GPIEvent", ns);
if (temp != null) {
gPIEvent = new Bit(temp);
}
element.removeChild("GPIEvent", ns);
if (element.getChildren().size() > 0) {
String message = "GPIEvent has unknown element " +
((Element) element.getChildren().get(0)).getName();
throw new InvalidLLRPMessageException(message);
}
}
示例15: decodeXML
import org.llrp.ltk.types.UnsignedShort; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void decodeXML(Element element) throws InvalidLLRPMessageException {
List<Element> tempList = null;
boolean atLeastOnce = false;
Custom custom;
Element temp = null;
// child element are always in default LLRP namespace
Namespace ns = Namespace.getNamespace(LLRPConstants.LLRPNAMESPACE);
temp = element.getChild("Result", ns);
if (temp != null) {
result = new C1G2KillResultType(temp);
}
element.removeChild("Result", ns);
temp = element.getChild("OpSpecID", ns);
if (temp != null) {
opSpecID = new UnsignedShort(temp);
}
element.removeChild("OpSpecID", ns);
if (element.getChildren().size() > 0) {
String message = "C1G2KillOpSpecResult has unknown element " +
((Element) element.getChildren().get(0)).getName();
throw new InvalidLLRPMessageException(message);
}
}