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

📄 commandresponsemessage.java

📁 state strech routing protocl
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    public static int offsetBits_cmd_response_args_count_info_count(int index1) {        int offset = 56;        if (index1 < 0 || index1 >= 10) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 16;        return offset;    }    /**     * Return the entire array 'cmd_response.args.count_info.count' as a int[]     */    public int[] get_cmd_response_args_count_info_count() {        int[] tmp = new int[10];        for (int index0 = 0; index0 < numElements_cmd_response_args_count_info_count(0); index0++) {            tmp[index0] = getElement_cmd_response_args_count_info_count(index0);        }        return tmp;    }    /**     * Set the contents of the array 'cmd_response.args.count_info.count' from the given int[]     */    public void set_cmd_response_args_count_info_count(int[] value) {        for (int index0 = 0; index0 < value.length; index0++) {            setElement_cmd_response_args_count_info_count(index0, value[index0]);        }    }    /**     * Return an element (as a int) of the array 'cmd_response.args.count_info.count'     */    public int getElement_cmd_response_args_count_info_count(int index1) {        return (int)getUIntElement(offsetBits_cmd_response_args_count_info_count(index1), 16);    }    /**     * Set an element of the array 'cmd_response.args.count_info.count'     */    public void setElement_cmd_response_args_count_info_count(int index1, int value) {        setUIntElement(offsetBits_cmd_response_args_count_info_count(index1), 16, value);    }    /**     * Return the total size, in bytes, of the array 'cmd_response.args.count_info.count'     */    public static int totalSize_cmd_response_args_count_info_count() {        return (160 / 8);    }    /**     * Return the total size, in bits, of the array 'cmd_response.args.count_info.count'     */    public static int totalSizeBits_cmd_response_args_count_info_count() {        return 160;    }    /**     * Return the size, in bytes, of each element of the array 'cmd_response.args.count_info.count'     */    public static int elementSize_cmd_response_args_count_info_count() {        return (16 / 8);    }    /**     * Return the size, in bits, of each element of the array 'cmd_response.args.count_info.count'     */    public static int elementSizeBits_cmd_response_args_count_info_count() {        return 16;    }    /**     * Return the number of dimensions in the array 'cmd_response.args.count_info.count'     */    public static int numDimensions_cmd_response_args_count_info_count() {        return 1;    }    /**     * Return the number of elements in the array 'cmd_response.args.count_info.count'     */    public static int numElements_cmd_response_args_count_info_count() {        return 10;    }    /**     * Return the number of elements in the array 'cmd_response.args.count_info.count'     * for the given dimension.     */    public static int numElements_cmd_response_args_count_info_count(int dimension) {      int array_dims[] = { 10,  };        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];    }    /////////////////////////////////////////////////////////    // Accessor methods for field: cmd_response.args.rssi_info.src_addr    //   Field type: int    //   Offset (bits): 40    //   Size (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'cmd_response.args.rssi_info.src_addr' is signed (false).     */    public static boolean isSigned_cmd_response_args_rssi_info_src_addr() {        return false;    }    /**     * Return whether the field 'cmd_response.args.rssi_info.src_addr' is an array (false).     */    public static boolean isArray_cmd_response_args_rssi_info_src_addr() {        return false;    }    /**     * Return the offset (in bytes) of the field 'cmd_response.args.rssi_info.src_addr'     */    public static int offset_cmd_response_args_rssi_info_src_addr() {        return (40 / 8);    }    /**     * Return the offset (in bits) of the field 'cmd_response.args.rssi_info.src_addr'     */    public static int offsetBits_cmd_response_args_rssi_info_src_addr() {        return 40;    }    /**     * Return the value (as a int) of the field 'cmd_response.args.rssi_info.src_addr'     */    public int get_cmd_response_args_rssi_info_src_addr() {        return (int)getUIntElement(offsetBits_cmd_response_args_rssi_info_src_addr(), 16);    }    /**     * Set the value of the field 'cmd_response.args.rssi_info.src_addr'     */    public void set_cmd_response_args_rssi_info_src_addr(int value) {        setUIntElement(offsetBits_cmd_response_args_rssi_info_src_addr(), 16, value);    }    /**     * Return the size, in bytes, of the field 'cmd_response.args.rssi_info.src_addr'     */    public static int size_cmd_response_args_rssi_info_src_addr() {        return (16 / 8);    }    /**     * Return the size, in bits, of the field 'cmd_response.args.rssi_info.src_addr'     */    public static int sizeBits_cmd_response_args_rssi_info_src_addr() {        return 16;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: cmd_response.args.rssi_info.rssi    //   Field type: int[]    //   Offset (bits): 56    //   Size of each element (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'cmd_response.args.rssi_info.rssi' is signed (false).     */    public static boolean isSigned_cmd_response_args_rssi_info_rssi() {        return false;    }    /**     * Return whether the field 'cmd_response.args.rssi_info.rssi' is an array (true).     */    public static boolean isArray_cmd_response_args_rssi_info_rssi() {        return true;    }    /**     * Return the offset (in bytes) of the field 'cmd_response.args.rssi_info.rssi'     */    public static int offset_cmd_response_args_rssi_info_rssi(int index1) {        int offset = 56;        if (index1 < 0 || index1 >= 10) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 16;        return (offset / 8);    }    /**     * Return the offset (in bits) of the field 'cmd_response.args.rssi_info.rssi'     */    public static int offsetBits_cmd_response_args_rssi_info_rssi(int index1) {        int offset = 56;        if (index1 < 0 || index1 >= 10) throw new ArrayIndexOutOfBoundsException();        offset += 0 + index1 * 16;        return offset;    }    /**     * Return the entire array 'cmd_response.args.rssi_info.rssi' as a int[]     */    public int[] get_cmd_response_args_rssi_info_rssi() {        int[] tmp = new int[10];        for (int index0 = 0; index0 < numElements_cmd_response_args_rssi_info_rssi(0); index0++) {            tmp[index0] = getElement_cmd_response_args_rssi_info_rssi(index0);        }        return tmp;    }    /**     * Set the contents of the array 'cmd_response.args.rssi_info.rssi' from the given int[]     */    public void set_cmd_response_args_rssi_info_rssi(int[] value) {        for (int index0 = 0; index0 < value.length; index0++) {            setElement_cmd_response_args_rssi_info_rssi(index0, value[index0]);        }    }    /**     * Return an element (as a int) of the array 'cmd_response.args.rssi_info.rssi'     */    public int getElement_cmd_response_args_rssi_info_rssi(int index1) {        return (int)getUIntElement(offsetBits_cmd_response_args_rssi_info_rssi(index1), 16);    }    /**     * Set an element of the array 'cmd_response.args.rssi_info.rssi'     */    public void setElement_cmd_response_args_rssi_info_rssi(int index1, int value) {        setUIntElement(offsetBits_cmd_response_args_rssi_info_rssi(index1), 16, value);    }    /**     * Return the total size, in bytes, of the array 'cmd_response.args.rssi_info.rssi'     */    public static int totalSize_cmd_response_args_rssi_info_rssi() {        return (160 / 8);    }    /**     * Return the total size, in bits, of the array 'cmd_response.args.rssi_info.rssi'     */    public static int totalSizeBits_cmd_response_args_rssi_info_rssi() {        return 160;    }    /**     * Return the size, in bytes, of each element of the array 'cmd_response.args.rssi_info.rssi'     */    public static int elementSize_cmd_response_args_rssi_info_rssi() {        return (16 / 8);    }    /**     * Return the size, in bits, of each element of the array 'cmd_response.args.rssi_info.rssi'     */    public static int elementSizeBits_cmd_response_args_rssi_info_rssi() {        return 16;    }    /**     * Return the number of dimensions in the array 'cmd_response.args.rssi_info.rssi'     */    public static int numDimensions_cmd_response_args_rssi_info_rssi() {        return 1;    }    /**     * Return the number of elements in the array 'cmd_response.args.rssi_info.rssi'     */    public static int numElements_cmd_response_args_rssi_info_rssi() {        return 10;    }    /**     * Return the number of elements in the array 'cmd_response.args.rssi_info.rssi'     * for the given dimension.     */    public static int numElements_cmd_response_args_rssi_info_rssi(int dimension) {      int array_dims[] = { 10,  };        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];    }    /////////////////////////////////////////////////////////    // Accessor methods for field: cmd_response.args.rssi_info.voltage    //   Field type: int    //   Offset (bits): 216    //   Size (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'cmd_response.args.rssi_info.voltage' is signed (false).     */    public static boolean isSigned_cmd_response_args_rssi_info_voltage() {        return false;    }    /**     * Return whether the field 'cmd_response.args.rssi_info.voltage' is an array (false).     */    public static boolean isArray_cmd_response_args_rssi_info_voltage() {        return false;    }    /**     * Return the offset (in bytes) of the field 'cmd_response.args.rssi_info.voltage'     */    public static int offset_cmd_response_args_rssi_info_voltage() {        return (216 / 8);    }    /**     * Return the offset (in bits) of the field 'cmd_response.args.rssi_info.voltage'     */    public static int offsetBits_cmd_response_args_rssi_info_voltage() {        return 216;    }    /**     * Return the value (as a int) of the field 'cmd_response.args.rssi_info.voltage'     */    public int get_cmd_response_args_rssi_info_voltage() {        return (int)getUIntElement(offsetBits_cmd_response_args_rssi_info_voltage(), 16);    }    /**     * Set the value of the field 'cmd_response.args.rssi_info.voltage'     */    public void set_cmd_response_args_rssi_info_voltage(int value) {        setUIntElement(offsetBits_cmd_response_args_rssi_info_voltage(), 16, value);    }    /**     * Return the size, in bytes, of the field 'cmd_response.args.rssi_info.voltage'     */    public static int size_cmd_response_args_rssi_info_voltage() {        return (16 / 8);    }    /**     * Return the size, in bits, of the field 'cmd_response.args.rssi_info.voltage'     */    public static int sizeBits_cmd_response_args_rssi_info_voltage() {        return 16;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: cmd_response.args.image_id    //   Field type: long    //   Offset (bits): 40    //   Size (bits): 32    /////////////////////////////////////////////////////////    /**     * Return whether the field 'cmd_response.args.image_id' is signed (false).     */    public static boolean isSigned_cmd_response_args_image_id() {        return false;    }    /**     * Return whether the field 'cmd_response.args.image_id' is an array (false).     */    public static boolean isArray_cmd_response_args_image_id() {        return false;    }    /**     * Return the offset (in bytes) of the field 'cmd_response.args.image_id'     */    public static int offset_cmd_response_args_image_id() {        return (40 / 8);    }    /**     * Return the offset (in bits) of the field 'cmd_response.args.image_id'     */    public static int offsetBits_cmd_response_args_image_id() {        return 40;    }    /**     * Return the value (as a long) of the field 'cmd_response.args.image_id'     */    public long get_cmd_response_args_image_id() {        return (long)getUIntElement(offsetBits_cmd_response_args_image_id(), 32);    }    /**     * Set the value of the field 'cmd_response.args.image_id'     */    public void set_cmd_response_args_image_id(long value) {        setUIntElement(offsetBits_cmd_response_args_image_id(), 32, value);    }    /**     * Return the size, in bytes, of the field 'cmd_response.args.image_id'     */    public static int size_cmd_response_args_image_id() {        return (32 / 8);    }    /**     * Return the size, in bits, of the field 'cmd_response.args.image_id'     */    public static int sizeBits_cmd_response_args_image_id() {        return 32;    }}

⌨️ 快捷键说明

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