📄 s4logmessage.java
字号:
/** * This class is automatically generated by mig. DO NOT EDIT THIS FILE. * This class implements a Java interface to the 'S4LogMessage' * message type. */package net.tinyos.cr.messages;public class S4LogMessage extends net.tinyos.message.Message { /** The default size of this message type in bytes. */ public static final int DEFAULT_MESSAGE_SIZE = 29; /** The Active Message type associated with this message. */ public static final int AM_TYPE = 60; /** Create a new S4LogMessage of size 29. */ public S4LogMessage() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new S4LogMessage of the given data_length. */ public S4LogMessage(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new S4LogMessage with the given data_length * and base offset. */ public S4LogMessage(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new S4LogMessage using the given byte array * as backing store. */ public S4LogMessage(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new S4LogMessage using the given byte array * as backing store, with the given base offset. */ public S4LogMessage(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new S4LogMessage using the given byte array * as backing store, with the given base offset and data length. */ public S4LogMessage(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new S4LogMessage embedded in the given message * at the given base offset. */ public S4LogMessage(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new S4LogMessage embedded in the given message * at the given base offset and length. */ public S4LogMessage(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 <S4LogMessage> \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 += " [log_msg.type=0x"+Long.toHexString(get_log_msg_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_beacon.type=0x"+Long.toHexString(get_log_msg_receive_beacon_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_beacon.seqno=0x"+Long.toHexString(get_log_msg_receive_beacon_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_beacon.source=0x"+Long.toHexString(get_log_msg_receive_beacon_source())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_beacon.last_hop=0x"+Long.toHexString(get_log_msg_receive_beacon_last_hop())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_beacon.hopcount=0x"+Long.toHexString(get_log_msg_receive_beacon_hopcount())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_beacon.scope=0x"+Long.toHexString(get_log_msg_receive_beacon_scope())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_root_beacon.type=0x"+Long.toHexString(get_log_msg_receive_root_beacon_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_root_beacon.id=0x"+Long.toHexString(get_log_msg_receive_root_beacon_id())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_root_beacon.seqno=0x"+Long.toHexString(get_log_msg_receive_root_beacon_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_root_beacon.hopcount=0x"+Long.toHexString(get_log_msg_receive_root_beacon_hopcount())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_root_beacon.last_hop=0x"+Long.toHexString(get_log_msg_receive_root_beacon_last_hop())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.receive_root_beacon.quality=0x"+Long.toHexString(get_log_msg_receive_root_beacon_quality())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.drop_link.type=0x"+Long.toHexString(get_log_msg_drop_link_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.drop_link.addr=0x"+Long.toHexString(get_log_msg_drop_link_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.type=0x"+Long.toHexString(get_log_msg_add_link_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.state=0x"+Long.toHexString(get_log_msg_add_link_link_state())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.addr=0x"+Long.toHexString(get_log_msg_add_link_link_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.reverse_quality=0x"+Long.toHexString(get_log_msg_add_link_link_reverse_quality())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.reverse_expiration=0x"+Long.toHexString(get_log_msg_add_link_link_reverse_expiration())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.quality=0x"+Long.toHexString(get_log_msg_add_link_link_quality())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.strength=0x"+Long.toHexString(get_log_msg_add_link_link_strength())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.last_seqno=0x"+Long.toHexString(get_log_msg_add_link_link_last_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.missed="; for (int i = 0; i < 3; i++) { s += "0x"+Long.toHexString(getElement_log_msg_add_link_link_missed(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.received="; for (int i = 0; i < 3; i++) { s += "0x"+Long.toHexString(getElement_log_msg_add_link_link_received(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.age=0x"+Long.toHexString(get_log_msg_add_link_link_age())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_link.link.chances=0x"+Long.toHexString(get_log_msg_add_link_link_chances())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.type=0x"+Long.toHexString(get_log_msg_change_link_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.state=0x"+Long.toHexString(get_log_msg_change_link_link_state())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.addr=0x"+Long.toHexString(get_log_msg_change_link_link_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.reverse_quality=0x"+Long.toHexString(get_log_msg_change_link_link_reverse_quality())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.reverse_expiration=0x"+Long.toHexString(get_log_msg_change_link_link_reverse_expiration())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.quality=0x"+Long.toHexString(get_log_msg_change_link_link_quality())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.strength=0x"+Long.toHexString(get_log_msg_change_link_link_strength())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.last_seqno=0x"+Long.toHexString(get_log_msg_change_link_link_last_seqno())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.missed="; for (int i = 0; i < 3; i++) { s += "0x"+Long.toHexString(getElement_log_msg_change_link_link_missed(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.received="; for (int i = 0; i < 3; i++) { s += "0x"+Long.toHexString(getElement_log_msg_change_link_link_received(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.age=0x"+Long.toHexString(get_log_msg_change_link_link_age())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_link.link.chances=0x"+Long.toHexString(get_log_msg_change_link_link_chances())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.add_neighbor.type=0x"+Long.toHexString(get_log_msg_add_neighbor_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.change_neighbor.type=0x"+Long.toHexString(get_log_msg_change_neighbor_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.drop_neighbor.type=0x"+Long.toHexString(get_log_msg_drop_neighbor_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.drop_neighbor.addr=0x"+Long.toHexString(get_log_msg_drop_neighbor_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.update_coordinates.type=0x"+Long.toHexString(get_log_msg_update_coordinates_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.update_coordinates.Coords.comps="; for (int i = 0; i < 8; i++) { s += "0x"+Long.toHexString(getElement_log_msg_update_coordinates_Coords_comps(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.update_coordinates.parents.parent="; for (int i = 0; i < 3; i++) { s += "0x"+Long.toHexString(getElement_log_msg_update_coordinates_parents_parent(i) & 0xff)+" "; } s += "]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.update_coordinate.type=0x"+Long.toHexString(get_log_msg_update_coordinate_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.update_coordinate.beacon=0x"+Long.toHexString(get_log_msg_update_coordinate_beacon())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.update_coordinate.hopcount=0x"+Long.toHexString(get_log_msg_update_coordinate_hopcount())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.update_coordinate.parent=0x"+Long.toHexString(get_log_msg_update_coordinate_parent())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.update_coordinate.combined_quality=0x"+Long.toHexString(get_log_msg_update_coordinate_combined_quality())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.route_report.type=0x"+Long.toHexString(get_log_msg_route_report_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.route_report.id=0x"+Long.toHexString(get_log_msg_route_report_id())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.route_report.origin_addr=0x"+Long.toHexString(get_log_msg_route_report_origin_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.route_report.dest_addr=0x"+Long.toHexString(get_log_msg_route_report_dest_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.route_report.hopcount=0x"+Long.toHexString(get_log_msg_route_report_hopcount())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.route_report.rexmit_count=0x"+Long.toHexString(get_log_msg_route_report_rexmit_count())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.route_report.tried_hopcount=0x"+Long.toHexString(get_log_msg_route_report_tried_hopcount())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.route_report.closest_beacon=0x"+Long.toHexString(get_log_msg_route_report_closest_beacon())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.logger_stats.type=0x"+Long.toHexString(get_log_msg_logger_stats_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.logger_stats.free_pos=0x"+Long.toHexString(get_log_msg_logger_stats_free_pos())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.logger_stats.max_queue=0x"+Long.toHexString(get_log_msg_logger_stats_max_queue())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.logger_stats.stat_received=0x"+Long.toHexString(get_log_msg_logger_stats_stat_received())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.logger_stats.stat_written=0x"+Long.toHexString(get_log_msg_logger_stats_stat_written())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.logger_stats.stat_no_buffer=0x"+Long.toHexString(get_log_msg_logger_stats_stat_no_buffer())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.logger_stats.stat_send_failed=0x"+Long.toHexString(get_log_msg_logger_stats_stat_send_failed())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.logger_stats.stat_send_done_failed=0x"+Long.toHexString(get_log_msg_logger_stats_stat_send_done_failed())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.type=0x"+Long.toHexString(get_log_msg_UART_comm_stats_type())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_receive_duplicate_no_buffer=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_receive_duplicate_no_buffer())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_receive_duplicate_send_failed=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_receive_duplicate_send_failed())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_receive_total=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_receive_total())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_send_duplicate_no_buffer=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_send_duplicate_no_buffer())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_send_duplicate_send_fail=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_send_duplicate_send_fail())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_send_duplicate_send_done_fail=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_send_duplicate_send_done_fail())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_send_duplicate_success=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_send_duplicate_success())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_send_duplicate_total=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_send_duplicate_total())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_send_original_send_done_fail=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_send_original_send_done_fail())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_send_original_send_failed=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_send_original_send_failed())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [log_msg.UART_comm_stats.stat_send_original_success=0x"+Long.toHexString(get_log_msg_UART_comm_stats_stat_send_original_success())+"]\n";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -