lime.motes
Class MoteAgent.ReactionRequestListener

java.lang.Object
  extended bylime.motes.MoteAgent.ReactionRequestListener
All Implemented Interfaces:
java.util.EventListener, ReactionListener, java.io.Serializable
Enclosing class:
MoteAgent

private class MoteAgent.ReactionRequestListener
extends java.lang.Object
implements ReactionListener

This class is used to react to tuples in the config tuple space that request for a reaction.


Field Summary
(package private)  IMoteListener ml
          The IMoteListener that instantiates this.
 
Constructor Summary
MoteAgent.ReactionRequestListener(IMoteListener ml)
          Public constructor for a ReactionRequestListener.
 
Method Summary
 void reactsTo(ReactionEvent e)
          This reactsTo implementation is used to handle a request of new reaction registration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ml

IMoteListener ml
The IMoteListener that instantiates this.

Constructor Detail

MoteAgent.ReactionRequestListener

public MoteAgent.ReactionRequestListener(IMoteListener ml)
Public constructor for a ReactionRequestListener.

Parameters:
ml - the MoteListener that instantiates this.
Method Detail

reactsTo

public void reactsTo(ReactionEvent e)
This reactsTo implementation is used to handle a request of new reaction registration. It implies the injection of a reaction in the moteaccess, and the logging of the request of the agent so that in case of deregistration of the agent the request can be stopped.

Specified by:
reactsTo in interface ReactionListener
Parameters:
e - the event that triggered the reaction.