moteaccess
Class ReactionRequestTOSMessage

java.lang.Object
  extended bynet.tinyos.message.Message
      extended bymoteaccess.ReactionRequestTOSMessage

public class ReactionRequestTOSMessage
extends net.tinyos.message.Message

See Also:
Serialized Form

Field Summary
static int AM_TYPE
          The Active Message type associated with this message.
static int DEFAULT_MESSAGE_SIZE
          The default size of this message type in bytes.
 
Constructor Summary
ReactionRequestTOSMessage()
          Create a new ReactionRequestTOSMessage of size 13.
ReactionRequestTOSMessage(byte[] data)
          Create a new ReactionRequestTOSMessage using the given byte array as backing store.
ReactionRequestTOSMessage(byte[] data, int base_offset)
          Create a new ReactionRequestTOSMessage using the given byte array as backing store, with the given base offset.
ReactionRequestTOSMessage(byte[] data, int base_offset, int data_length)
          Create a new ReactionRequestTOSMessage using the given byte array as backing store, with the given base offset and data length.
ReactionRequestTOSMessage(int data_length)
          Create a new ReactionRequestTOSMessage of the given data_length.
ReactionRequestTOSMessage(int data_length, int base_offset)
          Create a new ReactionRequestTOSMessage with the given data_length and base offset.
 
Method Summary
 int get_hbn()
          Return the value (as a int) of the field 'hbn'
 int get_max_val()
          Return the value (as a int) of the field 'max_val'
 int get_min_val()
          Return the value (as a int) of the field 'min_val'
 short get_sensor_id()
          Return the value (as a short) of the field 'sensor_id'
 long get_sn()
          Return the value (as a long) of the field 'sn'
 int get_src()
          Return the value (as a int) of the field 'src'
static boolean isArray_hbn()
          Return whether the field 'hbn' is an array (false).
static boolean isArray_max_val()
          Return whether the field 'max_val' is an array (false).
static boolean isArray_min_val()
          Return whether the field 'min_val' is an array (false).
static boolean isArray_sensor_id()
          Return whether the field 'sensor_id' is an array (false).
static boolean isArray_sn()
          Return whether the field 'sn' is an array (false).
static boolean isArray_src()
          Return whether the field 'src' is an array (false).
static boolean isSigned_hbn()
          Return whether the field 'hbn' is signed (false).
static boolean isSigned_max_val()
          Return whether the field 'max_val' is signed (false).
static boolean isSigned_min_val()
          Return whether the field 'min_val' is signed (false).
static boolean isSigned_sensor_id()
          Return whether the field 'sensor_id' is signed (false).
static boolean isSigned_sn()
          Return whether the field 'sn' is signed (false).
static boolean isSigned_src()
          Return whether the field 'src' is signed (false).
static int offset_hbn()
          Return the offset (in bytes) of the field 'hbn'
static int offset_max_val()
          Return the offset (in bytes) of the field 'max_val'
static int offset_min_val()
          Return the offset (in bytes) of the field 'min_val'
static int offset_sensor_id()
          Return the offset (in bytes) of the field 'sensor_id'
static int offset_sn()
          Return the offset (in bytes) of the field 'sn'
static int offset_src()
          Return the offset (in bytes) of the field 'src'
static int offsetBits_hbn()
          Return the offset (in bits) of the field 'hbn'
static int offsetBits_max_val()
          Return the offset (in bits) of the field 'max_val'
static int offsetBits_min_val()
          Return the offset (in bits) of the field 'min_val'
static int offsetBits_sensor_id()
          Return the offset (in bits) of the field 'sensor_id'
static int offsetBits_sn()
          Return the offset (in bits) of the field 'sn'
static int offsetBits_src()
          Return the offset (in bits) of the field 'src'
 void set_hbn(int value)
          Set the value of the field 'hbn'
 void set_max_val(int value)
          Set the value of the field 'max_val'
 void set_min_val(int value)
          Set the value of the field 'min_val'
 void set_sensor_id(short value)
          Set the value of the field 'sensor_id'
 void set_sn(long value)
          Set the value of the field 'sn'
 void set_src(int value)
          Set the value of the field 'src'
static int size_hbn()
          Return the size, in bytes, of the field 'hbn'
static int size_max_val()
          Return the size, in bytes, of the field 'max_val'
static int size_min_val()
          Return the size, in bytes, of the field 'min_val'
static int size_sensor_id()
          Return the size, in bytes, of the field 'sensor_id'
static int size_sn()
          Return the size, in bytes, of the field 'sn'
static int size_src()
          Return the size, in bytes, of the field 'src'
static int sizeBits_hbn()
          Return the size, in bits, of the field 'hbn'
static int sizeBits_max_val()
          Return the size, in bits, of the field 'max_val'
static int sizeBits_min_val()
          Return the size, in bits, of the field 'min_val'
static int sizeBits_sensor_id()
          Return the size, in bits, of the field 'sensor_id'
static int sizeBits_sn()
          Return the size, in bits, of the field 'sn'
static int sizeBits_src()
          Return the size, in bits, of the field 'src'
 java.lang.String toString()
          /* Return a String representation of this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MESSAGE_SIZE

public static final int DEFAULT_MESSAGE_SIZE
The default size of this message type in bytes.

See Also:
Constant Field Values

AM_TYPE

public static final int AM_TYPE
The Active Message type associated with this message.

See Also:
Constant Field Values
Constructor Detail

ReactionRequestTOSMessage

public ReactionRequestTOSMessage()
Create a new ReactionRequestTOSMessage of size 13.


ReactionRequestTOSMessage

public ReactionRequestTOSMessage(int data_length)
Create a new ReactionRequestTOSMessage of the given data_length.


ReactionRequestTOSMessage

public ReactionRequestTOSMessage(int data_length,
                                 int base_offset)
Create a new ReactionRequestTOSMessage with the given data_length and base offset.


ReactionRequestTOSMessage

public ReactionRequestTOSMessage(byte[] data)
Create a new ReactionRequestTOSMessage using the given byte array as backing store.


ReactionRequestTOSMessage

public ReactionRequestTOSMessage(byte[] data,
                                 int base_offset)
Create a new ReactionRequestTOSMessage using the given byte array as backing store, with the given base offset.


ReactionRequestTOSMessage

public ReactionRequestTOSMessage(byte[] data,
                                 int base_offset,
                                 int data_length)
Create a new ReactionRequestTOSMessage using the given byte array as backing store, with the given base offset and data length.

Method Detail

toString

public java.lang.String toString()
/* Return a String representation of this message. Includes the message type name and the non-indexed field values.


isSigned_src

public static boolean isSigned_src()
Return whether the field 'src' is signed (false).


isArray_src

public static boolean isArray_src()
Return whether the field 'src' is an array (false).


offset_src

public static int offset_src()
Return the offset (in bytes) of the field 'src'


offsetBits_src

public static int offsetBits_src()
Return the offset (in bits) of the field 'src'


get_src

public int get_src()
Return the value (as a int) of the field 'src'


set_src

public void set_src(int value)
Set the value of the field 'src'


size_src

public static int size_src()
Return the size, in bytes, of the field 'src'


sizeBits_src

public static int sizeBits_src()
Return the size, in bits, of the field 'src'


isSigned_sn

public static boolean isSigned_sn()
Return whether the field 'sn' is signed (false).


isArray_sn

public static boolean isArray_sn()
Return whether the field 'sn' is an array (false).


offset_sn

public static int offset_sn()
Return the offset (in bytes) of the field 'sn'


offsetBits_sn

public static int offsetBits_sn()
Return the offset (in bits) of the field 'sn'


get_sn

public long get_sn()
Return the value (as a long) of the field 'sn'


set_sn

public void set_sn(long value)
Set the value of the field 'sn'


size_sn

public static int size_sn()
Return the size, in bytes, of the field 'sn'


sizeBits_sn

public static int sizeBits_sn()
Return the size, in bits, of the field 'sn'


isSigned_sensor_id

public static boolean isSigned_sensor_id()
Return whether the field 'sensor_id' is signed (false).


isArray_sensor_id

public static boolean isArray_sensor_id()
Return whether the field 'sensor_id' is an array (false).


offset_sensor_id

public static int offset_sensor_id()
Return the offset (in bytes) of the field 'sensor_id'


offsetBits_sensor_id

public static int offsetBits_sensor_id()
Return the offset (in bits) of the field 'sensor_id'


get_sensor_id

public short get_sensor_id()
Return the value (as a short) of the field 'sensor_id'


set_sensor_id

public void set_sensor_id(short value)
Set the value of the field 'sensor_id'


size_sensor_id

public static int size_sensor_id()
Return the size, in bytes, of the field 'sensor_id'


sizeBits_sensor_id

public static int sizeBits_sensor_id()
Return the size, in bits, of the field 'sensor_id'


isSigned_min_val

public static boolean isSigned_min_val()
Return whether the field 'min_val' is signed (false).


isArray_min_val

public static boolean isArray_min_val()
Return whether the field 'min_val' is an array (false).


offset_min_val

public static int offset_min_val()
Return the offset (in bytes) of the field 'min_val'


offsetBits_min_val

public static int offsetBits_min_val()
Return the offset (in bits) of the field 'min_val'


get_min_val

public int get_min_val()
Return the value (as a int) of the field 'min_val'


set_min_val

public void set_min_val(int value)
Set the value of the field 'min_val'


size_min_val

public static int size_min_val()
Return the size, in bytes, of the field 'min_val'


sizeBits_min_val

public static int sizeBits_min_val()
Return the size, in bits, of the field 'min_val'


isSigned_max_val

public static boolean isSigned_max_val()
Return whether the field 'max_val' is signed (false).


isArray_max_val

public static boolean isArray_max_val()
Return whether the field 'max_val' is an array (false).


offset_max_val

public static int offset_max_val()
Return the offset (in bytes) of the field 'max_val'


offsetBits_max_val

public static int offsetBits_max_val()
Return the offset (in bits) of the field 'max_val'


get_max_val

public int get_max_val()
Return the value (as a int) of the field 'max_val'


set_max_val

public void set_max_val(int value)
Set the value of the field 'max_val'


size_max_val

public static int size_max_val()
Return the size, in bytes, of the field 'max_val'


sizeBits_max_val

public static int sizeBits_max_val()
Return the size, in bits, of the field 'max_val'


isSigned_hbn

public static boolean isSigned_hbn()
Return whether the field 'hbn' is signed (false).


isArray_hbn

public static boolean isArray_hbn()
Return whether the field 'hbn' is an array (false).


offset_hbn

public static int offset_hbn()
Return the offset (in bytes) of the field 'hbn'


offsetBits_hbn

public static int offsetBits_hbn()
Return the offset (in bits) of the field 'hbn'


get_hbn

public int get_hbn()
Return the value (as a int) of the field 'hbn'


set_hbn

public void set_hbn(int value)
Set the value of the field 'hbn'


size_hbn

public static int size_hbn()
Return the size, in bytes, of the field 'hbn'


sizeBits_hbn

public static int sizeBits_hbn()
Return the size, in bits, of the field 'hbn'