[Firebug-cvs] firebug/project/java/src/org/firebug XBow4Msg.java,NONE,1.1
Brought to you by:
doolin
From: David M. D. <do...@us...> - 2004-08-09 19:52:21
|
Update of /cvsroot/firebug/firebug/project/java/src/org/firebug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10565/src/org/firebug Added Files: XBow4Msg.java Log Message: Added dummy xbow msg. --- NEW FILE: XBow4Msg.java --- /** * This class is automatically generated by mig. DO NOT EDIT THIS FILE. * This class implements a Java interface to the 'XBow4Msg' * message type. */ package org.firebug; public class XBow4Msg extends net.tinyos.message.Message { /** The default size of this message type in bytes. */ public static final int DEFAULT_MESSAGE_SIZE = 19; /** The Active Message type associated with this message. */ public static final int AM_TYPE = 140; /** Create a new XBow4Msg of size 19. */ public XBow4Msg() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new XBow4Msg of the given data_length. */ public XBow4Msg(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new XBow4Msg with the given data_length * and base offset. */ public XBow4Msg(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new XBow4Msg using the given byte array * as backing store. */ public XBow4Msg(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new XBow4Msg using the given byte array * as backing store, with the given base offset. */ public XBow4Msg(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new XBow4Msg using the given byte array * as backing store, with the given base offset and data length. */ public XBow4Msg(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new XBow4Msg embedded in the given message * at the given base offset. */ public XBow4Msg(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new XBow4Msg embedded in the given message * at the given base offset and length. */ public XBow4Msg(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 <XBow4Msg> \n"; try { s += " [hours=0x"+Long.toHexString(get_hours())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [minutes=0x"+Long.toHexString(get_minutes())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [Lat_deg=0x"+Long.toHexString(get_Lat_deg())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [Long_deg=0x"+Long.toHexString(get_Long_deg())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [dec_sec=0x"+Long.toHexString(get_dec_sec())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [Lat_dec_min=0x"+Long.toHexString(get_Lat_dec_min())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [Long_dec_min=0x"+Long.toHexString(get_Long_dec_min())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [NSEWind=0x"+Long.toHexString(get_NSEWind())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [Fixed=0x"+Long.toHexString(get_Fixed())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [num_sats=0x"+Long.toHexString(get_num_sats())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } // Message-type-specific access methods appear below. ///////////////////////////////////////////////////////// // Accessor methods for field: hours // Field type: short, unsigned // Offset (bits): 0 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'hours' is signed (false). */ public static boolean isSigned_hours() { return false; } /** * Return whether the field 'hours' is an array (false). */ public static boolean isArray_hours() { return false; } /** * Return the offset (in bytes) of the field 'hours' */ public static int offset_hours() { return (0 / 8); } /** * Return the offset (in bits) of the field 'hours' */ public static int offsetBits_hours() { return 0; } /** * Return the value (as a short) of the field 'hours' */ public short get_hours() { return (short)getUIntElement(offsetBits_hours(), 8); } /** * Set the value of the field 'hours' */ public void set_hours(short value) { setUIntElement(offsetBits_hours(), 8, value); } /** * Return the size, in bytes, of the field 'hours' */ public static int size_hours() { return (8 / 8); } /** * Return the size, in bits, of the field 'hours' */ public static int sizeBits_hours() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: minutes // Field type: short, unsigned // Offset (bits): 8 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'minutes' is signed (false). */ public static boolean isSigned_minutes() { return false; } /** * Return whether the field 'minutes' is an array (false). */ public static boolean isArray_minutes() { return false; } /** * Return the offset (in bytes) of the field 'minutes' */ public static int offset_minutes() { return (8 / 8); } /** * Return the offset (in bits) of the field 'minutes' */ public static int offsetBits_minutes() { return 8; } /** * Return the value (as a short) of the field 'minutes' */ public short get_minutes() { return (short)getUIntElement(offsetBits_minutes(), 8); } /** * Set the value of the field 'minutes' */ public void set_minutes(short value) { setUIntElement(offsetBits_minutes(), 8, value); } /** * Return the size, in bytes, of the field 'minutes' */ public static int size_minutes() { return (8 / 8); } /** * Return the size, in bits, of the field 'minutes' */ public static int sizeBits_minutes() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: Lat_deg // Field type: short, unsigned // Offset (bits): 16 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'Lat_deg' is signed (false). */ public static boolean isSigned_Lat_deg() { return false; } /** * Return whether the field 'Lat_deg' is an array (false). */ public static boolean isArray_Lat_deg() { return false; } /** * Return the offset (in bytes) of the field 'Lat_deg' */ public static int offset_Lat_deg() { return (16 / 8); } /** * Return the offset (in bits) of the field 'Lat_deg' */ public static int offsetBits_Lat_deg() { return 16; } /** * Return the value (as a short) of the field 'Lat_deg' */ public short get_Lat_deg() { return (short)getUIntElement(offsetBits_Lat_deg(), 8); } /** * Set the value of the field 'Lat_deg' */ public void set_Lat_deg(short value) { setUIntElement(offsetBits_Lat_deg(), 8, value); } /** * Return the size, in bytes, of the field 'Lat_deg' */ public static int size_Lat_deg() { return (8 / 8); } /** * Return the size, in bits, of the field 'Lat_deg' */ public static int sizeBits_Lat_deg() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: Long_deg // Field type: short, unsigned // Offset (bits): 24 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'Long_deg' is signed (false). */ public static boolean isSigned_Long_deg() { return false; } /** * Return whether the field 'Long_deg' is an array (false). */ public static boolean isArray_Long_deg() { return false; } /** * Return the offset (in bytes) of the field 'Long_deg' */ public static int offset_Long_deg() { return (24 / 8); } /** * Return the offset (in bits) of the field 'Long_deg' */ public static int offsetBits_Long_deg() { return 24; } /** * Return the value (as a short) of the field 'Long_deg' */ public short get_Long_deg() { return (short)getUIntElement(offsetBits_Long_deg(), 8); } /** * Set the value of the field 'Long_deg' */ public void set_Long_deg(short value) { setUIntElement(offsetBits_Long_deg(), 8, value); } /** * Return the size, in bytes, of the field 'Long_deg' */ public static int size_Long_deg() { return (8 / 8); } /** * Return the size, in bits, of the field 'Long_deg' */ public static int sizeBits_Long_deg() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: dec_sec // Field type: long, unsigned // Offset (bits): 32 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'dec_sec' is signed (false). */ public static boolean isSigned_dec_sec() { return false; } /** * Return whether the field 'dec_sec' is an array (false). */ public static boolean isArray_dec_sec() { return false; } /** * Return the offset (in bytes) of the field 'dec_sec' */ public static int offset_dec_sec() { return (32 / 8); } /** * Return the offset (in bits) of the field 'dec_sec' */ public static int offsetBits_dec_sec() { return 32; } /** * Return the value (as a long) of the field 'dec_sec' */ public long get_dec_sec() { return (long)getUIntElement(offsetBits_dec_sec(), 32); } /** * Set the value of the field 'dec_sec' */ public void set_dec_sec(long value) { setUIntElement(offsetBits_dec_sec(), 32, value); } /** * Return the size, in bytes, of the field 'dec_sec' */ public static int size_dec_sec() { return (32 / 8); } /** * Return the size, in bits, of the field 'dec_sec' */ public static int sizeBits_dec_sec() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: Lat_dec_min // Field type: long, unsigned // Offset (bits): 64 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'Lat_dec_min' is signed (false). */ public static boolean isSigned_Lat_dec_min() { return false; } /** * Return whether the field 'Lat_dec_min' is an array (false). */ public static boolean isArray_Lat_dec_min() { return false; } /** * Return the offset (in bytes) of the field 'Lat_dec_min' */ public static int offset_Lat_dec_min() { return (64 / 8); } /** * Return the offset (in bits) of the field 'Lat_dec_min' */ public static int offsetBits_Lat_dec_min() { return 64; } /** * Return the value (as a long) of the field 'Lat_dec_min' */ public long get_Lat_dec_min() { return (long)getUIntElement(offsetBits_Lat_dec_min(), 32); } /** * Set the value of the field 'Lat_dec_min' */ public void set_Lat_dec_min(long value) { setUIntElement(offsetBits_Lat_dec_min(), 32, value); } /** * Return the size, in bytes, of the field 'Lat_dec_min' */ public static int size_Lat_dec_min() { return (32 / 8); } /** * Return the size, in bits, of the field 'Lat_dec_min' */ public static int sizeBits_Lat_dec_min() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: Long_dec_min // Field type: long, unsigned // Offset (bits): 96 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'Long_dec_min' is signed (false). */ public static boolean isSigned_Long_dec_min() { return false; } /** * Return whether the field 'Long_dec_min' is an array (false). */ public static boolean isArray_Long_dec_min() { return false; } /** * Return the offset (in bytes) of the field 'Long_dec_min' */ public static int offset_Long_dec_min() { return (96 / 8); } /** * Return the offset (in bits) of the field 'Long_dec_min' */ public static int offsetBits_Long_dec_min() { return 96; } /** * Return the value (as a long) of the field 'Long_dec_min' */ public long get_Long_dec_min() { return (long)getUIntElement(offsetBits_Long_dec_min(), 32); } /** * Set the value of the field 'Long_dec_min' */ public void set_Long_dec_min(long value) { setUIntElement(offsetBits_Long_dec_min(), 32, value); } /** * Return the size, in bytes, of the field 'Long_dec_min' */ public static int size_Long_dec_min() { return (32 / 8); } /** * Return the size, in bits, of the field 'Long_dec_min' */ public static int sizeBits_Long_dec_min() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: NSEWind // Field type: short, unsigned // Offset (bits): 128 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'NSEWind' is signed (false). */ public static boolean isSigned_NSEWind() { return false; } /** * Return whether the field 'NSEWind' is an array (false). */ public static boolean isArray_NSEWind() { return false; } /** * Return the offset (in bytes) of the field 'NSEWind' */ public static int offset_NSEWind() { return (128 / 8); } /** * Return the offset (in bits) of the field 'NSEWind' */ public static int offsetBits_NSEWind() { return 128; } /** * Return the value (as a short) of the field 'NSEWind' */ public short get_NSEWind() { return (short)getUIntElement(offsetBits_NSEWind(), 8); } /** * Set the value of the field 'NSEWind' */ public void set_NSEWind(short value) { setUIntElement(offsetBits_NSEWind(), 8, value); } /** * Return the size, in bytes, of the field 'NSEWind' */ public static int size_NSEWind() { return (8 / 8); } /** * Return the size, in bits, of the field 'NSEWind' */ public static int sizeBits_NSEWind() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: Fixed // Field type: short, unsigned // Offset (bits): 136 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'Fixed' is signed (false). */ public static boolean isSigned_Fixed() { return false; } /** * Return whether the field 'Fixed' is an array (false). */ public static boolean isArray_Fixed() { return false; } /** * Return the offset (in bytes) of the field 'Fixed' */ public static int offset_Fixed() { return (136 / 8); } /** * Return the offset (in bits) of the field 'Fixed' */ public static int offsetBits_Fixed() { return 136; } /** * Return the value (as a short) of the field 'Fixed' */ public short get_Fixed() { return (short)getUIntElement(offsetBits_Fixed(), 8); } /** * Set the value of the field 'Fixed' */ public void set_Fixed(short value) { setUIntElement(offsetBits_Fixed(), 8, value); } /** * Return the size, in bytes, of the field 'Fixed' */ public static int size_Fixed() { return (8 / 8); } /** * Return the size, in bits, of the field 'Fixed' */ public static int sizeBits_Fixed() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: num_sats // Field type: short, unsigned // Offset (bits): 144 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'num_sats' is signed (false). */ public static boolean isSigned_num_sats() { return false; } /** * Return whether the field 'num_sats' is an array (false). */ public static boolean isArray_num_sats() { return false; } /** * Return the offset (in bytes) of the field 'num_sats' */ public static int offset_num_sats() { return (144 / 8); } /** * Return the offset (in bits) of the field 'num_sats' */ public static int offsetBits_num_sats() { return 144; } /** * Return the value (as a short) of the field 'num_sats' */ public short get_num_sats() { return (short)getUIntElement(offsetBits_num_sats(), 8); } /** * Set the value of the field 'num_sats' */ public void set_num_sats(short value) { setUIntElement(offsetBits_num_sats(), 8, value); } /** * Return the size, in bytes, of the field 'num_sats' */ public static int size_num_sats() { return (8 / 8); } /** * Return the size, in bits, of the field 'num_sats' */ public static int sizeBits_num_sats() { return 8; } } |