lime.motes
Class MoteRegisteredReaction

java.lang.Object
  extended bylime.Reaction
      extended bylime.RegisteredReaction
          extended bylime.motes.MoteRegisteredReaction
All Implemented Interfaces:
java.io.Serializable

public class MoteRegisteredReaction
extends RegisteredReaction

This class extends Lime's RegisteredReaction basically adding the MoteID information. It has the same meaning that lime.RegisteredReaction has in Lime.

Version:
1.0
Author:
Carlo Curino, Matteo Giani, Marco Giorgetta, Alessandro Giusti
See Also:
lime.RegisteredReaction., Serialized Form

Field Summary
private  RequestID id
          ID of the request, used for identifying it in the motes subsystem.
private  MoteID moteID
          The id of the MoteID we are setting the reaction on.
 
Fields inherited from class lime.RegisteredReaction
 
Fields inherited from class lime.Reaction
ONCE, ONCEPERTUPLE
 
Constructor Summary
MoteRegisteredReaction(RequestID id, MoteID moteID, RegisteredReaction r)
          Public constructor that allows to build a MoteRegisteredReaction starting from a RequestID, which is the one that identifies the reaction in the whole motes subsystem, the MoteID (that may be unspecified) that idicates the reaction loacation at the motes level, and the RegisteredReaction as in the construction of a lime RegisteredReaction.
 
Method Summary
 RequestID getId()
          Getter for the request id.
 MoteID getMoteID()
          Getter for the MoteID attribute.
 
Methods inherited from class lime.RegisteredReaction
getSeqNum, getSubscriber, getTupleSpaceName, isWeakReaction, toString
 
Methods inherited from class lime.Reaction
getCurrentLocation, getDestinationLocation, getListener, getMode, getTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private RequestID id
ID of the request, used for identifying it in the motes subsystem.


moteID

private MoteID moteID
The id of the MoteID we are setting the reaction on. May be unspecified.

Constructor Detail

MoteRegisteredReaction

public MoteRegisteredReaction(RequestID id,
                              MoteID moteID,
                              RegisteredReaction r)
Public constructor that allows to build a MoteRegisteredReaction starting from a RequestID, which is the one that identifies the reaction in the whole motes subsystem, the MoteID (that may be unspecified) that idicates the reaction loacation at the motes level, and the RegisteredReaction as in the construction of a lime RegisteredReaction.

Parameters:
id - the id of the request.
moteID - location of the reaction at the motes level. May be unspecified.
r - the lime RegisteredReaction.
Method Detail

getId

public RequestID getId()
Getter for the request id.

Returns:
the request id of the reaction.

getMoteID

public MoteID getMoteID()
Getter for the MoteID attribute.

Returns:
the MoteID of the reaction.