lime
Class RegisteredReaction

java.lang.Object
  |
  +--lime.Reaction
        |
        +--lime.RegisteredReaction
All Implemented Interfaces:
java.io.Serializable

public class RegisteredReaction
extends Reaction

Objects of this class represent a sort of a "receipt" for the registration of a reaction. When an agent registers a Reaction object, by using either addStrongReaction or addWeakReaction, the system returns to it a RegisteredReaction object, which is a copy of such reaction augmented with information concerning the registration. This "receipt", can later be used by the agent to deregister the reaction, by invoking either removeReaction or removeWeakReaction.

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

Fields inherited from class lime.Reaction
ONCE, ONCEPERTUPLE
 
Method Summary
 AgentID getSubscriber()
          Return a handle to the agent that registered the reaction.
 java.lang.String getTupleSpaceName()
          Return the name of the tuple space where the reaction is installed.
 boolean isWeakReaction()
           
 java.lang.String 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
 

Method Detail

getTupleSpaceName

public java.lang.String getTupleSpaceName()
Return the name of the tuple space where the reaction is installed.
Returns:
The tuple space where the reaction is installed.

getSubscriber

public AgentID getSubscriber()
Return a handle to the agent that registered the reaction.
Returns:
A handle to the agent that registered the reaction.

isWeakReaction

public boolean isWeakReaction()

toString

public java.lang.String toString()
Overrides:
toString in class Reaction