Lesson 7: Accessing the Base station's Tuple Space from the Laptop

Last Updated on November 3, 2005 4:23 PM .

The laptop runs a Java application called AgentInjector that provides a TupleSpace object. This object serves two purposes: 1) it serves as a local tuple space on the laptop, and 2) it allows an application to perform operations on tuple spaces belonging to nodes within the sensor network.

The tuple space object is obtained by calling "injector.getTS()" from within AgentInjector. The tuple space provides the following operations that operate on the local tuple space:

  1. out(Tuple t)
  2. inp(Tuple t)
  3. rdp(Tuple t)
  4. in(Tuple template)
  5. rd(Tuple template)

These local operations have the same semantics as those within a mote's tuple space, as described here.

The tuple space also provides the following remote tuple space operations:

  1. rout(Tuple t, AgillaLocation dest)
  2. rinp(Tuple template, AgillaLocation dest)
  3. rrdp(Tuple template, AgillaLocation dest)

These remote tuple space operations have the same semantics as those within a mote's tuple space, as described here.

 


This work is supported by the ONR MURI Project CONTESSA and the NSF under grant number CCR-9970939.