lime
Class LSTSListener

java.lang.Object
  extended bylime.LSTSListener
All Implemented Interfaces:
java.util.EventListener, ReactionListener, java.io.Serializable

class LSTSListener
extends java.lang.Object
implements ReactionListener

A simple listener for the Lime System Tuple Space which returns the tuple that triggered the event to the process waiting for the tuple. It will be used for the WaitToRead operation. Because the LSTS does not have a WaitToTake, there is no need to add that functionality to this listener in order to have a more general listener. It is also NOT possible to use the SystemUponListener which is used for upons because of the complications with handling the PendingUpon structure. Otherwise, the basic functionality is the same (for a read, return the tuple).


Field Summary
(package private)  ResultTuple resultTuple
           
 
Constructor Summary
(package private) LSTSListener(ResultTuple resultTuple)
           
 
Method Summary
 void reactsTo(ReactionEvent e)
          This method is invoked automatically by the system when the corresponding reaction must be fired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultTuple

ResultTuple resultTuple
Constructor Detail

LSTSListener

LSTSListener(ResultTuple resultTuple)
Method Detail

reactsTo

public void reactsTo(ReactionEvent e)
Description copied from interface: ReactionListener
This method is invoked automatically by the system when the corresponding reaction must be fired.

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