📄 querymsg.java
字号:
/** * This class is automatically generated by mig. DO NOT EDIT THIS FILE. * This class implements a Java interface to the 'QueryMsg' * message type. */package net.tinyos.tinydb;public class QueryMsg extends net.tinyos.message.Message { /** The default size of this message type in bytes. */ public static final int DEFAULT_MESSAGE_SIZE = 40; /** The Active Message type associated with this message. */ public static final int AM_TYPE = 101; /** Create a new QueryMsg of size 40. */ public QueryMsg() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new QueryMsg of the given data_length. */ public QueryMsg(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new QueryMsg with the given data_length * and base offset. */ public QueryMsg(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new QueryMsg using the given byte array * as backing store. */ public QueryMsg(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new QueryMsg using the given byte array * as backing store, with the given base offset. */ public QueryMsg(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new QueryMsg using the given byte array * as backing store, with the given base offset and data length. */ public QueryMsg(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new QueryMsg embedded in the given message * at the given base offset. */ public QueryMsg(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new QueryMsg embedded in the given message * at the given base offset and length. */ public QueryMsg(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 <QueryMsg> \n"; try { s += " [qid=0x"+Long.toHexString(get_qid())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [fwdNode=0x"+Long.toHexString(get_fwdNode())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [msgType=0x"+Long.toHexString(get_msgType())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [numFields=0x"+Long.toHexString(get_numFields())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [numExprs=0x"+Long.toHexString(get_numExprs())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [fromBuffer=0x"+Long.toHexString(get_fromBuffer())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [fromCatalogBuffer=0x"+Long.toHexString(get_fromCatalogBuffer())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [hasEvent=0x"+Long.toHexString(get_hasEvent())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [hasForClause=0x"+Long.toHexString(get_hasForClause())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [bufferType=0x"+Long.toHexString(get_bufferType())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [epochDuration=0x"+Long.toHexString(get_epochDuration())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type=0x"+Long.toHexString(get_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [idx=0x"+Long.toHexString(get_idx())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [timeSyncData="; for (int i = 0; i < 5; i++) { s += "0x"+Long.toHexString(getElement_timeSyncData(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [clockCount=0x"+Long.toHexString(get_clockCount())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.field.name="; for (int i = 0; i < 8; i++) { s += "0x"+Long.toHexString(getElement_u_field_name(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.field.op=0x"+Long.toHexString(get_u_field_op())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.field.type=0x"+Long.toHexString(get_u_field_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.opType=0x"+Long.toHexString(get_u_expr_opType())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.isStringExp=0x"+Long.toHexString(get_u_expr_isStringExp())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.success=0x"+Long.toHexString(get_u_expr_success())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.idx=0x"+Long.toHexString(get_u_expr_idx())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.opval.field=0x"+Long.toHexString(get_u_expr_ex_opval_field())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.opval.op=0x"+Long.toHexString(get_u_expr_ex_opval_op())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.opval.value=0x"+Long.toHexString(get_u_expr_ex_opval_value())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.agg.field=0x"+Long.toHexString(get_u_expr_ex_agg_field())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.agg.groupingField=0x"+Long.toHexString(get_u_expr_ex_agg_groupingField())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.agg.groupFieldOp=0x"+Long.toHexString(get_u_expr_ex_agg_groupFieldOp())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.agg.groupFieldConst=0x"+Long.toHexString(get_u_expr_ex_agg_groupFieldConst())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.agg.op=0x"+Long.toHexString(get_u_expr_ex_agg_op())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.tagg.agg.field=0x"+Long.toHexString(get_u_expr_ex_tagg_agg_field())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.tagg.agg.groupingField=0x"+Long.toHexString(get_u_expr_ex_tagg_agg_groupingField())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.tagg.agg.groupFieldOp=0x"+Long.toHexString(get_u_expr_ex_tagg_agg_groupFieldOp())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.tagg.agg.groupFieldConst=0x"+Long.toHexString(get_u_expr_ex_tagg_agg_groupFieldConst())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.tagg.agg.op=0x"+Long.toHexString(get_u_expr_ex_tagg_agg_op())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.tagg.args="; for (int i = 0; i < 4; i++) { s += "0x"+Long.toHexString(getElement_u_expr_ex_tagg_args(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.sexp.op=0x"+Long.toHexString(get_u_expr_ex_sexp_op())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.sexp.field=0x"+Long.toHexString(get_u_expr_ex_sexp_field())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.ex.sexp.s="; for (int i = 0; i < 8; i++) { s += "0x"+Long.toHexString(getElement_u_expr_ex_sexp_s(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.fieldOp=0x"+Long.toHexString(get_u_expr_fieldOp())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.fieldConst=0x"+Long.toHexString(get_u_expr_fieldConst())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.expr.opState=0x"+Long.toHexString(get_u_expr_opState())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.cmd.name="; for (int i = 0; i < 8; i++) { s += "0x"+Long.toHexString(getElement_u_buf_cmd_name(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.cmd.hasParam=0x"+Long.toHexString(get_u_buf_cmd_hasParam())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.cmd.param=0x"+Long.toHexString(get_u_buf_cmd_param())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.ram.hasOutput=0x"+Long.toHexString(get_u_buf_ram_hasOutput())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.ram.hasInput=0x"+Long.toHexString(get_u_buf_ram_hasInput())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.ram.create=0x"+Long.toHexString(get_u_buf_ram_create())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.ram.numRows=0x"+Long.toHexString(get_u_buf_ram_numRows())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.ram.outBufName="; for (int i = 0; i < 8; i++) { s += "0x"+Long.toHexString(getElement_u_buf_ram_outBufName(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.ram.inBufName="; for (int i = 0; i < 8; i++) { s += "0x"+Long.toHexString(getElement_u_buf_ram_inBufName(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.buf.ram.policy=0x"+Long.toHexString(get_u_buf_ram_policy())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.eventName="; for (int i = 0; i < 8; i++) { s += "0x"+Long.toHexString(getElement_u_eventName(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.numEpochs=0x"+Long.toHexString(get_u_numEpochs())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [u.ttl=0x"+Long.toHexString(get_u_ttl())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } // Message-type-specific access methods appear below. ///////////////////////////////////////////////////////// // Accessor methods for field: qid // Field type: short // Offset (bits): 0 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'qid' is signed (false). */ public static boolean isSigned_qid() { return false; } /** * Return whether the field 'qid' is an array (false). */ public static boolean isArray_qid() { return false; } /** * Return the offset (in bytes) of the field 'qid' */ public static int offset_qid() { return (0 / 8); } /** * Return the offset (in bits) of the field 'qid' */ public static int offsetBits_qid() { return 0; } /** * Return the value (as a short) of the field 'qid' */ public short get_qid() { return (short)getUIntElement(offsetBits_qid(), 8); } /** * Set the value of the field 'qid' */ public void set_qid(short value) { setUIntElement(offsetBits_qid(), 8, value); } /** * Return the size, in bytes, of the field 'qid' */ public static int size_qid() { return (8 / 8); } /** * Return the size, in bits, of the field 'qid' */ public static int sizeBits_qid() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: fwdNode // Field type: int // Offset (bits): 8 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'fwdNode' is signed (false). */ public static boolean isSigned_fwdNode() { return false; } /** * Return whether the field 'fwdNode' is an array (false). */ public static boolean isArray_fwdNode() { return false; } /** * Return the offset (in bytes) of the field 'fwdNode' */ public static int offset_fwdNode() { return (8 / 8); } /** * Return the offset (in bits) of the field 'fwdNode' */ public static int offsetBits_fwdNode() { return 8; } /** * Return the value (as a int) of the field 'fwdNode' */ public int get_fwdNode() { return (int)getUIntElement(offsetBits_fwdNode(), 16); } /** * Set the value of the field 'fwdNode' */ public void set_fwdNode(int value) { setUIntElement(offsetBits_fwdNode(), 16, value); } /** * Return the size, in bytes, of the field 'fwdNode' */ public static int size_fwdNode() { return (16 / 8); } /** * Return the size, in bits, of the field 'fwdNode' */ public static int sizeBits_fwdNode() { return 16; } ///////////////////////////////////////////////////////// // Accessor methods for field: msgType // Field type: byte // Offset (bits): 24 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'msgType' is signed (false). */ public static boolean isSigned_msgType() { return false; } /** * Return whether the field 'msgType' is an array (false). */ public static boolean isArray_msgType() { return false; } /** * Return the offset (in bytes) of the field 'msgType' */ public static int offset_msgType() { return (24 / 8); } /** * Return the offset (in bits) of the field 'msgType' */ public static int offsetBits_msgType() { return 24; } /** * Return the value (as a byte) of the field 'msgType' */ public byte get_msgType() { return (byte)getSIntElement(offsetBits_msgType(), 8); } /** * Set the value of the field 'msgType'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -