[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/rincon/tools/java/com/rincon/blackbook/messages BlackbookConnectMsg.java, NONE, 1.1 BlackbookFileMsg.java, NONE, 1.1 BlackbookSectorMsg.java, NONE, 1.1 BlackbookSectorMsg.class, NONE, 1.1 BlackbookFileMsg.class, NONE, 1.1 BlackbookNodeMsg.class, NONE, 1.1 BlackbookNodeMsg.java, NONE, 1.1 BlackbookConnectMsg.class, NONE, 1.1

dmm rincon at users.sourceforge.net
Thu Apr 20 16:02:54 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/contrib/rincon/tools/java/com/rincon/blackbook/messages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15414/contrib/rincon/tools/java/com/rincon/blackbook/messages

Added Files:
	BlackbookConnectMsg.java BlackbookFileMsg.java 
	BlackbookSectorMsg.java BlackbookSectorMsg.class 
	BlackbookFileMsg.class BlackbookNodeMsg.class 
	BlackbookNodeMsg.java BlackbookConnectMsg.class 
Log Message:
Fixed the java/com directory, and added in two more packages:  Blackbook, and EavesLogger.

--- NEW FILE: BlackbookConnectMsg.java ---
/**
 * This class is automatically generated by mig. DO NOT EDIT THIS FILE.
 * This class implements a Java interface to the 'BlackbookConnectMsg'
 * message type.
 */

package com.rincon.blackbook.messages;

public class BlackbookConnectMsg extends net.tinyos.message.Message {

    /** The default size of this message type in bytes. */
    public static final int DEFAULT_MESSAGE_SIZE = 28;

    /** The Active Message type associated with this message. */
    public static final int AM_TYPE = 187;

    /** Create a new BlackbookConnectMsg of size 28. */
    public BlackbookConnectMsg() {
        super(DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /** Create a new BlackbookConnectMsg of the given data_length. */
    public BlackbookConnectMsg(int data_length) {
        super(data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookConnectMsg with the given data_length
     * and base offset.
     */
    public BlackbookConnectMsg(int data_length, int base_offset) {
        super(data_length, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookConnectMsg using the given byte array
     * as backing store.
     */
    public BlackbookConnectMsg(byte[] data) {
        super(data);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookConnectMsg using the given byte array
     * as backing store, with the given base offset.
     */
    public BlackbookConnectMsg(byte[] data, int base_offset) {
        super(data, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookConnectMsg using the given byte array
     * as backing store, with the given base offset and data length.
     */
    public BlackbookConnectMsg(byte[] data, int base_offset, int data_length) {
        super(data, base_offset, data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookConnectMsg embedded in the given message
     * at the given base offset.
     */
    public BlackbookConnectMsg(net.tinyos.message.Message msg, int base_offset) {
        super(msg, base_offset, DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookConnectMsg embedded in the given message
     * at the given base offset and length.
     */
    public BlackbookConnectMsg(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 <BlackbookConnectMsg> \n";
      try {
        s += "  [length=0x"+Long.toHexString(get_length())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [cmd=0x"+Long.toHexString(get_cmd())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [result=0x"+Long.toHexString(get_result())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [data=";
        for (int i = 0; i < 22; i++) {
          s += "0x"+Long.toHexString(getElement_data(i) & 0xff)+" ";
        }
        s += "]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      return s;
    }

    // Message-type-specific access methods appear below.

    /////////////////////////////////////////////////////////
    // Accessor methods for field: length
    //   Field type: long, unsigned
    //   Offset (bits): 0
    //   Size (bits): 32
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'length' is signed (false).
     */
    public static boolean isSigned_length() {
        return false;
    }

    /**
     * Return whether the field 'length' is an array (false).
     */
    public static boolean isArray_length() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'length'
     */
    public static int offset_length() {
        return (0 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'length'
     */
    public static int offsetBits_length() {
        return 0;
    }

    /**
     * Return the value (as a long) of the field 'length'
     */
    public long get_length() {
        return (long)getUIntElement(offsetBits_length(), 32);
    }

    /**
     * Set the value of the field 'length'
     */
    public void set_length(long value) {
        setUIntElement(offsetBits_length(), 32, value);
    }

    /**
     * Return the size, in bytes, of the field 'length'
     */
    public static int size_length() {
        return (32 / 8);
    }

    /**
     * Return the size, in bits, of the field 'length'
     */
    public static int sizeBits_length() {
        return 32;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: cmd
    //   Field type: short, unsigned
    //   Offset (bits): 32
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'cmd' is signed (false).
     */
    public static boolean isSigned_cmd() {
        return false;
    }

    /**
     * Return whether the field 'cmd' is an array (false).
     */
    public static boolean isArray_cmd() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'cmd'
     */
    public static int offset_cmd() {
        return (32 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'cmd'
     */
    public static int offsetBits_cmd() {
        return 32;
    }

    /**
     * Return the value (as a short) of the field 'cmd'
     */
    public short get_cmd() {
        return (short)getUIntElement(offsetBits_cmd(), 8);
    }

    /**
     * Set the value of the field 'cmd'
     */
    public void set_cmd(short value) {
        setUIntElement(offsetBits_cmd(), 8, value);
    }

    /**
     * Return the size, in bytes, of the field 'cmd'
     */
    public static int size_cmd() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of the field 'cmd'
     */
    public static int sizeBits_cmd() {
        return 8;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: result
    //   Field type: short, unsigned
    //   Offset (bits): 40
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'result' is signed (false).
     */
    public static boolean isSigned_result() {
        return false;
    }

    /**
     * Return whether the field 'result' is an array (false).
     */
    public static boolean isArray_result() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'result'
     */
    public static int offset_result() {
        return (40 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'result'
     */
    public static int offsetBits_result() {
        return 40;
    }

    /**
     * Return the value (as a short) of the field 'result'
     */
    public short get_result() {
        return (short)getUIntElement(offsetBits_result(), 8);
    }

    /**
     * Set the value of the field 'result'
     */
    public void set_result(short value) {
        setUIntElement(offsetBits_result(), 8, value);
    }

    /**
     * Return the size, in bytes, of the field 'result'
     */
    public static int size_result() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of the field 'result'
     */
    public static int sizeBits_result() {
        return 8;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: data
    //   Field type: short[], unsigned
    //   Offset (bits): 48
    //   Size of each element (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'data' is signed (false).
     */
    public static boolean isSigned_data() {
        return false;
    }

    /**
     * Return whether the field 'data' is an array (true).
     */
    public static boolean isArray_data() {
        return true;
    }

    /**
     * Return the offset (in bytes) of the field 'data'
     */
    public static int offset_data(int index1) {
        int offset = 48;
        if (index1 < 0 || index1 >= 22) throw new ArrayIndexOutOfBoundsException();
        offset += 0 + index1 * 8;
        return (offset / 8);
    }

    /**
     * Return the offset (in bits) of the field 'data'
     */
    public static int offsetBits_data(int index1) {
        int offset = 48;
        if (index1 < 0 || index1 >= 22) throw new ArrayIndexOutOfBoundsException();
        offset += 0 + index1 * 8;
        return offset;
    }

    /**
     * Return the entire array 'data' as a short[]
     */
    public short[] get_data() {
        short[] tmp = new short[22];
        for (int index0 = 0; index0 < numElements_data(0); index0++) {
            tmp[index0] = getElement_data(index0);
        }
        return tmp;
    }

    /**
     * Set the contents of the array 'data' from the given short[]
     */
    public void set_data(short[] value) {
        for (int index0 = 0; index0 < value.length; index0++) {
            setElement_data(index0, value[index0]);
        }
    }

    /**
     * Return an element (as a short) of the array 'data'
     */
    public short getElement_data(int index1) {
        return (short)getUIntElement(offsetBits_data(index1), 8);
    }

    /**
     * Set an element of the array 'data'
     */
    public void setElement_data(int index1, short value) {
        setUIntElement(offsetBits_data(index1), 8, value);
    }

    /**
     * Return the total size, in bytes, of the array 'data'
     */
    public static int totalSize_data() {
        return (176 / 8);
    }

    /**
     * Return the total size, in bits, of the array 'data'
     */
    public static int totalSizeBits_data() {
        return 176;
    }

    /**
     * Return the size, in bytes, of each element of the array 'data'
     */
    public static int elementSize_data() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of each element of the array 'data'
     */
    public static int elementSizeBits_data() {
        return 8;
    }

    /**
     * Return the number of dimensions in the array 'data'
     */
    public static int numDimensions_data() {
        return 1;
    }

    /**
     * Return the number of elements in the array 'data'
     */
    public static int numElements_data() {
        return 22;
    }

    /**
     * Return the number of elements in the array 'data'
     * for the given dimension.
     */
    public static int numElements_data(int dimension) {
      int array_dims[] = { 22,  };
        if (dimension < 0 || dimension >= 1) throw new ArrayIndexOutOfBoundsException();
        if (array_dims[dimension] == 0) throw new IllegalArgumentException("Array dimension "+dimension+" has unknown size");
        return array_dims[dimension];
    }

    /**
     * Fill in the array 'data' with a String
     */
    public void setString_data(String s) { 
         int len = s.length();
         int i;
         for (i = 0; i < len; i++) {
             setElement_data(i, (short)s.charAt(i));
         }
         setElement_data(i, (short)0); //null terminate
    }

    /**
     * Read the array 'data' as a String
     */
    public String getString_data() { 
         char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,22)];
         int i;
         for (i = 0; i < carr.length; i++) {
             if ((char)getElement_data(i) == (char)0) break;
             carr[i] = (char)getElement_data(i);
         }
         return new String(carr,0,i);
    }

}

--- NEW FILE: BlackbookFileMsg.java ---
/**
 * This class is automatically generated by mig. DO NOT EDIT THIS FILE.
 * This class implements a Java interface to the 'BlackbookFileMsg'
 * message type.
 */

package com.rincon.blackbook.messages;

public class BlackbookFileMsg extends net.tinyos.message.Message {

    /** The default size of this message type in bytes. */
    public static final int DEFAULT_MESSAGE_SIZE = 20;

    /** The Active Message type associated with this message. */
    public static final int AM_TYPE = 189;

    /** Create a new BlackbookFileMsg of size 20. */
    public BlackbookFileMsg() {
        super(DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /** Create a new BlackbookFileMsg of the given data_length. */
    public BlackbookFileMsg(int data_length) {
        super(data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookFileMsg with the given data_length
     * and base offset.
     */
    public BlackbookFileMsg(int data_length, int base_offset) {
        super(data_length, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookFileMsg using the given byte array
     * as backing store.
     */
    public BlackbookFileMsg(byte[] data) {
        super(data);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookFileMsg using the given byte array
     * as backing store, with the given base offset.
     */
    public BlackbookFileMsg(byte[] data, int base_offset) {
        super(data, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookFileMsg using the given byte array
     * as backing store, with the given base offset and data length.
     */
    public BlackbookFileMsg(byte[] data, int base_offset, int data_length) {
        super(data, base_offset, data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookFileMsg embedded in the given message
     * at the given base offset.
     */
    public BlackbookFileMsg(net.tinyos.message.Message msg, int base_offset) {
        super(msg, base_offset, DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookFileMsg embedded in the given message
     * at the given base offset and length.
     */
    public BlackbookFileMsg(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 <BlackbookFileMsg> \n";
      try {
        s += "  [focusedFile.firstNode=0x"+Long.toHexString(get_focusedFile_firstNode())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedFile.filenameCrc=0x"+Long.toHexString(get_focusedFile_filenameCrc())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedFile.state=0x"+Long.toHexString(get_focusedFile_state())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedFile.type=0x"+Long.toHexString(get_focusedFile_type())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedFile.name.getName=";
        for (int i = 0; i < 14; i++) {
          s += "0x"+Long.toHexString(getElement_focusedFile_name_getName(i) & 0xff)+" ";
        }
        s += "]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      return s;
    }

    // Message-type-specific access methods appear below.

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedFile.firstNode
    //   Field type: int
    //   Offset (bits): 0
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedFile.firstNode' is signed (false).
     */
    public static boolean isSigned_focusedFile_firstNode() {
        return false;
    }

    /**
     * Return whether the field 'focusedFile.firstNode' is an array (false).
     */
    public static boolean isArray_focusedFile_firstNode() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedFile.firstNode'
     */
    public static int offset_focusedFile_firstNode() {
        return (0 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedFile.firstNode'
     */
    public static int offsetBits_focusedFile_firstNode() {
        return 0;
    }

    /**
     * Return the value (as a int) of the field 'focusedFile.firstNode'
     */
    public int get_focusedFile_firstNode() {
        return (int)getUIntElement(offsetBits_focusedFile_firstNode(), 16);
    }

    /**
     * Set the value of the field 'focusedFile.firstNode'
     */
    public void set_focusedFile_firstNode(int value) {
        setUIntElement(offsetBits_focusedFile_firstNode(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedFile.firstNode'
     */
    public static int size_focusedFile_firstNode() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedFile.firstNode'
     */
    public static int sizeBits_focusedFile_firstNode() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedFile.filenameCrc
    //   Field type: int
    //   Offset (bits): 16
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedFile.filenameCrc' is signed (false).
     */
    public static boolean isSigned_focusedFile_filenameCrc() {
        return false;
    }

    /**
     * Return whether the field 'focusedFile.filenameCrc' is an array (false).
     */
    public static boolean isArray_focusedFile_filenameCrc() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedFile.filenameCrc'
     */
    public static int offset_focusedFile_filenameCrc() {
        return (16 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedFile.filenameCrc'
     */
    public static int offsetBits_focusedFile_filenameCrc() {
        return 16;
    }

    /**
     * Return the value (as a int) of the field 'focusedFile.filenameCrc'
     */
    public int get_focusedFile_filenameCrc() {
        return (int)getUIntElement(offsetBits_focusedFile_filenameCrc(), 16);
    }

    /**
     * Set the value of the field 'focusedFile.filenameCrc'
     */
    public void set_focusedFile_filenameCrc(int value) {
        setUIntElement(offsetBits_focusedFile_filenameCrc(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedFile.filenameCrc'
     */
    public static int size_focusedFile_filenameCrc() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedFile.filenameCrc'
     */
    public static int sizeBits_focusedFile_filenameCrc() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedFile.state
    //   Field type: short
    //   Offset (bits): 32
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedFile.state' is signed (false).
     */
    public static boolean isSigned_focusedFile_state() {
        return false;
    }

    /**
     * Return whether the field 'focusedFile.state' is an array (false).
     */
    public static boolean isArray_focusedFile_state() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedFile.state'
     */
    public static int offset_focusedFile_state() {
        return (32 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedFile.state'
     */
    public static int offsetBits_focusedFile_state() {
        return 32;
    }

    /**
     * Return the value (as a short) of the field 'focusedFile.state'
     */
    public short get_focusedFile_state() {
        return (short)getUIntElement(offsetBits_focusedFile_state(), 8);
    }

    /**
     * Set the value of the field 'focusedFile.state'
     */
    public void set_focusedFile_state(short value) {
        setUIntElement(offsetBits_focusedFile_state(), 8, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedFile.state'
     */
    public static int size_focusedFile_state() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedFile.state'
     */
    public static int sizeBits_focusedFile_state() {
        return 8;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedFile.type
    //   Field type: short
    //   Offset (bits): 40
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedFile.type' is signed (false).
     */
    public static boolean isSigned_focusedFile_type() {
        return false;
    }

    /**
     * Return whether the field 'focusedFile.type' is an array (false).
     */
    public static boolean isArray_focusedFile_type() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedFile.type'
     */
    public static int offset_focusedFile_type() {
        return (40 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedFile.type'
     */
    public static int offsetBits_focusedFile_type() {
        return 40;
    }

    /**
     * Return the value (as a short) of the field 'focusedFile.type'
     */
    public short get_focusedFile_type() {
        return (short)getUIntElement(offsetBits_focusedFile_type(), 8);
    }

    /**
     * Set the value of the field 'focusedFile.type'
     */
    public void set_focusedFile_type(short value) {
        setUIntElement(offsetBits_focusedFile_type(), 8, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedFile.type'
     */
    public static int size_focusedFile_type() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedFile.type'
     */
    public static int sizeBits_focusedFile_type() {
        return 8;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedFile.name.getName
    //   Field type: byte[]
    //   Offset (bits): 48
    //   Size of each element (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedFile.name.getName' is signed (false).
     */
    public static boolean isSigned_focusedFile_name_getName() {
        return false;
    }

    /**
     * Return whether the field 'focusedFile.name.getName' is an array (true).
     */
    public static boolean isArray_focusedFile_name_getName() {
        return true;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedFile.name.getName'
     */
    public static int offset_focusedFile_name_getName(int index1) {
        int offset = 48;
        if (index1 < 0 || index1 >= 14) throw new ArrayIndexOutOfBoundsException();
        offset += 0 + index1 * 8;
        return (offset / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedFile.name.getName'
     */
    public static int offsetBits_focusedFile_name_getName(int index1) {
        int offset = 48;
        if (index1 < 0 || index1 >= 14) throw new ArrayIndexOutOfBoundsException();
        offset += 0 + index1 * 8;
        return offset;
    }

    /**
     * Return the entire array 'focusedFile.name.getName' as a byte[]
     */
    public byte[] get_focusedFile_name_getName() {
        byte[] tmp = new byte[14];
        for (int index0 = 0; index0 < numElements_focusedFile_name_getName(0); index0++) {
            tmp[index0] = getElement_focusedFile_name_getName(index0);
        }
        return tmp;
    }

    /**
     * Set the contents of the array 'focusedFile.name.getName' from the given byte[]
     */
    public void set_focusedFile_name_getName(byte[] value) {
        for (int index0 = 0; index0 < value.length; index0++) {
            setElement_focusedFile_name_getName(index0, value[index0]);
        }
    }

    /**
     * Return an element (as a byte) of the array 'focusedFile.name.getName'
     */
    public byte getElement_focusedFile_name_getName(int index1) {
        return (byte)getSIntElement(offsetBits_focusedFile_name_getName(index1), 8);
    }

    /**
     * Set an element of the array 'focusedFile.name.getName'
     */
    public void setElement_focusedFile_name_getName(int index1, byte value) {
        setSIntElement(offsetBits_focusedFile_name_getName(index1), 8, value);
    }

    /**
     * Return the total size, in bytes, of the array 'focusedFile.name.getName'
     */
    public static int totalSize_focusedFile_name_getName() {
        return (112 / 8);
    }

    /**
     * Return the total size, in bits, of the array 'focusedFile.name.getName'
     */
    public static int totalSizeBits_focusedFile_name_getName() {
        return 112;
    }

    /**
     * Return the size, in bytes, of each element of the array 'focusedFile.name.getName'
     */
    public static int elementSize_focusedFile_name_getName() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of each element of the array 'focusedFile.name.getName'
     */
    public static int elementSizeBits_focusedFile_name_getName() {
        return 8;
    }

    /**
     * Return the number of dimensions in the array 'focusedFile.name.getName'
     */
    public static int numDimensions_focusedFile_name_getName() {
        return 1;
    }

    /**
     * Return the number of elements in the array 'focusedFile.name.getName'
     */
    public static int numElements_focusedFile_name_getName() {
        return 14;
    }

    /**
     * Return the number of elements in the array 'focusedFile.name.getName'
     * for the given dimension.
     */
    public static int numElements_focusedFile_name_getName(int dimension) {
      int array_dims[] = { 14,  };
        if (dimension < 0 || dimension >= 1) throw new ArrayIndexOutOfBoundsException();
        if (array_dims[dimension] == 0) throw new IllegalArgumentException("Array dimension "+dimension+" has unknown size");
        return array_dims[dimension];
    }

    /**
     * Fill in the array 'focusedFile.name.getName' with a String
     */
    public void setString_focusedFile_name_getName(String s) { 
         int len = s.length();
         int i;
         for (i = 0; i < len; i++) {
             setElement_focusedFile_name_getName(i, (byte)s.charAt(i));
         }
         setElement_focusedFile_name_getName(i, (byte)0); //null terminate
    }

    /**
     * Read the array 'focusedFile.name.getName' as a String
     */
    public String getString_focusedFile_name_getName() { 
         char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,14)];
         int i;
         for (i = 0; i < carr.length; i++) {
             if ((char)getElement_focusedFile_name_getName(i) == (char)0) break;
             carr[i] = (char)getElement_focusedFile_name_getName(i);
         }
         return new String(carr,0,i);
    }

}

--- NEW FILE: BlackbookSectorMsg.java ---
/**
 * This class is automatically generated by mig. DO NOT EDIT THIS FILE.
 * This class implements a Java interface to the 'BlackbookSectorMsg'
 * message type.
 */

package com.rincon.blackbook.messages;

public class BlackbookSectorMsg extends net.tinyos.message.Message {

    /** The default size of this message type in bytes. */
    public static final int DEFAULT_MESSAGE_SIZE = 7;

    /** The Active Message type associated with this message. */
    public static final int AM_TYPE = 190;

    /** Create a new BlackbookSectorMsg of size 7. */
    public BlackbookSectorMsg() {
        super(DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /** Create a new BlackbookSectorMsg of the given data_length. */
    public BlackbookSectorMsg(int data_length) {
        super(data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookSectorMsg with the given data_length
     * and base offset.
     */
    public BlackbookSectorMsg(int data_length, int base_offset) {
        super(data_length, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookSectorMsg using the given byte array
     * as backing store.
     */
    public BlackbookSectorMsg(byte[] data) {
        super(data);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookSectorMsg using the given byte array
     * as backing store, with the given base offset.
     */
    public BlackbookSectorMsg(byte[] data, int base_offset) {
        super(data, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookSectorMsg using the given byte array
     * as backing store, with the given base offset and data length.
     */
    public BlackbookSectorMsg(byte[] data, int base_offset, int data_length) {
        super(data, base_offset, data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookSectorMsg embedded in the given message
     * at the given base offset.
     */
    public BlackbookSectorMsg(net.tinyos.message.Message msg, int base_offset) {
        super(msg, base_offset, DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookSectorMsg embedded in the given message
     * at the given base offset and length.
     */
    public BlackbookSectorMsg(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 <BlackbookSectorMsg> \n";
      try {
        s += "  [focusedSector.totalUnfinalizedNodes=0x"+Long.toHexString(get_focusedSector_totalUnfinalizedNodes())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedSector.writePage=0x"+Long.toHexString(get_focusedSector_writePage())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedSector.totalNodes=0x"+Long.toHexString(get_focusedSector_totalNodes())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedSector.index=0x"+Long.toHexString(get_focusedSector_index())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedSector.inUse=0x"+Long.toHexString(get_focusedSector_inUse())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      return s;
    }

    // Message-type-specific access methods appear below.

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedSector.totalUnfinalizedNodes
    //   Field type: int
    //   Offset (bits): 0
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedSector.totalUnfinalizedNodes' is signed (false).
     */
    public static boolean isSigned_focusedSector_totalUnfinalizedNodes() {
        return false;
    }

    /**
     * Return whether the field 'focusedSector.totalUnfinalizedNodes' is an array (false).
     */
    public static boolean isArray_focusedSector_totalUnfinalizedNodes() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedSector.totalUnfinalizedNodes'
     */
    public static int offset_focusedSector_totalUnfinalizedNodes() {
        return (0 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedSector.totalUnfinalizedNodes'
     */
    public static int offsetBits_focusedSector_totalUnfinalizedNodes() {
        return 0;
    }

    /**
     * Return the value (as a int) of the field 'focusedSector.totalUnfinalizedNodes'
     */
    public int get_focusedSector_totalUnfinalizedNodes() {
        return (int)getUIntElement(offsetBits_focusedSector_totalUnfinalizedNodes(), 16);
    }

    /**
     * Set the value of the field 'focusedSector.totalUnfinalizedNodes'
     */
    public void set_focusedSector_totalUnfinalizedNodes(int value) {
        setUIntElement(offsetBits_focusedSector_totalUnfinalizedNodes(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedSector.totalUnfinalizedNodes'
     */
    public static int size_focusedSector_totalUnfinalizedNodes() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedSector.totalUnfinalizedNodes'
     */
    public static int sizeBits_focusedSector_totalUnfinalizedNodes() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedSector.writePage
    //   Field type: int
    //   Offset (bits): 16
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedSector.writePage' is signed (false).
     */
    public static boolean isSigned_focusedSector_writePage() {
        return false;
    }

    /**
     * Return whether the field 'focusedSector.writePage' is an array (false).
     */
    public static boolean isArray_focusedSector_writePage() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedSector.writePage'
     */
    public static int offset_focusedSector_writePage() {
        return (16 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedSector.writePage'
     */
    public static int offsetBits_focusedSector_writePage() {
        return 16;
    }

    /**
     * Return the value (as a int) of the field 'focusedSector.writePage'
     */
    public int get_focusedSector_writePage() {
        return (int)getUIntElement(offsetBits_focusedSector_writePage(), 16);
    }

    /**
     * Set the value of the field 'focusedSector.writePage'
     */
    public void set_focusedSector_writePage(int value) {
        setUIntElement(offsetBits_focusedSector_writePage(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedSector.writePage'
     */
    public static int size_focusedSector_writePage() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedSector.writePage'
     */
    public static int sizeBits_focusedSector_writePage() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedSector.totalNodes
    //   Field type: short
    //   Offset (bits): 32
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedSector.totalNodes' is signed (false).
     */
    public static boolean isSigned_focusedSector_totalNodes() {
        return false;
    }

    /**
     * Return whether the field 'focusedSector.totalNodes' is an array (false).
     */
    public static boolean isArray_focusedSector_totalNodes() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedSector.totalNodes'
     */
    public static int offset_focusedSector_totalNodes() {
        return (32 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedSector.totalNodes'
     */
    public static int offsetBits_focusedSector_totalNodes() {
        return 32;
    }

    /**
     * Return the value (as a short) of the field 'focusedSector.totalNodes'
     */
    public short get_focusedSector_totalNodes() {
        return (short)getUIntElement(offsetBits_focusedSector_totalNodes(), 8);
    }

    /**
     * Set the value of the field 'focusedSector.totalNodes'
     */
    public void set_focusedSector_totalNodes(short value) {
        setUIntElement(offsetBits_focusedSector_totalNodes(), 8, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedSector.totalNodes'
     */
    public static int size_focusedSector_totalNodes() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedSector.totalNodes'
     */
    public static int sizeBits_focusedSector_totalNodes() {
        return 8;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedSector.index
    //   Field type: short
    //   Offset (bits): 40
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedSector.index' is signed (false).
     */
    public static boolean isSigned_focusedSector_index() {
        return false;
    }

    /**
     * Return whether the field 'focusedSector.index' is an array (false).
     */
    public static boolean isArray_focusedSector_index() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedSector.index'
     */
    public static int offset_focusedSector_index() {
        return (40 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedSector.index'
     */
    public static int offsetBits_focusedSector_index() {
        return 40;
    }

    /**
     * Return the value (as a short) of the field 'focusedSector.index'
     */
    public short get_focusedSector_index() {
        return (short)getUIntElement(offsetBits_focusedSector_index(), 8);
    }

    /**
     * Set the value of the field 'focusedSector.index'
     */
    public void set_focusedSector_index(short value) {
        setUIntElement(offsetBits_focusedSector_index(), 8, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedSector.index'
     */
    public static int size_focusedSector_index() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedSector.index'
     */
    public static int sizeBits_focusedSector_index() {
        return 8;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedSector.inUse
    //   Field type: short
    //   Offset (bits): 48
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedSector.inUse' is signed (false).
     */
    public static boolean isSigned_focusedSector_inUse() {
        return false;
    }

    /**
     * Return whether the field 'focusedSector.inUse' is an array (false).
     */
    public static boolean isArray_focusedSector_inUse() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedSector.inUse'
     */
    public static int offset_focusedSector_inUse() {
        return (48 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedSector.inUse'
     */
    public static int offsetBits_focusedSector_inUse() {
        return 48;
    }

    /**
     * Return the value (as a short) of the field 'focusedSector.inUse'
     */
    public short get_focusedSector_inUse() {
        return (short)getUIntElement(offsetBits_focusedSector_inUse(), 8);
    }

    /**
     * Set the value of the field 'focusedSector.inUse'
     */
    public void set_focusedSector_inUse(short value) {
        setUIntElement(offsetBits_focusedSector_inUse(), 8, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedSector.inUse'
     */
    public static int size_focusedSector_inUse() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedSector.inUse'
     */
    public static int sizeBits_focusedSector_inUse() {
        return 8;
    }

}

--- NEW FILE: BlackbookSectorMsg.class ---
Êþº¾


























SourceFile






--- NEW FILE: BlackbookFileMsg.class ---
Êþº¾

































array_dims




SourceFile





œ

YOL›
ô
--- NEW FILE: BlackbookNodeMsg.class ---
Êþº¾
































SourceFile

*¸






¬




--- NEW FILE: BlackbookNodeMsg.java ---
/**
 * This class is automatically generated by mig. DO NOT EDIT THIS FILE.
 * This class implements a Java interface to the 'BlackbookNodeMsg'
 * message type.
 */

package com.rincon.blackbook.messages;

public class BlackbookNodeMsg extends net.tinyos.message.Message {

    /** The default size of this message type in bytes. */
    public static final int DEFAULT_MESSAGE_SIZE = 16;

    /** The Active Message type associated with this message. */
    public static final int AM_TYPE = 188;

    /** Create a new BlackbookNodeMsg of size 16. */
    public BlackbookNodeMsg() {
        super(DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /** Create a new BlackbookNodeMsg of the given data_length. */
    public BlackbookNodeMsg(int data_length) {
        super(data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookNodeMsg with the given data_length
     * and base offset.
     */
    public BlackbookNodeMsg(int data_length, int base_offset) {
        super(data_length, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookNodeMsg using the given byte array
     * as backing store.
     */
    public BlackbookNodeMsg(byte[] data) {
        super(data);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookNodeMsg using the given byte array
     * as backing store, with the given base offset.
     */
    public BlackbookNodeMsg(byte[] data, int base_offset) {
        super(data, base_offset);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookNodeMsg using the given byte array
     * as backing store, with the given base offset and data length.
     */
    public BlackbookNodeMsg(byte[] data, int base_offset, int data_length) {
        super(data, base_offset, data_length);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookNodeMsg embedded in the given message
     * at the given base offset.
     */
    public BlackbookNodeMsg(net.tinyos.message.Message msg, int base_offset) {
        super(msg, base_offset, DEFAULT_MESSAGE_SIZE);
        amTypeSet(AM_TYPE);
    }

    /**
     * Create a new BlackbookNodeMsg embedded in the given message
     * at the given base offset and length.
     */
    public BlackbookNodeMsg(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 <BlackbookNodeMsg> \n";
      try {
        s += "  [focusedNode.flashAddress=0x"+Long.toHexString(get_focusedNode_flashAddress())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedNode.nextNode=0x"+Long.toHexString(get_focusedNode_nextNode())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedNode.dataLength=0x"+Long.toHexString(get_focusedNode_dataLength())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedNode.reserveLength=0x"+Long.toHexString(get_focusedNode_reserveLength())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedNode.dataCrc=0x"+Long.toHexString(get_focusedNode_dataCrc())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedNode.filenameCrc=0x"+Long.toHexString(get_focusedNode_filenameCrc())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedNode.state=0x"+Long.toHexString(get_focusedNode_state())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      try {
        s += "  [focusedNode.fileElement=0x"+Long.toHexString(get_focusedNode_fileElement())+"]\n";
      } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }
      return s;
    }

    // Message-type-specific access methods appear below.

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedNode.flashAddress
    //   Field type: long
    //   Offset (bits): 0
    //   Size (bits): 32
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedNode.flashAddress' is signed (false).
     */
    public static boolean isSigned_focusedNode_flashAddress() {
        return false;
    }

    /**
     * Return whether the field 'focusedNode.flashAddress' is an array (false).
     */
    public static boolean isArray_focusedNode_flashAddress() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedNode.flashAddress'
     */
    public static int offset_focusedNode_flashAddress() {
        return (0 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedNode.flashAddress'
     */
    public static int offsetBits_focusedNode_flashAddress() {
        return 0;
    }

    /**
     * Return the value (as a long) of the field 'focusedNode.flashAddress'
     */
    public long get_focusedNode_flashAddress() {
        return (long)getUIntElement(offsetBits_focusedNode_flashAddress(), 32);
    }

    /**
     * Set the value of the field 'focusedNode.flashAddress'
     */
    public void set_focusedNode_flashAddress(long value) {
        setUIntElement(offsetBits_focusedNode_flashAddress(), 32, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedNode.flashAddress'
     */
    public static int size_focusedNode_flashAddress() {
        return (32 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedNode.flashAddress'
     */
    public static int sizeBits_focusedNode_flashAddress() {
        return 32;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedNode.nextNode
    //   Field type: int
    //   Offset (bits): 32
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedNode.nextNode' is signed (false).
     */
    public static boolean isSigned_focusedNode_nextNode() {
        return false;
    }

    /**
     * Return whether the field 'focusedNode.nextNode' is an array (false).
     */
    public static boolean isArray_focusedNode_nextNode() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedNode.nextNode'
     */
    public static int offset_focusedNode_nextNode() {
        return (32 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedNode.nextNode'
     */
    public static int offsetBits_focusedNode_nextNode() {
        return 32;
    }

    /**
     * Return the value (as a int) of the field 'focusedNode.nextNode'
     */
    public int get_focusedNode_nextNode() {
        return (int)getUIntElement(offsetBits_focusedNode_nextNode(), 16);
    }

    /**
     * Set the value of the field 'focusedNode.nextNode'
     */
    public void set_focusedNode_nextNode(int value) {
        setUIntElement(offsetBits_focusedNode_nextNode(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedNode.nextNode'
     */
    public static int size_focusedNode_nextNode() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedNode.nextNode'
     */
    public static int sizeBits_focusedNode_nextNode() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedNode.dataLength
    //   Field type: int
    //   Offset (bits): 48
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedNode.dataLength' is signed (false).
     */
    public static boolean isSigned_focusedNode_dataLength() {
        return false;
    }

    /**
     * Return whether the field 'focusedNode.dataLength' is an array (false).
     */
    public static boolean isArray_focusedNode_dataLength() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedNode.dataLength'
     */
    public static int offset_focusedNode_dataLength() {
        return (48 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedNode.dataLength'
     */
    public static int offsetBits_focusedNode_dataLength() {
        return 48;
    }

    /**
     * Return the value (as a int) of the field 'focusedNode.dataLength'
     */
    public int get_focusedNode_dataLength() {
        return (int)getUIntElement(offsetBits_focusedNode_dataLength(), 16);
    }

    /**
     * Set the value of the field 'focusedNode.dataLength'
     */
    public void set_focusedNode_dataLength(int value) {
        setUIntElement(offsetBits_focusedNode_dataLength(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedNode.dataLength'
     */
    public static int size_focusedNode_dataLength() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedNode.dataLength'
     */
    public static int sizeBits_focusedNode_dataLength() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedNode.reserveLength
    //   Field type: int
    //   Offset (bits): 64
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedNode.reserveLength' is signed (false).
     */
    public static boolean isSigned_focusedNode_reserveLength() {
        return false;
    }

    /**
     * Return whether the field 'focusedNode.reserveLength' is an array (false).
     */
    public static boolean isArray_focusedNode_reserveLength() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedNode.reserveLength'
     */
    public static int offset_focusedNode_reserveLength() {
        return (64 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedNode.reserveLength'
     */
    public static int offsetBits_focusedNode_reserveLength() {
        return 64;
    }

    /**
     * Return the value (as a int) of the field 'focusedNode.reserveLength'
     */
    public int get_focusedNode_reserveLength() {
        return (int)getUIntElement(offsetBits_focusedNode_reserveLength(), 16);
    }

    /**
     * Set the value of the field 'focusedNode.reserveLength'
     */
    public void set_focusedNode_reserveLength(int value) {
        setUIntElement(offsetBits_focusedNode_reserveLength(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedNode.reserveLength'
     */
    public static int size_focusedNode_reserveLength() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedNode.reserveLength'
     */
    public static int sizeBits_focusedNode_reserveLength() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedNode.dataCrc
    //   Field type: int
    //   Offset (bits): 80
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedNode.dataCrc' is signed (false).
     */
    public static boolean isSigned_focusedNode_dataCrc() {
        return false;
    }

    /**
     * Return whether the field 'focusedNode.dataCrc' is an array (false).
     */
    public static boolean isArray_focusedNode_dataCrc() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedNode.dataCrc'
     */
    public static int offset_focusedNode_dataCrc() {
        return (80 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedNode.dataCrc'
     */
    public static int offsetBits_focusedNode_dataCrc() {
        return 80;
    }

    /**
     * Return the value (as a int) of the field 'focusedNode.dataCrc'
     */
    public int get_focusedNode_dataCrc() {
        return (int)getUIntElement(offsetBits_focusedNode_dataCrc(), 16);
    }

    /**
     * Set the value of the field 'focusedNode.dataCrc'
     */
    public void set_focusedNode_dataCrc(int value) {
        setUIntElement(offsetBits_focusedNode_dataCrc(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedNode.dataCrc'
     */
    public static int size_focusedNode_dataCrc() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedNode.dataCrc'
     */
    public static int sizeBits_focusedNode_dataCrc() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedNode.filenameCrc
    //   Field type: int
    //   Offset (bits): 96
    //   Size (bits): 16
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedNode.filenameCrc' is signed (false).
     */
    public static boolean isSigned_focusedNode_filenameCrc() {
        return false;
    }

    /**
     * Return whether the field 'focusedNode.filenameCrc' is an array (false).
     */
    public static boolean isArray_focusedNode_filenameCrc() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedNode.filenameCrc'
     */
    public static int offset_focusedNode_filenameCrc() {
        return (96 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedNode.filenameCrc'
     */
    public static int offsetBits_focusedNode_filenameCrc() {
        return 96;
    }

    /**
     * Return the value (as a int) of the field 'focusedNode.filenameCrc'
     */
    public int get_focusedNode_filenameCrc() {
        return (int)getUIntElement(offsetBits_focusedNode_filenameCrc(), 16);
    }

    /**
     * Set the value of the field 'focusedNode.filenameCrc'
     */
    public void set_focusedNode_filenameCrc(int value) {
        setUIntElement(offsetBits_focusedNode_filenameCrc(), 16, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedNode.filenameCrc'
     */
    public static int size_focusedNode_filenameCrc() {
        return (16 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedNode.filenameCrc'
     */
    public static int sizeBits_focusedNode_filenameCrc() {
        return 16;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedNode.state
    //   Field type: short
    //   Offset (bits): 112
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedNode.state' is signed (false).
     */
    public static boolean isSigned_focusedNode_state() {
        return false;
    }

    /**
     * Return whether the field 'focusedNode.state' is an array (false).
     */
    public static boolean isArray_focusedNode_state() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedNode.state'
     */
    public static int offset_focusedNode_state() {
        return (112 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedNode.state'
     */
    public static int offsetBits_focusedNode_state() {
        return 112;
    }

    /**
     * Return the value (as a short) of the field 'focusedNode.state'
     */
    public short get_focusedNode_state() {
        return (short)getUIntElement(offsetBits_focusedNode_state(), 8);
    }

    /**
     * Set the value of the field 'focusedNode.state'
     */
    public void set_focusedNode_state(short value) {
        setUIntElement(offsetBits_focusedNode_state(), 8, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedNode.state'
     */
    public static int size_focusedNode_state() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedNode.state'
     */
    public static int sizeBits_focusedNode_state() {
        return 8;
    }

    /////////////////////////////////////////////////////////
    // Accessor methods for field: focusedNode.fileElement
    //   Field type: short
    //   Offset (bits): 120
    //   Size (bits): 8
    /////////////////////////////////////////////////////////

    /**
     * Return whether the field 'focusedNode.fileElement' is signed (false).
     */
    public static boolean isSigned_focusedNode_fileElement() {
        return false;
    }

    /**
     * Return whether the field 'focusedNode.fileElement' is an array (false).
     */
    public static boolean isArray_focusedNode_fileElement() {
        return false;
    }

    /**
     * Return the offset (in bytes) of the field 'focusedNode.fileElement'
     */
    public static int offset_focusedNode_fileElement() {
        return (120 / 8);
    }

    /**
     * Return the offset (in bits) of the field 'focusedNode.fileElement'
     */
    public static int offsetBits_focusedNode_fileElement() {
        return 120;
    }

    /**
     * Return the value (as a short) of the field 'focusedNode.fileElement'
     */
    public short get_focusedNode_fileElement() {
        return (short)getUIntElement(offsetBits_focusedNode_fileElement(), 8);
    }

    /**
     * Set the value of the field 'focusedNode.fileElement'
     */
    public void set_focusedNode_fileElement(short value) {
        setUIntElement(offsetBits_focusedNode_fileElement(), 8, value);
    }

    /**
     * Return the size, in bytes, of the field 'focusedNode.fileElement'
     */
    public static int size_focusedNode_fileElement() {
        return (8 / 8);
    }

    /**
     * Return the size, in bits, of the field 'focusedNode.fileElement'
     */
    public static int sizeBits_focusedNode_fileElement() {
        return 8;
    }

}

--- NEW FILE: BlackbookConnectMsg.class ---
Êþº¾











get_length





get_result




set_length

offset_cmd


set_result






array_dims




SourceFile

*¸





Z

YOL›
²


More information about the Tinyos-contrib-commits mailing list