lime.motes
Class TimeStampDecorator

java.lang.Object
  extended bylime.motes.TimeStampDecorator
All Implemented Interfaces:
IMoteLimeTupleDecorator

public class TimeStampDecorator
extends java.lang.Object
implements IMoteLimeTupleDecorator

Simple implementation of the IMoteLimeTupleDecorator interface, that adds the time stamp of the base station that received the information from the mote.

Version:
1.1
Author:
Carlo Curino, Matteo Giani, Marco Giorgetta, Alessandro Giusti

Constructor Summary
TimeStampDecorator()
           
 
Method Summary
 lights.adapters.Tuple decorateTuple(lights.adapters.Tuple t)
          This function decorates the tuple, returning a new pointer to it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeStampDecorator

public TimeStampDecorator()
Method Detail

decorateTuple

public lights.adapters.Tuple decorateTuple(lights.adapters.Tuple t)
Description copied from interface: IMoteLimeTupleDecorator
This function decorates the tuple, returning a new pointer to it.

Specified by:
decorateTuple in interface IMoteLimeTupleDecorator
Parameters:
t - the tuple to be adorned.
Returns:
a reference to the modified tuple.