📄 s4commandresponsemessage.java
字号:
/** * This class is automatically generated by mig. DO NOT EDIT THIS FILE. * This class implements a Java interface to the 'S4CommandResponseMessage' * message type. */package net.tinyos.cr.messages;public class S4CommandResponseMessage extends net.tinyos.message.Message { /** The default size of this message type in bytes. */ public static final int DEFAULT_MESSAGE_SIZE = 30; /** The Active Message type associated with this message. */ public static final int AM_TYPE = 58; /** Create a new S4CommandResponseMessage of size 30. */ public S4CommandResponseMessage() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new S4CommandResponseMessage of the given data_length. */ public S4CommandResponseMessage(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new S4CommandResponseMessage with the given data_length * and base offset. */ public S4CommandResponseMessage(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new S4CommandResponseMessage using the given byte array * as backing store. */ public S4CommandResponseMessage(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new S4CommandResponseMessage using the given byte array * as backing store, with the given base offset. */ public S4CommandResponseMessage(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new S4CommandResponseMessage using the given byte array * as backing store, with the given base offset and data length. */ public S4CommandResponseMessage(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new S4CommandResponseMessage embedded in the given message * at the given base offset. */ public S4CommandResponseMessage(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new S4CommandResponseMessage embedded in the given message * at the given base offset and length. */ public S4CommandResponseMessage(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 <S4CommandResponseMessage> \n"; try { s += " [header.last_hop=0x"+Long.toHexString(get_header_last_hop())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [header.seqno=0x"+Long.toHexString(get_header_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.hopcount=0x"+Long.toHexString(get_type_data_hopcount())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.gateway_addr=0x"+Long.toHexString(get_type_data_gateway_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.cmd_addr=0x"+Long.toHexString(get_type_data_cmd_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.type=0x"+Long.toHexString(get_type_data_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.seqno=0x"+Long.toHexString(get_type_data_data_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.flags=0x"+Long.toHexString(get_type_data_data_flags())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.byte_arg=0x"+Long.toHexString(get_type_data_data_args_byte_arg())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.short_arg=0x"+Long.toHexString(get_type_data_data_args_short_arg())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.coords.comps="; for (int i = 0; i < 8; i++) { s += "0x"+Long.toHexString(getElement_type_data_data_args_coords_comps(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.info.coords.comps="; for (int i = 0; i < 8; i++) { s += "0x"+Long.toHexString(getElement_type_data_data_args_info_coords_comps(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.info.neighbors=0x"+Long.toHexString(get_type_data_data_args_info_neighbors())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.info.links=0x"+Long.toHexString(get_type_data_data_args_info_links())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.info.is_root_beacon=0x"+Long.toHexString(get_type_data_data_args_info_is_root_beacon())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.info.power=0x"+Long.toHexString(get_type_data_data_args_info_power())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.info.routing_table_size=0x"+Long.toHexString(get_type_data_data_args_info_routing_table_size())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.dest.closest_beacon=0x"+Long.toHexString(get_type_data_data_args_dest_closest_beacon())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.dest.addr=0x"+Long.toHexString(get_type_data_data_args_dest_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.dest.init_delay=0x"+Long.toHexString(get_type_data_data_args_dest_init_delay())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.dest.n_packets=0x"+Long.toHexString(get_type_data_data_args_dest_n_packets())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.dest.interval=0x"+Long.toHexString(get_type_data_data_args_dest_interval())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.ident.install_id=0x"+Long.toHexString(get_type_data_data_args_ident_install_id())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.ident.compile_time=0x"+Long.toHexString(get_type_data_data_args_ident_compile_time())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.root_info.valid=0x"+Long.toHexString(get_type_data_data_args_root_info_valid())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.root_info.parent=0x"+Long.toHexString(get_type_data_data_args_root_info_parent())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.root_info.last_seqno=0x"+Long.toHexString(get_type_data_data_args_root_info_last_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.root_info.hops=0x"+Long.toHexString(get_type_data_data_args_root_info_hops())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.root_info.combined_quality=0x"+Long.toHexString(get_type_data_data_args_root_info_combined_quality())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.root_info.updated=0x"+Long.toHexString(get_type_data_data_args_root_info_updated())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.state=0x"+Long.toHexString(get_type_data_data_args_link_info_state())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.addr=0x"+Long.toHexString(get_type_data_data_args_link_info_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.reverse_quality=0x"+Long.toHexString(get_type_data_data_args_link_info_reverse_quality())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.reverse_expiration=0x"+Long.toHexString(get_type_data_data_args_link_info_reverse_expiration())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.quality=0x"+Long.toHexString(get_type_data_data_args_link_info_quality())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.strength=0x"+Long.toHexString(get_type_data_data_args_link_info_strength())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.last_seqno=0x"+Long.toHexString(get_type_data_data_args_link_info_last_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.missed="; for (int i = 0; i < 3; i++) { s += "0x"+Long.toHexString(getElement_type_data_data_args_link_info_missed(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.received="; for (int i = 0; i < 3; i++) { s += "0x"+Long.toHexString(getElement_type_data_data_args_link_info_received(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.age=0x"+Long.toHexString(get_type_data_data_args_link_info_age())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.link_info.chances=0x"+Long.toHexString(get_type_data_data_args_link_info_chances())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.routing_table.entry.valid=0x"+Long.toHexString(get_type_data_data_args_routing_table_entry_valid())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.routing_table.entry.dest=0x"+Long.toHexString(get_type_data_data_args_routing_table_entry_dest())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.routing_table.entry.parent=0x"+Long.toHexString(get_type_data_data_args_routing_table_entry_parent())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.routing_table.entry.last_seqno=0x"+Long.toHexString(get_type_data_data_args_routing_table_entry_last_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.routing_table.entry.hops=0x"+Long.toHexString(get_type_data_data_args_routing_table_entry_hops())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.routing_table.entry.scope=0x"+Long.toHexString(get_type_data_data_args_routing_table_entry_scope())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.routing_table.entry.updated=0x"+Long.toHexString(get_type_data_data_args_routing_table_entry_updated())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.stats.sent_bv=0x"+Long.toHexString(get_type_data_data_args_stats_sent_bv())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.stats.sent_dv=0x"+Long.toHexString(get_type_data_data_args_stats_sent_dv())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.stats.sent_data=0x"+Long.toHexString(get_type_data_data_args_stats_sent_data())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [type_data.data.args.stats.routing_state=0x"+Long.toHexString(get_type_data_data_args_stats_routing_state())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } // Message-type-specific access methods appear below. ///////////////////////////////////////////////////////// // Accessor methods for field: header.last_hop // Field type: int // Offset (bits): 0 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'header.last_hop' is signed (false). */ public static boolean isSigned_header_last_hop() { return false; } /** * Return whether the field 'header.last_hop' is an array (false). */ public static boolean isArray_header_last_hop() { return false; } /** * Return the offset (in bytes) of the field 'header.last_hop' */ public static int offset_header_last_hop() { return (0 / 8); } /** * Return the offset (in bits) of the field 'header.last_hop' */ public static int offsetBits_header_last_hop() { return 0; } /** * Return the value (as a int) of the field 'header.last_hop' */ public int get_header_last_hop() { return (int)getUIntElement(offsetBits_header_last_hop(), 16); } /** * Set the value of the field 'header.last_hop' */ public void set_header_last_hop(int value) { setUIntElement(offsetBits_header_last_hop(), 16, value); } /** * Return the size, in bytes, of the field 'header.last_hop' */ public static int size_header_last_hop() { return (16 / 8); } /** * Return the size, in bits, of the field 'header.last_hop' */ public static int sizeBits_header_last_hop() { return 16; } ///////////////////////////////////////////////////////// // Accessor methods for field: header.seqno // Field type: int // Offset (bits): 16 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'header.seqno' is signed (false). */ public static boolean isSigned_header_seqno() { return false; } /** * Return whether the field 'header.seqno' is an array (false). */ public static boolean isArray_header_seqno() { return false; } /** * Return the offset (in bytes) of the field 'header.seqno' */ public static int offset_header_seqno() { return (16 / 8); } /** * Return the offset (in bits) of the field 'header.seqno' */ public static int offsetBits_header_seqno() { return 16; } /** * Return the value (as a int) of the field 'header.seqno' */ public int get_header_seqno() { return (int)getUIntElement(offsetBits_header_seqno(), 16); } /** * Set the value of the field 'header.seqno' */ public void set_header_seqno(int value) { setUIntElement(offsetBits_header_seqno(), 16, value); } /** * Return the size, in bytes, of the field 'header.seqno' */ public static int size_header_seqno() { return (16 / 8); } /** * Return the size, in bits, of the field 'header.seqno' */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -