⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 querymsg.java

📁 nesC写的heed算法
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    /**     * Return the size, in bits, of the field 'bufferType'     */    public static int sizeBits_bufferType() {        return 5;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: epochDuration    //   Field type: short    //   Offset (bits): 64    //   Size (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'epochDuration' is signed (false).     */    public static boolean isSigned_epochDuration() {        return false;    }    /**     * Return whether the field 'epochDuration' is an array (false).     */    public static boolean isArray_epochDuration() {        return false;    }    /**     * Return the offset (in bytes) of the field 'epochDuration'     */    public static int offset_epochDuration() {        return (64 / 8);    }    /**     * Return the offset (in bits) of the field 'epochDuration'     */    public static int offsetBits_epochDuration() {        return 64;    }    /**     * Return the value (as a short) of the field 'epochDuration'     */    public short get_epochDuration() {        return (short)getSIntElement(offsetBits_epochDuration(), 16);    }    /**     * Set the value of the field 'epochDuration'     */    public void set_epochDuration(short value) {        setSIntElement(offsetBits_epochDuration(), 16, value);    }    /**     * Return the size, in bytes, of the field 'epochDuration'     */    public static int size_epochDuration() {        return (16 / 8);    }    /**     * Return the size, in bits, of the field 'epochDuration'     */    public static int sizeBits_epochDuration() {        return 16;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type    //   Field type: byte    //   Offset (bits): 80    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type' is signed (false).     */    public static boolean isSigned_type() {        return false;    }    /**     * Return whether the field 'type' is an array (false).     */    public static boolean isArray_type() {        return false;    }    /**     * Return the offset (in bytes) of the field 'type'     */    public static int offset_type() {        return (80 / 8);    }    /**     * Return the offset (in bits) of the field 'type'     */    public static int offsetBits_type() {        return 80;    }    /**     * Return the value (as a byte) of the field 'type'     */    public byte get_type() {        return (byte)getSIntElement(offsetBits_type(), 8);    }    /**     * Set the value of the field 'type'     */    public void set_type(byte value) {        setSIntElement(offsetBits_type(), 8, value);    }    /**     * Return the size, in bytes, of the field 'type'     */    public static int size_type() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'type'     */    public static int sizeBits_type() {        return 8;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: idx    //   Field type: byte    //   Offset (bits): 88    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'idx' is signed (false).     */    public static boolean isSigned_idx() {        return false;    }    /**     * Return whether the field 'idx' is an array (false).     */    public static boolean isArray_idx() {        return false;    }    /**     * Return the offset (in bytes) of the field 'idx'     */    public static int offset_idx() {        return (88 / 8);    }    /**     * Return the offset (in bits) of the field 'idx'     */    public static int offsetBits_idx() {        return 88;    }    /**     * Return the value (as a byte) of the field 'idx'     */    public byte get_idx() {        return (byte)getSIntElement(offsetBits_idx(), 8);    }    /**     * Set the value of the field 'idx'     */    public void set_idx(byte value) {        setSIntElement(offsetBits_idx(), 8, value);    }    /**     * Return the size, in bytes, of the field 'idx'     */    public static int size_idx() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'idx'     */    public static int sizeBits_idx() {        return 8;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: timeSyncData    //   Field type: short[]    //   Offset (bits): 96    //   Size of each element (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'timeSyncData' is signed (false).     */    public static boolean isSigned_timeSyncData() {        return false;    }    /**     * Return whether the field 'timeSyncData' is an array (true).     */    public static boolean isArray_timeSyncData() {        return true;    }    /**     * Return the offset (in bytes) of the field 'timeSyncData'     */    public static int offset_timeSyncData(int index1) {        int offset = 96;        if (index1 < 0 || index1 >= 5) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 8;        return (offset / 8);    }    /**     * Return the offset (in bits) of the field 'timeSyncData'     */    public static int offsetBits_timeSyncData(int index1) {        int offset = 96;        if (index1 < 0 || index1 >= 5) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 8;        return offset;    }    /**     * Return the entire array 'timeSyncData' as a short[]     */    public short[] get_timeSyncData() {        short[] tmp = new short[5];        for (int index0 = 0; index0 < numElements_timeSyncData(0); index0++) {            tmp[index0] = getElement_timeSyncData(index0);        }        return tmp;    }    /**     * Set the contents of the array 'timeSyncData' from the given short[]     */    public void set_timeSyncData(short[] value) {        for (int index0 = 0; index0 < value.length; index0++) {            setElement_timeSyncData(index0, value[index0]);        }    }    /**     * Return an element (as a short) of the array 'timeSyncData'     */    public short getElement_timeSyncData(int index1) {        return (short)getUIntElement(offsetBits_timeSyncData(index1), 8);    }    /**     * Set an element of the array 'timeSyncData'     */    public void setElement_timeSyncData(int index1, short value) {        setUIntElement(offsetBits_timeSyncData(index1), 8, value);    }    /**     * Return the total size, in bytes, of the array 'timeSyncData'     */    public static int totalSize_timeSyncData() {        return (40 / 8);    }    /**     * Return the total size, in bits, of the array 'timeSyncData'     */    public static int totalSizeBits_timeSyncData() {        return 40;    }    /**     * Return the size, in bytes, of each element of the array 'timeSyncData'     */    public static int elementSize_timeSyncData() {        return (8 / 8);    }    /**     * Return the size, in bits, of each element of the array 'timeSyncData'     */    public static int elementSizeBits_timeSyncData() {        return 8;    }    /**     * Return the number of dimensions in the array 'timeSyncData'     */    public static int numDimensions_timeSyncData() {        return 1;    }    /**     * Return the number of elements in the array 'timeSyncData'     */    public static int numElements_timeSyncData() {        return 5;    }    /**     * Return the number of elements in the array 'timeSyncData'     * for the given dimension.     */    public static int numElements_timeSyncData(int dimension) {      int array_dims[] = { 5,  };        if (dimension < 0 || dimension >= 1) throw new ArrayIndexOutOfBoundsException();        if (array_dims[dimension] == 0) throw new IllegalArgumentException("Array dimension "+dimension+" has unknown size");        return array_dims[dimension];    }    /**     * Fill in the array 'timeSyncData' with a String     */    public void setString_timeSyncData(String s) {          int len = s.length();         int i;         for (i = 0; i < len; i++) {             setElement_timeSyncData(i, (short)s.charAt(i));         }         setElement_timeSyncData(i, (short)0); //null terminate    }    /**     * Read the array 'timeSyncData' as a String     */    public String getString_timeSyncData() {          char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,5)];         int i;         for (i = 0; i < carr.length; i++) {             if ((char)getElement_timeSyncData(i) == (char)0) break;             carr[i] = (char)getElement_timeSyncData(i);         }         return new String(carr,0,i);    }    /////////////////////////////////////////////////////////    // Accessor methods for field: clockCount    //   Field type: short    //   Offset (bits): 136    //   Size (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'clockCount' is signed (false).     */    public static boolean isSigned_clockCount() {        return false;    }    /**     * Return whether the field 'clockCount' is an array (false).     */    public static boolean isArray_clockCount() {        return false;    }    /**     * Return the offset (in bytes) of the field 'clockCount'     */    public static int offset_clockCount() {        return (136 / 8);    }    /**     * Return the offset (in bits) of the field 'clockCount'     */    public static int offsetBits_clockCount() {        return 136;    }    /**     * Return the value (as a short) of the field 'clockCount'     */    public short get_clockCount() {        return (short)getSIntElement(offsetBits_clockCount(), 16);    }    /**     * Set the value of the field 'clockCount'     */    public void set_clockCount(short value) {        setSIntElement(offsetBits_clockCount(), 16, value);    }    /**     * Return the size, in bytes, of the field 'clockCount'     */    public static int size_clockCount() {        return (16 / 8);    }    /**     * Return the size, in bits, of the field 'clockCount'     */    public static int sizeBits_clockCount() {        return 16;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: u.field.name    //   Field type: byte[]    //   Offset (bits): 152    //   Size of each element (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'u.field.name' is signed (false).     */    public static boolean isSigned_u_field_name() {        return false;    }    /**     * Return whether the field 'u.field.name' is an array (true).     */    public static boolean isArray_u_field_name() {        return true;    }    /**     * Return the offset (in bytes) of the field 'u.field.name'     */    public static int offset_u_field_name(int index1) {        int offset = 152;        if (index1 < 0 || index1 >= 8) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 8;        return (offset / 8);    }    /**     * Return the offset (in bits) of the field 'u.field.name'     */    public static int offsetBits_u_field_name(int index1) {        int offset = 152;        if (index1 < 0 || index1 >= 8) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 8;        return offset;    }    /**     * Return the entire array 'u.field.name' as a byte[]     */    public byte[] get_u_field_name() {        byte[] tmp = new byte[8];        for (int index0 = 0; index0 < numElements_u_field_name(0); index0++) {            tmp[index0] = getElement_u_field_name(index0);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -