variablerequestcommand.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 'VariableRequestCommand' * message type. */package net.tinyos.sim.msg;public class VariableRequestCommand 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 = 4107; /** Create a new VariableRequestCommand of size 8. */ public VariableRequestCommand() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new VariableRequestCommand of the given data_length. */ public VariableRequestCommand(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new VariableRequestCommand with the given data_length * and base offset. */ public VariableRequestCommand(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new VariableRequestCommand using the given byte array * as backing store. */ public VariableRequestCommand(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new VariableRequestCommand using the given byte array * as backing store, with the given base offset. */ public VariableRequestCommand(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new VariableRequestCommand using the given byte array * as backing store, with the given base offset and data length. */ public VariableRequestCommand(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new VariableRequestCommand embedded in the given message * at the given base offset. */ public VariableRequestCommand(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new VariableRequestCommand embedded in the given message * at the given base offset and length. */ public VariableRequestCommand(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 <VariableRequestCommand> \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: short, unsigned // Offset (bits): 32 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * 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 short) of the field 'length' */ public short get_length() { return (short)getUIntElement(offsetBits_length(), 8); } /** * Set the value of the field 'length' */ public void set_length(short value) { setUIntElement(offsetBits_length(), 8, value); } /** * Return the size, in bytes, of the field 'length' */ public static int size_length() { return (8 / 8); } /** * Return the size, in bits, of the field 'length' */ public static int sizeBits_length() { return 8; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?