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

📄 s4commandresponsemessage.java

📁 state strech routing protocl
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    public static int numElements_type_data_data_args_info_coords_comps() {        return 8;    }    /**     * Return the number of elements in the array 'type_data.data.args.info.coords.comps'     * for the given dimension.     */    public static int numElements_type_data_data_args_info_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.info.coords.comps' with a String     */    public void setString_type_data_data_args_info_coords_comps(String s) {          int len = s.length();         int i;         for (i = 0; i < len; i++) {             setElement_type_data_data_args_info_coords_comps(i, (short)s.charAt(i));         }         setElement_type_data_data_args_info_coords_comps(i, (short)0); //null terminate    }    /**     * Read the array 'type_data.data.args.info.coords.comps' as a String     */    public String getString_type_data_data_args_info_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_info_coords_comps(i) == (char)0) break;             carr[i] = (char)getElement_type_data_data_args_info_coords_comps(i);         }         return new String(carr,0,i);    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type_data.data.args.info.neighbors    //   Field type: short    //   Offset (bits): 160    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.info.neighbors' is signed (false).     */    public static boolean isSigned_type_data_data_args_info_neighbors() {        return false;    }    /**     * Return whether the field 'type_data.data.args.info.neighbors' is an array (false).     */    public static boolean isArray_type_data_data_args_info_neighbors() {        return false;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.info.neighbors'     */    public static int offset_type_data_data_args_info_neighbors() {        return (160 / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.info.neighbors'     */    public static int offsetBits_type_data_data_args_info_neighbors() {        return 160;    }    /**     * Return the value (as a short) of the field 'type_data.data.args.info.neighbors'     */    public short get_type_data_data_args_info_neighbors() {        return (short)getUIntElement(offsetBits_type_data_data_args_info_neighbors(), 8);    }    /**     * Set the value of the field 'type_data.data.args.info.neighbors'     */    public void set_type_data_data_args_info_neighbors(short value) {        setUIntElement(offsetBits_type_data_data_args_info_neighbors(), 8, value);    }    /**     * Return the size, in bytes, of the field 'type_data.data.args.info.neighbors'     */    public static int size_type_data_data_args_info_neighbors() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'type_data.data.args.info.neighbors'     */    public static int sizeBits_type_data_data_args_info_neighbors() {        return 8;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type_data.data.args.info.links    //   Field type: short    //   Offset (bits): 168    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.info.links' is signed (false).     */    public static boolean isSigned_type_data_data_args_info_links() {        return false;    }    /**     * Return whether the field 'type_data.data.args.info.links' is an array (false).     */    public static boolean isArray_type_data_data_args_info_links() {        return false;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.info.links'     */    public static int offset_type_data_data_args_info_links() {        return (168 / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.info.links'     */    public static int offsetBits_type_data_data_args_info_links() {        return 168;    }    /**     * Return the value (as a short) of the field 'type_data.data.args.info.links'     */    public short get_type_data_data_args_info_links() {        return (short)getUIntElement(offsetBits_type_data_data_args_info_links(), 8);    }    /**     * Set the value of the field 'type_data.data.args.info.links'     */    public void set_type_data_data_args_info_links(short value) {        setUIntElement(offsetBits_type_data_data_args_info_links(), 8, value);    }    /**     * Return the size, in bytes, of the field 'type_data.data.args.info.links'     */    public static int size_type_data_data_args_info_links() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'type_data.data.args.info.links'     */    public static int sizeBits_type_data_data_args_info_links() {        return 8;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type_data.data.args.info.is_root_beacon    //   Field type: short    //   Offset (bits): 176    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.info.is_root_beacon' is signed (false).     */    public static boolean isSigned_type_data_data_args_info_is_root_beacon() {        return false;    }    /**     * Return whether the field 'type_data.data.args.info.is_root_beacon' is an array (false).     */    public static boolean isArray_type_data_data_args_info_is_root_beacon() {        return false;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.info.is_root_beacon'     */    public static int offset_type_data_data_args_info_is_root_beacon() {        return (176 / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.info.is_root_beacon'     */    public static int offsetBits_type_data_data_args_info_is_root_beacon() {        return 176;    }    /**     * Return the value (as a short) of the field 'type_data.data.args.info.is_root_beacon'     */    public short get_type_data_data_args_info_is_root_beacon() {        return (short)getUIntElement(offsetBits_type_data_data_args_info_is_root_beacon(), 8);    }    /**     * Set the value of the field 'type_data.data.args.info.is_root_beacon'     */    public void set_type_data_data_args_info_is_root_beacon(short value) {        setUIntElement(offsetBits_type_data_data_args_info_is_root_beacon(), 8, value);    }    /**     * Return the size, in bytes, of the field 'type_data.data.args.info.is_root_beacon'     */    public static int size_type_data_data_args_info_is_root_beacon() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'type_data.data.args.info.is_root_beacon'     */    public static int sizeBits_type_data_data_args_info_is_root_beacon() {        return 8;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type_data.data.args.info.power    //   Field type: short    //   Offset (bits): 184    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.info.power' is signed (false).     */    public static boolean isSigned_type_data_data_args_info_power() {        return false;    }    /**     * Return whether the field 'type_data.data.args.info.power' is an array (false).     */    public static boolean isArray_type_data_data_args_info_power() {        return false;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.info.power'     */    public static int offset_type_data_data_args_info_power() {        return (184 / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.info.power'     */    public static int offsetBits_type_data_data_args_info_power() {        return 184;    }    /**     * Return the value (as a short) of the field 'type_data.data.args.info.power'     */    public short get_type_data_data_args_info_power() {        return (short)getUIntElement(offsetBits_type_data_data_args_info_power(), 8);    }    /**     * Set the value of the field 'type_data.data.args.info.power'     */    public void set_type_data_data_args_info_power(short value) {        setUIntElement(offsetBits_type_data_data_args_info_power(), 8, value);    }    /**     * Return the size, in bytes, of the field 'type_data.data.args.info.power'     */    public static int size_type_data_data_args_info_power() {        return (8 / 8);    }    /**     * Return the size, in bits, of the field 'type_data.data.args.info.power'     */    public static int sizeBits_type_data_data_args_info_power() {        return 8;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type_data.data.args.info.routing_table_size    //   Field type: int    //   Offset (bits): 192    //   Size (bits): 16    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.info.routing_table_size' is signed (false).     */    public static boolean isSigned_type_data_data_args_info_routing_table_size() {        return false;    }    /**     * Return whether the field 'type_data.data.args.info.routing_table_size' is an array (false).     */    public static boolean isArray_type_data_data_args_info_routing_table_size() {        return false;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.info.routing_table_size'     */    public static int offset_type_data_data_args_info_routing_table_size() {        return (192 / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.info.routing_table_size'     */    public static int offsetBits_type_data_data_args_info_routing_table_size() {        return 192;    }    /**     * Return the value (as a int) of the field 'type_data.data.args.info.routing_table_size'     */    public int get_type_data_data_args_info_routing_table_size() {        return (int)getUIntElement(offsetBits_type_data_data_args_info_routing_table_size(), 16);    }    /**     * Set the value of the field 'type_data.data.args.info.routing_table_size'     */    public void set_type_data_data_args_info_routing_table_size(int value) {        setUIntElement(offsetBits_type_data_data_args_info_routing_table_size(), 16, value);    }    /**     * Return the size, in bytes, of the field 'type_data.data.args.info.routing_table_size'     */    public static int size_type_data_data_args_info_routing_table_size() {        return (16 / 8);    }    /**     * Return the size, in bits, of the field 'type_data.data.args.info.routing_table_size'     */    public static int sizeBits_type_data_data_args_info_routing_table_size() {        return 16;    }    /////////////////////////////////////////////////////////    // Accessor methods for field: type_data.data.args.dest.closest_beacon    //   Field type: short    //   Offset (bits): 96    //   Size (bits): 8    /////////////////////////////////////////////////////////    /**     * Return whether the field 'type_data.data.args.dest.closest_beacon' is signed (false).     */    public static boolean isSigned_type_data_data_args_dest_closest_beacon() {        return false;    }    /**     * Return whether the field 'type_data.data.args.dest.closest_beacon' is an array (false).     */    public static boolean isArray_type_data_data_args_dest_closest_beacon() {        return false;    }    /**     * Return the offset (in bytes) of the field 'type_data.data.args.dest.closest_beacon'     */    public static int offset_type_data_data_args_dest_closest_beacon() {        return (96 / 8);    }    /**     * Return the offset (in bits) of the field 'type_data.data.args.dest.closest_beacon'     */    public static int offsetBits_type_data_data_args_dest_closest_beacon() {

⌨️ 快捷键说明

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