net.ubisoa.sensing
Class SensingMessage

java.lang.Object
  extended by net.tinyos.message.Message
      extended by net.ubisoa.sensing.SensingMessage

public class SensingMessage
extends net.tinyos.message.Message

This class is automatically generated by mig. DO NOT EDIT THIS FILE. This class implements a Java interface to the 'UBSenseMsg' message type.


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
SensingMessage()
          Create a new SensingMessage of size 20.
SensingMessage(byte[] data)
          Create a new SensingMessage using the given byte array as backing store.
SensingMessage(byte[] data, int base_offset)
          Create a new SensingMessage using the given byte array as backing store, with the given base offset.
SensingMessage(byte[] data, int base_offset, int data_length)
          Create a new SensingMessage using the given byte array as backing store, with the given base offset and data length.
SensingMessage(int data_length)
          Create a new SensingMessage of the given data_length.
SensingMessage(int data_length, int base_offset)
          Create a new SensingMessage with the given data_length and base offset.
SensingMessage(net.tinyos.message.Message msg, int base_offset)
          Create a new SensingMessage embedded in the given message at the given base offset.
SensingMessage(net.tinyos.message.Message msg, int base_offset, int data_length)
          Create a new SensingMessage embedded in the given message at the given base offset and length.
 
Method Summary
 int get_counter()
          Return the value (as a int) of the field 'counter'
 int get_humidity()
          Return the value (as a int) of the field 'humidity'
 int get_light_visible()
          Return the value (as a int) of the field 'light_visible'
 int get_light()
          Return the value (as a int) of the field 'light'
 int get_microphone()
          Return the value (as a int) of the field 'microphone'
 int get_nid()
          Return the value (as a int) of the field 'nid'
 int get_platform()
          Return the value (as a int) of the field 'platform'
 int get_temperature_internal()
          Return the value (as a int) of the field 'temperature_internal'
 int get_temperature()
          Return the value (as a int) of the field 'temperature'
 int get_voltage()
          Return the value (as a int) of the field 'voltage'
static boolean isArray_counter()
          Return whether the field 'counter' is an array (false).
static boolean isArray_humidity()
          Return whether the field 'humidity' is an array (false).
static boolean isArray_light_visible()
          Return whether the field 'light_visible' is an array (false).
static boolean isArray_light()
          Return whether the field 'light' is an array (false).
static boolean isArray_microphone()
          Return whether the field 'microphone' is an array (false).
static boolean isArray_nid()
          Return whether the field 'nid' is an array (false).
static boolean isArray_platform()
          Return whether the field 'platform' is an array (false).
static boolean isArray_temperature_internal()
          Return whether the field 'temperature_internal' is an array (false).
static boolean isArray_temperature()
          Return whether the field 'temperature' is an array (false).
static boolean isArray_voltage()
          Return whether the field 'voltage' is an array (false).
static boolean isSigned_counter()
          Return whether the field 'counter' is signed (false).
static boolean isSigned_humidity()
          Return whether the field 'humidity' is signed (false).
static boolean isSigned_light_visible()
          Return whether the field 'light_visible' is signed (false).
static boolean isSigned_light()
          Return whether the field 'light' is signed (false).
static boolean isSigned_microphone()
          Return whether the field 'microphone' is signed (false).
static boolean isSigned_nid()
          Return whether the field 'nid' is signed (false).
static boolean isSigned_platform()
          Return whether the field 'platform' is signed (false).
static boolean isSigned_temperature_internal()
          Return whether the field 'temperature_internal' is signed (false).
static boolean isSigned_temperature()
          Return whether the field 'temperature' is signed (false).
static boolean isSigned_voltage()
          Return whether the field 'voltage' is signed (false).
static int offset_counter()
          Return the offset (in bytes) of the field 'counter'
static int offset_humidity()
          Return the offset (in bytes) of the field 'humidity'
static int offset_light_visible()
          Return the offset (in bytes) of the field 'light_visible'
static int offset_light()
          Return the offset (in bytes) of the field 'light'
static int offset_microphone()
          Return the offset (in bytes) of the field 'microphone'
static int offset_nid()
          Return the offset (in bytes) of the field 'nid'
static int offset_platform()
          Return the offset (in bytes) of the field 'platform'
static int offset_temperature_internal()
          Return the offset (in bytes) of the field 'temperature_internal'
static int offset_temperature()
          Return the offset (in bytes) of the field 'temperature'
static int offset_voltage()
          Return the offset (in bytes) of the field 'voltage'
static int offsetBits_counter()
          Return the offset (in bits) of the field 'counter'
static int offsetBits_humidity()
          Return the offset (in bits) of the field 'humidity'
static int offsetBits_light_visible()
          Return the offset (in bits) of the field 'light_visible'
static int offsetBits_light()
          Return the offset (in bits) of the field 'light'
static int offsetBits_microphone()
          Return the offset (in bits) of the field 'microphone'
static int offsetBits_nid()
          Return the offset (in bits) of the field 'nid'
static int offsetBits_platform()
          Return the offset (in bits) of the field 'platform'
static int offsetBits_temperature_internal()
          Return the offset (in bits) of the field 'temperature_internal'
static int offsetBits_temperature()
          Return the offset (in bits) of the field 'temperature'
static int offsetBits_voltage()
          Return the offset (in bits) of the field 'voltage'
 void set_counter(int value)
          Set the value of the field 'counter'
 void set_humidity(int value)
          Set the value of the field 'humidity'
 void set_light_visible(int value)
          Set the value of the field 'light_visible'
 void set_light(int value)
          Set the value of the field 'light'
 void set_microphone(int value)
          Set the value of the field 'microphone'
 void set_nid(int value)
          Set the value of the field 'nid'
 void set_platform(int value)
          Set the value of the field 'platform'
 void set_temperature_internal(int value)
          Set the value of the field 'temperature_internal'
 void set_temperature(int value)
          Set the value of the field 'temperature'
 void set_voltage(int value)
          Set the value of the field 'voltage'
static int size_counter()
          Return the size, in bytes, of the field 'counter'
static int size_humidity()
          Return the size, in bytes, of the field 'humidity'
static int size_light_visible()
          Return the size, in bytes, of the field 'light_visible'
static int size_light()
          Return the size, in bytes, of the field 'light'
static int size_microphone()
          Return the size, in bytes, of the field 'microphone'
static int size_nid()
          Return the size, in bytes, of the field 'nid'
static int size_platform()
          Return the size, in bytes, of the field 'platform'
static int size_temperature_internal()
          Return the size, in bytes, of the field 'temperature_internal'
static int size_temperature()
          Return the size, in bytes, of the field 'temperature'
static int size_voltage()
          Return the size, in bytes, of the field 'voltage'
static int sizeBits_counter()
          Return the size, in bits, of the field 'counter'
static int sizeBits_humidity()
          Return the size, in bits, of the field 'humidity'
static int sizeBits_light_visible()
          Return the size, in bits, of the field 'light_visible'
static int sizeBits_light()
          Return the size, in bits, of the field 'light'
static int sizeBits_microphone()
          Return the size, in bits, of the field 'microphone'
static int sizeBits_nid()
          Return the size, in bits, of the field 'nid'
static int sizeBits_platform()
          Return the size, in bits, of the field 'platform'
static int sizeBits_temperature_internal()
          Return the size, in bits, of the field 'temperature_internal'
static int sizeBits_temperature()
          Return the size, in bits, of the field 'temperature'
static int sizeBits_voltage()
          Return the size, in bits, of the field 'voltage'
 java.lang.String toString()
          /* Return a String representation of this message.
 
Methods inherited from class java.lang.Object
equals, 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

SensingMessage

public SensingMessage()
Create a new SensingMessage of size 20.


SensingMessage

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


SensingMessage

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


SensingMessage

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


SensingMessage

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


SensingMessage

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


SensingMessage

public SensingMessage(net.tinyos.message.Message msg,
                      int base_offset)
Create a new SensingMessage embedded in the given message at the given base offset.


SensingMessage

public SensingMessage(net.tinyos.message.Message msg,
                      int base_offset,
                      int data_length)
Create a new SensingMessage embedded in the given message at the given base offset and 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_nid

public static boolean isSigned_nid()
Return whether the field 'nid' is signed (false).


isArray_nid

public static boolean isArray_nid()
Return whether the field 'nid' is an array (false).


offset_nid

public static int offset_nid()
Return the offset (in bytes) of the field 'nid'


offsetBits_nid

public static int offsetBits_nid()
Return the offset (in bits) of the field 'nid'


get_nid

public int get_nid()
Return the value (as a int) of the field 'nid'


set_nid

public void set_nid(int value)
Set the value of the field 'nid'


size_nid

public static int size_nid()
Return the size, in bytes, of the field 'nid'


sizeBits_nid

public static int sizeBits_nid()
Return the size, in bits, of the field 'nid'


isSigned_platform

public static boolean isSigned_platform()
Return whether the field 'platform' is signed (false).


isArray_platform

public static boolean isArray_platform()
Return whether the field 'platform' is an array (false).


offset_platform

public static int offset_platform()
Return the offset (in bytes) of the field 'platform'


offsetBits_platform

public static int offsetBits_platform()
Return the offset (in bits) of the field 'platform'


get_platform

public int get_platform()
Return the value (as a int) of the field 'platform'


set_platform

public void set_platform(int value)
Set the value of the field 'platform'


size_platform

public static int size_platform()
Return the size, in bytes, of the field 'platform'


sizeBits_platform

public static int sizeBits_platform()
Return the size, in bits, of the field 'platform'


isSigned_voltage

public static boolean isSigned_voltage()
Return whether the field 'voltage' is signed (false).


isArray_voltage

public static boolean isArray_voltage()
Return whether the field 'voltage' is an array (false).


offset_voltage

public static int offset_voltage()
Return the offset (in bytes) of the field 'voltage'


offsetBits_voltage

public static int offsetBits_voltage()
Return the offset (in bits) of the field 'voltage'


get_voltage

public int get_voltage()
Return the value (as a int) of the field 'voltage'


set_voltage

public void set_voltage(int value)
Set the value of the field 'voltage'


size_voltage

public static int size_voltage()
Return the size, in bytes, of the field 'voltage'


sizeBits_voltage

public static int sizeBits_voltage()
Return the size, in bits, of the field 'voltage'


isSigned_light

public static boolean isSigned_light()
Return whether the field 'light' is signed (false).


isArray_light

public static boolean isArray_light()
Return whether the field 'light' is an array (false).


offset_light

public static int offset_light()
Return the offset (in bytes) of the field 'light'


offsetBits_light

public static int offsetBits_light()
Return the offset (in bits) of the field 'light'


get_light

public int get_light()
Return the value (as a int) of the field 'light'


set_light

public void set_light(int value)
Set the value of the field 'light'


size_light

public static int size_light()
Return the size, in bytes, of the field 'light'


sizeBits_light

public static int sizeBits_light()
Return the size, in bits, of the field 'light'


isSigned_light_visible

public static boolean isSigned_light_visible()
Return whether the field 'light_visible' is signed (false).


isArray_light_visible

public static boolean isArray_light_visible()
Return whether the field 'light_visible' is an array (false).


offset_light_visible

public static int offset_light_visible()
Return the offset (in bytes) of the field 'light_visible'


offsetBits_light_visible

public static int offsetBits_light_visible()
Return the offset (in bits) of the field 'light_visible'


get_light_visible

public int get_light_visible()
Return the value (as a int) of the field 'light_visible'


set_light_visible

public void set_light_visible(int value)
Set the value of the field 'light_visible'


size_light_visible

public static int size_light_visible()
Return the size, in bytes, of the field 'light_visible'


sizeBits_light_visible

public static int sizeBits_light_visible()
Return the size, in bits, of the field 'light_visible'


isSigned_temperature

public static boolean isSigned_temperature()
Return whether the field 'temperature' is signed (false).


isArray_temperature

public static boolean isArray_temperature()
Return whether the field 'temperature' is an array (false).


offset_temperature

public static int offset_temperature()
Return the offset (in bytes) of the field 'temperature'


offsetBits_temperature

public static int offsetBits_temperature()
Return the offset (in bits) of the field 'temperature'


get_temperature

public int get_temperature()
Return the value (as a int) of the field 'temperature'


set_temperature

public void set_temperature(int value)
Set the value of the field 'temperature'


size_temperature

public static int size_temperature()
Return the size, in bytes, of the field 'temperature'


sizeBits_temperature

public static int sizeBits_temperature()
Return the size, in bits, of the field 'temperature'


isSigned_temperature_internal

public static boolean isSigned_temperature_internal()
Return whether the field 'temperature_internal' is signed (false).


isArray_temperature_internal

public static boolean isArray_temperature_internal()
Return whether the field 'temperature_internal' is an array (false).


offset_temperature_internal

public static int offset_temperature_internal()
Return the offset (in bytes) of the field 'temperature_internal'


offsetBits_temperature_internal

public static int offsetBits_temperature_internal()
Return the offset (in bits) of the field 'temperature_internal'


get_temperature_internal

public int get_temperature_internal()
Return the value (as a int) of the field 'temperature_internal'


set_temperature_internal

public void set_temperature_internal(int value)
Set the value of the field 'temperature_internal'


size_temperature_internal

public static int size_temperature_internal()
Return the size, in bytes, of the field 'temperature_internal'


sizeBits_temperature_internal

public static int sizeBits_temperature_internal()
Return the size, in bits, of the field 'temperature_internal'


isSigned_humidity

public static boolean isSigned_humidity()
Return whether the field 'humidity' is signed (false).


isArray_humidity

public static boolean isArray_humidity()
Return whether the field 'humidity' is an array (false).


offset_humidity

public static int offset_humidity()
Return the offset (in bytes) of the field 'humidity'


offsetBits_humidity

public static int offsetBits_humidity()
Return the offset (in bits) of the field 'humidity'


get_humidity

public int get_humidity()
Return the value (as a int) of the field 'humidity'


set_humidity

public void set_humidity(int value)
Set the value of the field 'humidity'


size_humidity

public static int size_humidity()
Return the size, in bytes, of the field 'humidity'


sizeBits_humidity

public static int sizeBits_humidity()
Return the size, in bits, of the field 'humidity'


isSigned_microphone

public static boolean isSigned_microphone()
Return whether the field 'microphone' is signed (false).


isArray_microphone

public static boolean isArray_microphone()
Return whether the field 'microphone' is an array (false).


offset_microphone

public static int offset_microphone()
Return the offset (in bytes) of the field 'microphone'


offsetBits_microphone

public static int offsetBits_microphone()
Return the offset (in bits) of the field 'microphone'


get_microphone

public int get_microphone()
Return the value (as a int) of the field 'microphone'


set_microphone

public void set_microphone(int value)
Set the value of the field 'microphone'


size_microphone

public static int size_microphone()
Return the size, in bytes, of the field 'microphone'


sizeBits_microphone

public static int sizeBits_microphone()
Return the size, in bits, of the field 'microphone'


isSigned_counter

public static boolean isSigned_counter()
Return whether the field 'counter' is signed (false).


isArray_counter

public static boolean isArray_counter()
Return whether the field 'counter' is an array (false).


offset_counter

public static int offset_counter()
Return the offset (in bytes) of the field 'counter'


offsetBits_counter

public static int offsetBits_counter()
Return the offset (in bits) of the field 'counter'


get_counter

public int get_counter()
Return the value (as a int) of the field 'counter'


set_counter

public void set_counter(int value)
Set the value of the field 'counter'


size_counter

public static int size_counter()
Return the size, in bytes, of the field 'counter'


sizeBits_counter

public static int sizeBits_counter()
Return the size, in bits, of the field 'counter'