setdbgcommand.java
来自「tinyos最新版」· Java 代码 · 共 161 行
JAVA
161 行
/** * This class is automatically generated by mig. DO NOT EDIT THIS FILE. * This class implements a Java interface to the 'SetDBGCommand' * message type. */package net.tinyos.sim.msg;public class SetDBGCommand 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 = 4104; /** Create a new SetDBGCommand of size 8. */ public SetDBGCommand() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new SetDBGCommand of the given data_length. */ public SetDBGCommand(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new SetDBGCommand with the given data_length * and base offset. */ public SetDBGCommand(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new SetDBGCommand using the given byte array * as backing store. */ public SetDBGCommand(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new SetDBGCommand using the given byte array * as backing store, with the given base offset. */ public SetDBGCommand(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new SetDBGCommand using the given byte array * as backing store, with the given base offset and data length. */ public SetDBGCommand(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new SetDBGCommand embedded in the given message * at the given base offset. */ public SetDBGCommand(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new SetDBGCommand embedded in the given message * at the given base offset and length. */ public SetDBGCommand(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 <SetDBGCommand> \n"; try { s += " [dbg=0x"+Long.toHexString(get_dbg())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } // Message-type-specific access methods appear below. ///////////////////////////////////////////////////////// // Accessor methods for field: dbg // Field type: long, signed // Offset (bits): 0 // Size (bits): 64 ///////////////////////////////////////////////////////// /** * Return whether the field 'dbg' is signed (true). */ public static boolean isSigned_dbg() { return true; } /** * Return whether the field 'dbg' is an array (false). */ public static boolean isArray_dbg() { return false; } /** * Return the offset (in bytes) of the field 'dbg' */ public static int offset_dbg() { return (0 / 8); } /** * Return the offset (in bits) of the field 'dbg' */ public static int offsetBits_dbg() { return 0; } /** * Return the value (as a long) of the field 'dbg' */ public long get_dbg() { return (long)getSIntElement(offsetBits_dbg(), 64); } /** * Set the value of the field 'dbg' */ public void set_dbg(long value) { setSIntElement(offsetBits_dbg(), 64, value); } /** * Return the size, in bytes, of the field 'dbg' */ public static int size_dbg() { return (64 / 8); } /** * Return the size, in bits, of the field 'dbg' */ public static int sizeBits_dbg() { return 64; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?