当前位置: 首页>>代码示例>>Java>>正文


Java UnsignedShort类代码示例

本文整理汇总了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();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:21,代码来源:C1G2LLRPCapabilities.java

示例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);
    }
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:28,代码来源:C1G2_PC.java

示例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();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:19,代码来源:TransmitPowerLevelTableEntry.java

示例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();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:19,代码来源:C1G2LockOpSpecResult.java

示例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();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:19,代码来源:AntennaEvent.java

示例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();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:19,代码来源:GPOWriteData.java

示例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();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:19,代码来源:C1G2Kill.java

示例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();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:19,代码来源:ReceiveSensitivityTableEntry.java

示例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);
    }
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:28,代码来源:AntennaID.java

示例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();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:21,代码来源:GPIPortCurrentState.java

示例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();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:22,代码来源:C1G2BlockWriteOpSpecResult.java

示例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;
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:12,代码来源:C1G2_CRC.java

示例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);
    }
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:35,代码来源:TransmitPowerLevelTableEntry.java

示例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);
    }
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:35,代码来源:GPIEvent.java

示例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);
    }
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:35,代码来源:C1G2KillOpSpecResult.java


注:本文中的org.llrp.ltk.types.UnsignedShort类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。