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

📄 s4commandresponsemessage.java

📁 state strech routing protocl
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.byte_arg' is signed (false).     */    public static boolean isSigned_type_data_data_args_byte_arg() {        return false;    }    /**     * Return whether the field 'type_data.data.args.byte_arg' is an array (false).     */    public static boolean isArray_type_data_data_args_byte_arg() {        return false;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.byte_arg'     */    public static int offset_type_data_data_args_byte_arg() {        return (96 / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.byte_arg'     */    public static int offsetBits_type_data_data_args_byte_arg() {        return 96;    }    /**     * Return the value (as a short) of the field 'type_data.data.args.byte_arg'     */    public short get_type_data_data_args_byte_arg() {        return (short)getUIntElement(offsetBits_type_data_data_args_byte_arg(), 8);    }    /**     * Set the value of the field 'type_data.data.args.byte_arg'     */    public void set_type_data_data_args_byte_arg(short value) {        setUIntElement(offsetBits_type_data_data_args_byte_arg(), 8, value);    }    /**     * Return the size, in bytes, of the field 'type_data.data.args.byte_arg'     */    public static int size_type_data_data_args_byte_arg() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'type_data.data.args.byte_arg'     */    public static int sizeBits_type_data_data_args_byte_arg() {        return 8;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type_data.data.args.short_arg    //   Field type: int    //   Offset (bits): 96    //   Size (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.short_arg' is signed (false).     */    public static boolean isSigned_type_data_data_args_short_arg() {        return false;    }    /**     * Return whether the field 'type_data.data.args.short_arg' is an array (false).     */    public static boolean isArray_type_data_data_args_short_arg() {        return false;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.short_arg'     */    public static int offset_type_data_data_args_short_arg() {        return (96 / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.short_arg'     */    public static int offsetBits_type_data_data_args_short_arg() {        return 96;    }    /**     * Return the value (as a int) of the field 'type_data.data.args.short_arg'     */    public int get_type_data_data_args_short_arg() {        return (int)getUIntElement(offsetBits_type_data_data_args_short_arg(), 16);    }    /**     * Set the value of the field 'type_data.data.args.short_arg'     */    public void set_type_data_data_args_short_arg(int value) {        setUIntElement(offsetBits_type_data_data_args_short_arg(), 16, value);    }    /**     * Return the size, in bytes, of the field 'type_data.data.args.short_arg'     */    public static int size_type_data_data_args_short_arg() {        return (16 / 8);    }    /**     * Return the size, in bits, of the field 'type_data.data.args.short_arg'     */    public static int sizeBits_type_data_data_args_short_arg() {        return 16;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type_data.data.args.coords.comps    //   Field type: short[]    //   Offset (bits): 96    //   Size of each element (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.coords.comps' is signed (false).     */    public static boolean isSigned_type_data_data_args_coords_comps() {        return false;    }    /**     * Return whether the field 'type_data.data.args.coords.comps' is an array (true).     */    public static boolean isArray_type_data_data_args_coords_comps() {        return true;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.coords.comps'     */    public static int offset_type_data_data_args_coords_comps(int index1) {        int offset = 96;        if (index1 < 0 || index1 >= 8) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 8;        return (offset / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.coords.comps'     */    public static int offsetBits_type_data_data_args_coords_comps(int index1) {        int offset = 96;        if (index1 < 0 || index1 >= 8) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 8;        return offset;    }    /**     * Return the entire array 'type_data.data.args.coords.comps' as a short[]     */    public short[] get_type_data_data_args_coords_comps() {        short[] tmp = new short[8];        for (int index0 = 0; index0 < numElements_type_data_data_args_coords_comps(0); index0++) {            tmp[index0] = getElement_type_data_data_args_coords_comps(index0);        }        return tmp;    }    /**     * Set the contents of the array 'type_data.data.args.coords.comps' from the given short[]     */    public void set_type_data_data_args_coords_comps(short[] value) {        for (int index0 = 0; index0 < value.length; index0++) {            setElement_type_data_data_args_coords_comps(index0, value[index0]);        }    }    /**     * Return an element (as a short) of the array 'type_data.data.args.coords.comps'     */    public short getElement_type_data_data_args_coords_comps(int index1) {        return (short)getUIntElement(offsetBits_type_data_data_args_coords_comps(index1), 8);    }    /**     * Set an element of the array 'type_data.data.args.coords.comps'     */    public void setElement_type_data_data_args_coords_comps(int index1, short value) {        setUIntElement(offsetBits_type_data_data_args_coords_comps(index1), 8, value);    }    /**     * Return the total size, in bytes, of the array 'type_data.data.args.coords.comps'     */    public static int totalSize_type_data_data_args_coords_comps() {        return (64 / 8);    }    /**     * Return the total size, in bits, of the array 'type_data.data.args.coords.comps'     */    public static int totalSizeBits_type_data_data_args_coords_comps() {        return 64;    }    /**     * Return the size, in bytes, of each element of the array 'type_data.data.args.coords.comps'     */    public static int elementSize_type_data_data_args_coords_comps() {        return (8 / 8);    }    /**     * Return the size, in bits, of each element of the array 'type_data.data.args.coords.comps'     */    public static int elementSizeBits_type_data_data_args_coords_comps() {        return 8;    }    /**     * Return the number of dimensions in the array 'type_data.data.args.coords.comps'     */    public static int numDimensions_type_data_data_args_coords_comps() {        return 1;    }    /**     * Return the number of elements in the array 'type_data.data.args.coords.comps'     */    public static int numElements_type_data_data_args_coords_comps() {        return 8;    }    /**     * Return the number of elements in the array 'type_data.data.args.coords.comps'     * for the given dimension.     */    public static int numElements_type_data_data_args_coords_comps(int dimension) {      int array_dims[] = { 8,  };        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 'type_data.data.args.coords.comps' with a String     */    public void setString_type_data_data_args_coords_comps(String s) {          int len = s.length();         int i;         for (i = 0; i < len; i++) {             setElement_type_data_data_args_coords_comps(i, (short)s.charAt(i));         }         setElement_type_data_data_args_coords_comps(i, (short)0); //null terminate    }    /**     * Read the array 'type_data.data.args.coords.comps' as a String     */    public String getString_type_data_data_args_coords_comps() {          char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,8)];         int i;         for (i = 0; i < carr.length; i++) {             if ((char)getElement_type_data_data_args_coords_comps(i) == (char)0) break;             carr[i] = (char)getElement_type_data_data_args_coords_comps(i);         }         return new String(carr,0,i);    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type_data.data.args.info.coords.comps    //   Field type: short[]    //   Offset (bits): 96    //   Size of each element (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.info.coords.comps' is signed (false).     */    public static boolean isSigned_type_data_data_args_info_coords_comps() {        return false;    }    /**     * Return whether the field 'type_data.data.args.info.coords.comps' is an array (true).     */    public static boolean isArray_type_data_data_args_info_coords_comps() {        return true;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.info.coords.comps'     */    public static int offset_type_data_data_args_info_coords_comps(int index1) {        int offset = 96;        if (index1 < 0 || index1 >= 8) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 8;        return (offset / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.info.coords.comps'     */    public static int offsetBits_type_data_data_args_info_coords_comps(int index1) {        int offset = 96;        if (index1 < 0 || index1 >= 8) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 8;        return offset;    }    /**     * Return the entire array 'type_data.data.args.info.coords.comps' as a short[]     */    public short[] get_type_data_data_args_info_coords_comps() {        short[] tmp = new short[8];        for (int index0 = 0; index0 < numElements_type_data_data_args_info_coords_comps(0); index0++) {            tmp[index0] = getElement_type_data_data_args_info_coords_comps(index0);        }        return tmp;    }    /**     * Set the contents of the array 'type_data.data.args.info.coords.comps' from the given short[]     */    public void set_type_data_data_args_info_coords_comps(short[] value) {        for (int index0 = 0; index0 < value.length; index0++) {            setElement_type_data_data_args_info_coords_comps(index0, value[index0]);        }    }    /**     * Return an element (as a short) of the array 'type_data.data.args.info.coords.comps'     */    public short getElement_type_data_data_args_info_coords_comps(int index1) {        return (short)getUIntElement(offsetBits_type_data_data_args_info_coords_comps(index1), 8);    }    /**     * Set an element of the array 'type_data.data.args.info.coords.comps'     */    public void setElement_type_data_data_args_info_coords_comps(int index1, short value) {        setUIntElement(offsetBits_type_data_data_args_info_coords_comps(index1), 8, value);    }    /**     * Return the total size, in bytes, of the array 'type_data.data.args.info.coords.comps'     */    public static int totalSize_type_data_data_args_info_coords_comps() {        return (64 / 8);    }    /**     * Return the total size, in bits, of the array 'type_data.data.args.info.coords.comps'     */    public static int totalSizeBits_type_data_data_args_info_coords_comps() {        return 64;    }    /**     * Return the size, in bytes, of each element of the array 'type_data.data.args.info.coords.comps'     */    public static int elementSize_type_data_data_args_info_coords_comps() {        return (8 / 8);    }    /**     * Return the size, in bits, of each element of the array 'type_data.data.args.info.coords.comps'     */    public static int elementSizeBits_type_data_data_args_info_coords_comps() {        return 8;    }    /**     * Return the number of dimensions in the array 'type_data.data.args.info.coords.comps'     */    public static int numDimensions_type_data_data_args_info_coords_comps() {        return 1;    }    /**     * Return the number of elements in the array 'type_data.data.args.info.coords.comps'     */

⌨️ 快捷键说明

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