seteventmaskcommand.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 'SetEventMaskCommand' * message type. */package net.tinyos.sim.msg;public class SetEventMaskCommand extends net.tinyos.message.Message { /** The default size of this message type in bytes. */ public static final int DEFAULT_MESSAGE_SIZE = 2; /** The Active Message type associated with this message. */ public static final int AM_TYPE = 4111; /** Create a new SetEventMaskCommand of size 2. */ public SetEventMaskCommand() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new SetEventMaskCommand of the given data_length. */ public SetEventMaskCommand(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new SetEventMaskCommand with the given data_length * and base offset. */ public SetEventMaskCommand(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new SetEventMaskCommand using the given byte array * as backing store. */ public SetEventMaskCommand(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new SetEventMaskCommand using the given byte array * as backing store, with the given base offset. */ public SetEventMaskCommand(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new SetEventMaskCommand using the given byte array * as backing store, with the given base offset and data length. */ public SetEventMaskCommand(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new SetEventMaskCommand embedded in the given message * at the given base offset. */ public SetEventMaskCommand(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new SetEventMaskCommand embedded in the given message * at the given base offset and length. */ public SetEventMaskCommand(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 <SetEventMaskCommand> \n"; try { s += " [mask=0x"+Long.toHexString(get_mask())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } // Message-type-specific access methods appear below. ///////////////////////////////////////////////////////// // Accessor methods for field: mask // Field type: int, unsigned // Offset (bits): 0 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'mask' is signed (false). */ public static boolean isSigned_mask() { return false; } /** * Return whether the field 'mask' is an array (false). */ public static boolean isArray_mask() { return false; } /** * Return the offset (in bytes) of the field 'mask' */ public static int offset_mask() { return (0 / 8); } /** * Return the offset (in bits) of the field 'mask' */ public static int offsetBits_mask() { return 0; } /** * Return the value (as a int) of the field 'mask' */ public int get_mask() { return (int)getUIntElement(offsetBits_mask(), 16); } /** * Set the value of the field 'mask' */ public void set_mask(int value) { setUIntElement(offsetBits_mask(), 16, value); } /** * Return the size, in bytes, of the field 'mask' */ public static int size_mask() { return (16 / 8); } /** * Return the size, in bits, of the field 'mask' */ public static int sizeBits_mask() { return 16; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?