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


Java UnsignedShort.length方法代码示例

本文整理汇总了Java中org.llrp.ltk.types.UnsignedShort.length方法的典型用法代码示例。如果您正苦于以下问题:Java UnsignedShort.length方法的具体用法?Java UnsignedShort.length怎么用?Java UnsignedShort.length使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.llrp.ltk.types.UnsignedShort的用法示例。


在下文中一共展示了UnsignedShort.length方法的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;
    numGPIs = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
    numGPOs = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:19,代码来源:GPIOCapabilities.java

示例2: 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

示例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;
    opSpecID = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
    accessPassword = new UnsignedInteger(binary.subList(position,
                UnsignedInteger.length()));
    position += UnsignedInteger.length();
    mB = new TwoBitField(binary.subList(position, TwoBitField.length()));
    position += TwoBitField.length();
    position += reserved0.length();
    wordPointer = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
    wordCount = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:28,代码来源:C1G2BlockErase.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;
    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

示例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;
    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

示例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;
    // array. first 16 bits indicate length of array
    fieldCount = new UnsignedShort(binary.subList(position,
                UnsignedShort.length())).toShort();
    tempLength = (UnsignedIntegerArray.length() * fieldCount) +
        UnsignedShort.length();
    frequency = new UnsignedIntegerArray(binary.subList(position, tempLength));
    position += tempLength;
    LOGGER.debug("decoding array of type: UnsignedIntegerArray with " +
        tempLength + " length");

    //might need padding
    // must always be blocks of 8 bites, if it is a bitlist, this might not be automatically the case
    if ((tempLength % 8) > 0) {
        position += (8 - (tempLength % 8));
        LOGGER.info("padding needed for frequency ");
    }
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:29,代码来源:FixedFrequencyTable.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;
    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

示例9: 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_PC.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;
    cRC = new UnsignedShort(binary.subList(position, UnsignedShort.length()));
    position += UnsignedShort.length();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:15,代码来源:C1G2_CRC.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 C1G2ReadResultType(binary.subList(position,
                C1G2ReadResultType.length()));
    position += C1G2ReadResultType.length();
    opSpecID = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
    // array. first 16 bits indicate length of array
    fieldCount = new UnsignedShort(binary.subList(position,
                UnsignedShort.length())).toShort();
    tempLength = (UnsignedShortArray_HEX.length() * fieldCount) +
        UnsignedShort.length();
    readData = new UnsignedShortArray_HEX(binary.subList(position,
                tempLength));
    position += tempLength;
    LOGGER.debug("decoding array of type: UnsignedShortArray_HEX with " +
        tempLength + " length");

    //might need padding
    // must always be blocks of 8 bites, if it is a bitlist, this might not be automatically the case
    if ((tempLength % 8) > 0) {
        position += (8 - (tempLength % 8));
        LOGGER.info("padding needed for readData ");
    }
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:36,代码来源:C1G2ReadOpSpecResult.java

示例12: 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;
    tagCount = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:16,代码来源:TagSeenCount.java

示例13: 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;
    receiverSensitivity = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:16,代码来源:RFReceiver.java

示例14: 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;
    antennaID = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:16,代码来源:AntennaID.java

示例15: 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;
    session = new TwoBitField(binary.subList(position, TwoBitField.length()));
    position += TwoBitField.length();
    position += reserved0.length();
    tagPopulation = new UnsignedShort(binary.subList(position,
                UnsignedShort.length()));
    position += UnsignedShort.length();
    tagTransitTime = new UnsignedInteger(binary.subList(position,
                UnsignedInteger.length()));
    position += UnsignedInteger.length();

    // look ahead to see type
    // may be optional or exactly once
    type = null;
    tempByteLength = 0;
    tempLength = 0;

    try {
        // if first bit is one it is a TV Parameter
        if (binary.get(position)) {
            // do not take the first bit as it is always 1
            type = new SignedShort(binary.subList(position + 1, 7));
        } else {
            type = new SignedShort(binary.subList(position +
                        RESERVEDLENGTH, TYPENUMBERLENGTH));
            tempByteLength = new UnsignedShort(binary.subList(position +
                        RESERVEDLENGTH + TYPENUMBERLENGTH,
                        UnsignedShort.length())).toShort();
            tempLength = 8 * tempByteLength;
        }
    } catch (IllegalArgumentException le) {
        // if an IllegalArgumentException is thrown, list was not long enough so the parameter is missing
        LOGGER.info(
            "C1G2SingulationControl misses optional parameter of type C1G2TagInventoryStateAwareSingulationAction");
    }

    if (binary.get(position)) {
        // length can statically be determined for TV Parameters
        tempLength = c1G2TagInventoryStateAwareSingulationAction.length();
    }

    if ((type != null) &&
            type.equals(C1G2TagInventoryStateAwareSingulationAction.TYPENUM)) {
        c1G2TagInventoryStateAwareSingulationAction = new C1G2TagInventoryStateAwareSingulationAction(binary.subList(
                    position, tempLength));
        position += tempLength;
        LOGGER.debug(
            " c1G2TagInventoryStateAwareSingulationAction is instantiated with C1G2TagInventoryStateAwareSingulationAction with length" +
            tempLength);
    } else {
        LOGGER.info(
            "C1G2SingulationControl misses optional parameter of type C1G2TagInventoryStateAwareSingulationAction");
    }
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:65,代码来源:C1G2SingulationControl.java


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