delugeadvmsg.java
来自「tinyos最新版」· Java 代码 · 共 880 行 · 第 1/2 页
JAVA
880 行
} /** * Return an element (as a short) of the array 'imgSummaries.vNum' */ public short getElement_imgSummaries_vNum(int index1) { return (short)getSIntElement(offsetBits_imgSummaries_vNum(index1), 16); } /** * Set an element of the array 'imgSummaries.vNum' */ public void setElement_imgSummaries_vNum(int index1, short value) { setSIntElement(offsetBits_imgSummaries_vNum(index1), 16, value); } /** * Return the total size, in bytes, of the array 'imgSummaries.vNum' */ public static int totalSize_imgSummaries_vNum() { return (64 / 8); } /** * Return the total size, in bits, of the array 'imgSummaries.vNum' */ public static int totalSizeBits_imgSummaries_vNum() { return 64; } /** * Return the size, in bytes, of each element of the array 'imgSummaries.vNum' */ public static int elementSize_imgSummaries_vNum() { return (16 / 8); } /** * Return the size, in bits, of each element of the array 'imgSummaries.vNum' */ public static int elementSizeBits_imgSummaries_vNum() { return 16; } /** * Return the number of dimensions in the array 'imgSummaries.vNum' */ public static int numDimensions_imgSummaries_vNum() { return 1; } /** * Return the number of elements in the array 'imgSummaries.vNum' */ public static int numElements_imgSummaries_vNum() { return 2; } /** * Return the number of elements in the array 'imgSummaries.vNum' * for the given dimension. */ public static int numElements_imgSummaries_vNum(int dimension) { int array_dims[] = { 2, }; 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: imgSummaries.numPgs // Field type: short[], unsigned // Offset (bits): 16 // Size of each element (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'imgSummaries.numPgs' is signed (false). */ public static boolean isSigned_imgSummaries_numPgs() { return false; } /** * Return whether the field 'imgSummaries.numPgs' is an array (true). */ public static boolean isArray_imgSummaries_numPgs() { return true; } /** * Return the offset (in bytes) of the field 'imgSummaries.numPgs' */ public static int offset_imgSummaries_numPgs(int index1) { int offset = 16; if (index1 < 0 || index1 >= 2) throw new ArrayIndexOutOfBoundsException(); offset += 48 + index1 * 32; return (offset / 8); } /** * Return the offset (in bits) of the field 'imgSummaries.numPgs' */ public static int offsetBits_imgSummaries_numPgs(int index1) { int offset = 16; if (index1 < 0 || index1 >= 2) throw new ArrayIndexOutOfBoundsException(); offset += 48 + index1 * 32; return offset; } /** * Return the entire array 'imgSummaries.numPgs' as a short[] */ public short[] get_imgSummaries_numPgs() { short[] tmp = new short[2]; for (int index0 = 0; index0 < numElements_imgSummaries_numPgs(0); index0++) { tmp[index0] = getElement_imgSummaries_numPgs(index0); } return tmp; } /** * Set the contents of the array 'imgSummaries.numPgs' from the given short[] */ public void set_imgSummaries_numPgs(short[] value) { for (int index0 = 0; index0 < value.length; index0++) { setElement_imgSummaries_numPgs(index0, value[index0]); } } /** * Return an element (as a short) of the array 'imgSummaries.numPgs' */ public short getElement_imgSummaries_numPgs(int index1) { return (short)getUIntElement(offsetBits_imgSummaries_numPgs(index1), 8); } /** * Set an element of the array 'imgSummaries.numPgs' */ public void setElement_imgSummaries_numPgs(int index1, short value) { setUIntElement(offsetBits_imgSummaries_numPgs(index1), 8, value); } /** * Return the total size, in bytes, of the array 'imgSummaries.numPgs' */ public static int totalSize_imgSummaries_numPgs() { return (64 / 8); } /** * Return the total size, in bits, of the array 'imgSummaries.numPgs' */ public static int totalSizeBits_imgSummaries_numPgs() { return 64; } /** * Return the size, in bytes, of each element of the array 'imgSummaries.numPgs' */ public static int elementSize_imgSummaries_numPgs() { return (8 / 8); } /** * Return the size, in bits, of each element of the array 'imgSummaries.numPgs' */ public static int elementSizeBits_imgSummaries_numPgs() { return 8; } /** * Return the number of dimensions in the array 'imgSummaries.numPgs' */ public static int numDimensions_imgSummaries_numPgs() { return 1; } /** * Return the number of elements in the array 'imgSummaries.numPgs' */ public static int numElements_imgSummaries_numPgs() { return 2; } /** * Return the number of elements in the array 'imgSummaries.numPgs' * for the given dimension. */ public static int numElements_imgSummaries_numPgs(int dimension) { int array_dims[] = { 2, }; 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 'imgSummaries.numPgs' with a String */ public void setString_imgSummaries_numPgs(String s) { int len = s.length(); int i; for (i = 0; i < len; i++) { setElement_imgSummaries_numPgs(i, (short)s.charAt(i)); } setElement_imgSummaries_numPgs(i, (short)0); //null terminate } /** * Read the array 'imgSummaries.numPgs' as a String */ public String getString_imgSummaries_numPgs() { char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,2)]; int i; for (i = 0; i < carr.length; i++) { if ((char)getElement_imgSummaries_numPgs(i) == (char)0) break; carr[i] = (char)getElement_imgSummaries_numPgs(i); } return new String(carr,0,i); } ///////////////////////////////////////////////////////// // Accessor methods for field: imgSummaries.numPgsComplete // Field type: short[], unsigned // Offset (bits): 24 // Size of each element (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'imgSummaries.numPgsComplete' is signed (false). */ public static boolean isSigned_imgSummaries_numPgsComplete() { return false; } /** * Return whether the field 'imgSummaries.numPgsComplete' is an array (true). */ public static boolean isArray_imgSummaries_numPgsComplete() { return true; } /** * Return the offset (in bytes) of the field 'imgSummaries.numPgsComplete' */ public static int offset_imgSummaries_numPgsComplete(int index1) { int offset = 24; if (index1 < 0 || index1 >= 2) throw new ArrayIndexOutOfBoundsException(); offset += 48 + index1 * 32; return (offset / 8); } /** * Return the offset (in bits) of the field 'imgSummaries.numPgsComplete' */ public static int offsetBits_imgSummaries_numPgsComplete(int index1) { int offset = 24; if (index1 < 0 || index1 >= 2) throw new ArrayIndexOutOfBoundsException(); offset += 48 + index1 * 32; return offset; } /** * Return the entire array 'imgSummaries.numPgsComplete' as a short[] */ public short[] get_imgSummaries_numPgsComplete() { short[] tmp = new short[2]; for (int index0 = 0; index0 < numElements_imgSummaries_numPgsComplete(0); index0++) { tmp[index0] = getElement_imgSummaries_numPgsComplete(index0); } return tmp; } /** * Set the contents of the array 'imgSummaries.numPgsComplete' from the given short[] */ public void set_imgSummaries_numPgsComplete(short[] value) { for (int index0 = 0; index0 < value.length; index0++) { setElement_imgSummaries_numPgsComplete(index0, value[index0]); } } /** * Return an element (as a short) of the array 'imgSummaries.numPgsComplete' */ public short getElement_imgSummaries_numPgsComplete(int index1) { return (short)getUIntElement(offsetBits_imgSummaries_numPgsComplete(index1), 8); } /** * Set an element of the array 'imgSummaries.numPgsComplete' */ public void setElement_imgSummaries_numPgsComplete(int index1, short value) { setUIntElement(offsetBits_imgSummaries_numPgsComplete(index1), 8, value); } /** * Return the total size, in bytes, of the array 'imgSummaries.numPgsComplete' */ public static int totalSize_imgSummaries_numPgsComplete() { return (64 / 8); } /** * Return the total size, in bits, of the array 'imgSummaries.numPgsComplete' */ public static int totalSizeBits_imgSummaries_numPgsComplete() { return 64; } /** * Return the size, in bytes, of each element of the array 'imgSummaries.numPgsComplete' */ public static int elementSize_imgSummaries_numPgsComplete() { return (8 / 8); } /** * Return the size, in bits, of each element of the array 'imgSummaries.numPgsComplete' */ public static int elementSizeBits_imgSummaries_numPgsComplete() { return 8; } /** * Return the number of dimensions in the array 'imgSummaries.numPgsComplete' */ public static int numDimensions_imgSummaries_numPgsComplete() { return 1; } /** * Return the number of elements in the array 'imgSummaries.numPgsComplete' */ public static int numElements_imgSummaries_numPgsComplete() { return 2; } /** * Return the number of elements in the array 'imgSummaries.numPgsComplete' * for the given dimension. */ public static int numElements_imgSummaries_numPgsComplete(int dimension) { int array_dims[] = { 2, }; 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 'imgSummaries.numPgsComplete' with a String */ public void setString_imgSummaries_numPgsComplete(String s) { int len = s.length(); int i; for (i = 0; i < len; i++) { setElement_imgSummaries_numPgsComplete(i, (short)s.charAt(i)); } setElement_imgSummaries_numPgsComplete(i, (short)0); //null terminate } /** * Read the array 'imgSummaries.numPgsComplete' as a String */ public String getString_imgSummaries_numPgsComplete() { char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,2)]; int i; for (i = 0; i < carr.length; i++) { if ((char)getElement_imgSummaries_numPgsComplete(i) == (char)0) break; carr[i] = (char)getElement_imgSummaries_numPgsComplete(i); } return new String(carr,0,i); } ///////////////////////////////////////////////////////// // Accessor methods for field: crc // Field type: int, unsigned // Offset (bits): 112 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'crc' is signed (false). */ public static boolean isSigned_crc() { return false; } /** * Return whether the field 'crc' is an array (false). */ public static boolean isArray_crc() { return false; } /** * Return the offset (in bytes) of the field 'crc' */ public static int offset_crc() { return (112 / 8); } /** * Return the offset (in bits) of the field 'crc' */ public static int offsetBits_crc() { return 112; } /** * Return the value (as a int) of the field 'crc' */ public int get_crc() { return (int)getUIntElement(offsetBits_crc(), 16); } /** * Set the value of the field 'crc' */ public void set_crc(int value) { setUIntElement(offsetBits_crc(), 16, value); } /** * Return the size, in bytes, of the field 'crc' */ public static int size_crc() { return (16 / 8); } /** * Return the size, in bits, of the field 'crc' */ public static int sizeBits_crc() { return 16; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?