lime
Class SystemUponListener

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

class SystemUponListener
extends java.lang.Object
implements ReactionListener


Field Summary
private  OutgoingMgr outMgr
           
private  lights.interfaces.ITuple pendingSysTake
           
private  ResultTuple resultTuple
           
private  int type
           
 
Constructor Summary
(package private) SystemUponListener(int type, ResultTuple resultTuple)
           
 
Method Summary
private  void doReadUpon(SystemReactionEvent e)
           
private  void doTakeUpon(SystemReactionEvent e)
           
private  void processReactionEvent(SystemReactionEvent e)
           
 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

type

private int type

resultTuple

private ResultTuple resultTuple

pendingSysTake

private lights.interfaces.ITuple pendingSysTake

outMgr

private OutgoingMgr outMgr
Constructor Detail

SystemUponListener

SystemUponListener(int type,
                   ResultTuple resultTuple)
Parameters:
type -
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.

doTakeUpon

private void doTakeUpon(SystemReactionEvent e)
                 throws lights.interfaces.TupleSpaceException,
                        java.io.IOException
Throws:
lights.interfaces.TupleSpaceException
java.io.IOException

doReadUpon

private void doReadUpon(SystemReactionEvent e)
                 throws lights.interfaces.TupleSpaceException,
                        java.io.IOException
Throws:
lights.interfaces.TupleSpaceException
java.io.IOException

processReactionEvent

private void processReactionEvent(SystemReactionEvent e)
                           throws lights.interfaces.TupleSpaceException,
                                  java.io.IOException
Throws:
lights.interfaces.TupleSpaceException
java.io.IOException