lime.motes
Class MoteLimeTuple

java.lang.Object
  extended bylime.LimeTuple
      extended bylime.motes.MoteLimeTuple

public class MoteLimeTuple
extends LimeTuple

The MoteLimeTuple class extends the mote id adding the information of the MoteID.

Version:
1.0
Author:
Carlo Curino, Matteo Giani, Marco Giorgetta, Alessandro Giusti
See Also:
LimeTuple.

Field Summary
(package private)  MoteID moteid
          The ID of the mote location.
 
Fields inherited from class lime.LimeTuple
 
Constructor Summary
MoteLimeTuple(MoteID mid, AgentLocation cur, AgentLocation dest, LimeTupleID id, lights.interfaces.ITuple t)
          Public constructor that instantiates a MoteLimeTuple.
 
Method Summary
 MoteID getMoteid()
          Method used to get the Mote Identifier.
 
Methods inherited from class lime.LimeTuple
getCurrent, getDestination, getID, getTuple, setTuple, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

moteid

MoteID moteid
The ID of the mote location.

Constructor Detail

MoteLimeTuple

public MoteLimeTuple(MoteID mid,
                     AgentLocation cur,
                     AgentLocation dest,
                     LimeTupleID id,
                     lights.interfaces.ITuple t)
Public constructor that instantiates a MoteLimeTuple.

Parameters:
cur - curent location of the tuple.
dest - the destination.
id - the ID of the tuple.
t - the ITuple that is wrapped with the other information.
Method Detail

getMoteid

public MoteID getMoteid()
Method used to get the Mote Identifier.

Returns:
the MoteID of the mote that has read the data present in the rest of the tuple.