lime
Class SystemReactionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bylime.ReactionEvent
          extended bylime.SystemReactionEvent
All Implemented Interfaces:
java.io.Serializable

class SystemReactionEvent
extends ReactionEvent

Contains information related to an event that is triggered from within the PendingUpon structure. Will only be for package use. Any reaction events returned to the user will be of type ReactionEvent, not SystemReactionEvent.


Field Summary
(package private) static short ACTUAL
           
(package private) static short COPY
           
(package private)  short type
           
(package private)  UponMgr upons
           
 
Fields inherited from class lime.ReactionEvent
eventTuple, reaction
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
(package private) SystemReactionEvent(short type, AgentID source, lights.interfaces.ITuple eventTuple, RegisteredReaction reaction, UponMgr upons)
          Creates a new remote reaction event.
(package private) SystemReactionEvent(short type, ReactionEvent e)
           
 
Methods inherited from class lime.ReactionEvent
getEventTuple, getReaction, getSourceAgent
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

short type

upons

UponMgr upons

COPY

static final short COPY
See Also:
Constant Field Values

ACTUAL

static final short ACTUAL
See Also:
Constant Field Values
Constructor Detail

SystemReactionEvent

SystemReactionEvent(short type,
                    AgentID source,
                    lights.interfaces.ITuple eventTuple,
                    RegisteredReaction reaction,
                    UponMgr upons)
Creates a new remote reaction event.

Parameters:
type - the type of the event, whether it was the upon or the system take that was triggered by the upon
source - the id of the agent owning the tuple space where the event occurred.
eventTuple - the tuple that triggered the reaction.
reaction - the reaction this listener is part of. It is the same object that has been passed at registration time.

SystemReactionEvent

SystemReactionEvent(short type,
                    ReactionEvent e)