lime
Class LimeSystemReaction

java.lang.Object
  extended bylime.Reaction
      extended bylime.LimeSystemReaction
All Implemented Interfaces:
java.io.Serializable

public class LimeSystemReaction
extends Reaction

Specifies reactions that are concerned only over the Lime System Tuple Space. Tuples appearing in the LSTS have the following templates:

A Host tuple has the format <_host, LimeServerID>

An Agent tuple has the format <_agent, AgentID, LimeServerID>

A TS tuple has the format <_tuplespace, String, AgentID>, where the string is the name of the tuple space.

The corresponding anti-tuples have the same format, but the tags are _host_gone, _agent_gone, and _tuplespace_gone.

Version:
1.0 alpha
Author:
Amy L. Murphy, Gian Pietro Picco
See Also:
Reaction, UbiquitousReaction, LocalizedReaction, ReactionListener, LimeTupleSpace, LimeSystemTupleSpace, Serialized Form

Field Summary
 
Fields inherited from class lime.Reaction
ONCE, ONCEPERTUPLE, pendUponListener
 
Constructor Summary
LimeSystemReaction(lights.interfaces.ITuple template, ReactionListener listener, short mode)
          Create the reaction.
 
Methods inherited from class lime.Reaction
getCurrentLocation, getDestinationLocation, getLimifiedTemplate, getListener, getMode, getTemplate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LimeSystemReaction

public LimeSystemReaction(lights.interfaces.ITuple template,
                          ReactionListener listener,
                          short mode)
Create the reaction.

Parameters:
template - tuples in the shared tuple space that match this template will trigger execution of the reaction, i.e., invocation of the listener.
listener - the reaction listener, which specifies the computation to take place when the reaction is fired.
mode - the reaction mode (see Reaction).