📄 s4appmessage.java
字号:
setUIntElement(offsetBits_type_data_dest_id(), 16, value); } /** * Return the size, in bytes, of the field 'type_data.dest_id' */ public static int size_type_data_dest_id() { return (16 / 8); } /** * Return the size, in bits, of the field 'type_data.dest_id' */ public static int sizeBits_type_data_dest_id() { return 16; } ///////////////////////////////////////////////////////// // Accessor methods for field: type_data.origin // Field type: int // Offset (bits): 64 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'type_data.origin' is signed (false). */ public static boolean isSigned_type_data_origin() { return false; } /** * Return whether the field 'type_data.origin' is an array (false). */ public static boolean isArray_type_data_origin() { return false; } /** * Return the offset (in bytes) of the field 'type_data.origin' */ public static int offset_type_data_origin() { return (64 / 8); } /** * Return the offset (in bits) of the field 'type_data.origin' */ public static int offsetBits_type_data_origin() { return 64; } /** * Return the value (as a int) of the field 'type_data.origin' */ public int get_type_data_origin() { return (int)getUIntElement(offsetBits_type_data_origin(), 16); } /** * Set the value of the field 'type_data.origin' */ public void set_type_data_origin(int value) { setUIntElement(offsetBits_type_data_origin(), 16, value); } /** * Return the size, in bytes, of the field 'type_data.origin' */ public static int size_type_data_origin() { return (16 / 8); } /** * Return the size, in bits, of the field 'type_data.origin' */ public static int sizeBits_type_data_origin() { return 16; } ///////////////////////////////////////////////////////// // Accessor methods for field: type_data.msg_id // Field type: int // Offset (bits): 80 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'type_data.msg_id' is signed (false). */ public static boolean isSigned_type_data_msg_id() { return false; } /** * Return whether the field 'type_data.msg_id' is an array (false). */ public static boolean isArray_type_data_msg_id() { return false; } /** * Return the offset (in bytes) of the field 'type_data.msg_id' */ public static int offset_type_data_msg_id() { return (80 / 8); } /** * Return the offset (in bits) of the field 'type_data.msg_id' */ public static int offsetBits_type_data_msg_id() { return 80; } /** * Return the value (as a int) of the field 'type_data.msg_id' */ public int get_type_data_msg_id() { return (int)getUIntElement(offsetBits_type_data_msg_id(), 16); } /** * Set the value of the field 'type_data.msg_id' */ public void set_type_data_msg_id(int value) { setUIntElement(offsetBits_type_data_msg_id(), 16, value); } /** * Return the size, in bytes, of the field 'type_data.msg_id' */ public static int size_type_data_msg_id() { return (16 / 8); } /** * Return the size, in bits, of the field 'type_data.msg_id' */ public static int sizeBits_type_data_msg_id() { return 16; } ///////////////////////////////////////////////////////// // Accessor methods for field: type_data.rexmit_count // Field type: short // Offset (bits): 96 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'type_data.rexmit_count' is signed (false). */ public static boolean isSigned_type_data_rexmit_count() { return false; } /** * Return whether the field 'type_data.rexmit_count' is an array (false). */ public static boolean isArray_type_data_rexmit_count() { return false; } /** * Return the offset (in bytes) of the field 'type_data.rexmit_count' */ public static int offset_type_data_rexmit_count() { return (96 / 8); } /** * Return the offset (in bits) of the field 'type_data.rexmit_count' */ public static int offsetBits_type_data_rexmit_count() { return 96; } /** * Return the value (as a short) of the field 'type_data.rexmit_count' */ public short get_type_data_rexmit_count() { return (short)getUIntElement(offsetBits_type_data_rexmit_count(), 8); } /** * Set the value of the field 'type_data.rexmit_count' */ public void set_type_data_rexmit_count(short value) { setUIntElement(offsetBits_type_data_rexmit_count(), 8, value); } /** * Return the size, in bytes, of the field 'type_data.rexmit_count' */ public static int size_type_data_rexmit_count() { return (8 / 8); } /** * Return the size, in bits, of the field 'type_data.rexmit_count' */ public static int sizeBits_type_data_rexmit_count() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: type_data.tried_hopcount // Field type: short // Offset (bits): 104 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'type_data.tried_hopcount' is signed (false). */ public static boolean isSigned_type_data_tried_hopcount() { return false; } /** * Return whether the field 'type_data.tried_hopcount' is an array (false). */ public static boolean isArray_type_data_tried_hopcount() { return false; } /** * Return the offset (in bytes) of the field 'type_data.tried_hopcount' */ public static int offset_type_data_tried_hopcount() { return (104 / 8); } /** * Return the offset (in bits) of the field 'type_data.tried_hopcount' */ public static int offsetBits_type_data_tried_hopcount() { return 104; } /** * Return the value (as a short) of the field 'type_data.tried_hopcount' */ public short get_type_data_tried_hopcount() { return (short)getUIntElement(offsetBits_type_data_tried_hopcount(), 8); } /** * Set the value of the field 'type_data.tried_hopcount' */ public void set_type_data_tried_hopcount(short value) { setUIntElement(offsetBits_type_data_tried_hopcount(), 8, value); } /** * Return the size, in bytes, of the field 'type_data.tried_hopcount' */ public static int size_type_data_tried_hopcount() { return (8 / 8); } /** * Return the size, in bits, of the field 'type_data.tried_hopcount' */ public static int sizeBits_type_data_tried_hopcount() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: type_data.data.data // Field type: short[] // Offset (bits): 112 // Size of each element (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'type_data.data.data' is signed (false). */ public static boolean isSigned_type_data_data_data() { return false; } /** * Return whether the field 'type_data.data.data' is an array (true). */ public static boolean isArray_type_data_data_data() { return true; } /** * Return the offset (in bytes) of the field 'type_data.data.data' */ public static int offset_type_data_data_data(int index1) { int offset = 112; if (index1 < 0 || index1 >= 1) throw new ArrayIndexOutOfBoundsException(); offset += 0 + index1 * 8; return (offset / 8); } /** * Return the offset (in bits) of the field 'type_data.data.data' */ public static int offsetBits_type_data_data_data(int index1) { int offset = 112; if (index1 < 0 || index1 >= 1) throw new ArrayIndexOutOfBoundsException(); offset += 0 + index1 * 8; return offset; } /** * Return the entire array 'type_data.data.data' as a short[] */ public short[] get_type_data_data_data() { short[] tmp = new short[1]; for (int index0 = 0; index0 < numElements_type_data_data_data(0); index0++) { tmp[index0] = getElement_type_data_data_data(index0); } return tmp; } /** * Set the contents of the array 'type_data.data.data' from the given short[] */ public void set_type_data_data_data(short[] value) { for (int index0 = 0; index0 < value.length; index0++) { setElement_type_data_data_data(index0, value[index0]); } } /** * Return an element (as a short) of the array 'type_data.data.data' */ public short getElement_type_data_data_data(int index1) { return (short)getUIntElement(offsetBits_type_data_data_data(index1), 8); } /** * Set an element of the array 'type_data.data.data' */ public void setElement_type_data_data_data(int index1, short value) { setUIntElement(offsetBits_type_data_data_data(index1), 8, value); } /** * Return the total size, in bytes, of the array 'type_data.data.data' */ public static int totalSize_type_data_data_data() { return (8 / 8); } /** * Return the total size, in bits, of the array 'type_data.data.data' */ public static int totalSizeBits_type_data_data_data() { return 8; } /** * Return the size, in bytes, of each element of the array 'type_data.data.data' */ public static int elementSize_type_data_data_data() { return (8 / 8); } /** * Return the size, in bits, of each element of the array 'type_data.data.data' */ public static int elementSizeBits_type_data_data_data() { return 8; } /** * Return the number of dimensions in the array 'type_data.data.data' */ public static int numDimensions_type_data_data_data() { return 1; } /** * Return the number of elements in the array 'type_data.data.data' */ public static int numElements_type_data_data_data() { return 1; } /** * Return the number of elements in the array 'type_data.data.data' * for the given dimension. */ public static int numElements_type_data_data_data(int dimension) { int array_dims[] = { 1, }; 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.data' with a String */ public void setString_type_data_data_data(String s) { int len = s.length(); int i; for (i = 0; i < len; i++) { setElement_type_data_data_data(i, (short)s.charAt(i)); } setElement_type_data_data_data(i, (short)0); //null terminate } /** * Read the array 'type_data.data.data' as a String */ public String getString_type_data_data_data() { char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,1)]; int i; for (i = 0; i < carr.length; i++) { if ((char)getElement_type_data_data_data(i) == (char)0) break; carr[i] = (char)getElement_type_data_data_data(i); } return new String(carr,0,i); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -