00001 public class SimpleClientAgent extends StationaryAgent {
00002 public void run() {
00003 LimeTupleSpace lts = new MotesLimeTupleSpace();
00004 lts.setShared(true);
00005 ITuple tup = new Tuple()
00006 .addActual(new SensorType(SensorType.LIGHT))
00007 .addFormal(Integer.class)
00008 .addFormal(Integer.class)
00009 .addFormal(Date.class);
00010 MoteLimeTemplate tmpl = new MoteLimeTemplate(tup);
00011 MoteLimeTuple t = (MoteLimeTuple)lts.rd(tmpl);
00012 System.out.println("Tuple returned: " + t.toString());
00013 }
00014 }