variableresolveresponse.java
来自「tinyos最新版」· Java 代码 · 共 227 行
JAVA
227 行
/** * This class is automatically generated by mig. DO NOT EDIT THIS FILE. * This class implements a Java interface to the 'VariableResolveResponse' * message type. */package net.tinyos.sim.msg;public class VariableResolveResponse extends net.tinyos.message.Message { /** The default size of this message type in bytes. */ public static final int DEFAULT_MESSAGE_SIZE = 8; /** The Active Message type associated with this message. */ public static final int AM_TYPE = 4106; /** Create a new VariableResolveResponse of size 8. */ public VariableResolveResponse() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new VariableResolveResponse of the given data_length. */ public VariableResolveResponse(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new VariableResolveResponse with the given data_length * and base offset. */ public VariableResolveResponse(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new VariableResolveResponse using the given byte array * as backing store. */ public VariableResolveResponse(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new VariableResolveResponse using the given byte array * as backing store, with the given base offset. */ public VariableResolveResponse(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new VariableResolveResponse using the given byte array * as backing store, with the given base offset and data length. */ public VariableResolveResponse(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new VariableResolveResponse embedded in the given message * at the given base offset. */ public VariableResolveResponse(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new VariableResolveResponse embedded in the given message * at the given base offset and length. */ public VariableResolveResponse(net.tinyos.message.Message msg, int base_offset, int data_length) { super(msg, base_offset, data_length); amTypeSet(AM_TYPE); } /** /* Return a String representation of this message. Includes the * message type name and the non-indexed field values. */ public String toString() { String s = "Message <VariableResolveResponse> \n"; try { s += " [addr=0x"+Long.toHexString(get_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [length=0x"+Long.toHexString(get_length())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } // Message-type-specific access methods appear below. ///////////////////////////////////////////////////////// // Accessor methods for field: addr // Field type: long, unsigned // Offset (bits): 0 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'addr' is signed (false). */ public static boolean isSigned_addr() { return false; } /** * Return whether the field 'addr' is an array (false). */ public static boolean isArray_addr() { return false; } /** * Return the offset (in bytes) of the field 'addr' */ public static int offset_addr() { return (0 / 8); } /** * Return the offset (in bits) of the field 'addr' */ public static int offsetBits_addr() { return 0; } /** * Return the value (as a long) of the field 'addr' */ public long get_addr() { return (long)getUIntElement(offsetBits_addr(), 32); } /** * Set the value of the field 'addr' */ public void set_addr(long value) { setUIntElement(offsetBits_addr(), 32, value); } /** * Return the size, in bytes, of the field 'addr' */ public static int size_addr() { return (32 / 8); } /** * Return the size, in bits, of the field 'addr' */ public static int sizeBits_addr() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: length // Field type: long, unsigned // Offset (bits): 32 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'length' is signed (false). */ public static boolean isSigned_length() { return false; } /** * Return whether the field 'length' is an array (false). */ public static boolean isArray_length() { return false; } /** * Return the offset (in bytes) of the field 'length' */ public static int offset_length() { return (32 / 8); } /** * Return the offset (in bits) of the field 'length' */ public static int offsetBits_length() { return 32; } /** * Return the value (as a long) of the field 'length' */ public long get_length() { return (long)getUIntElement(offsetBits_length(), 32); } /** * Set the value of the field 'length' */ public void set_length(long value) { setUIntElement(offsetBits_length(), 32, value); } /** * Return the size, in bytes, of the field 'length' */ public static int size_length() { return (32 / 8); } /** * Return the size, in bits, of the field 'length' */ public static int sizeBits_length() { return 32; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?