org.almendra.janet.cas.events
Class EventHandlerEnvelope

java.lang.Object
  extended by org.almendra.janet.cas.events.AbstractEventHandlerEnvelope
      extended by org.almendra.janet.cas.events.EventHandlerEnvelope
All Implemented Interfaces:
java.io.Serializable, IEventHandler

public class EventHandlerEnvelope
extends AbstractEventHandlerEnvelope
implements IEventHandler, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  ApplicationAccessor application
           
protected  Node node
           
 
Fields inherited from class org.almendra.janet.cas.events.AbstractEventHandlerEnvelope
agentPath, handler
 
Constructor Summary
protected EventHandlerEnvelope()
          Creates a new EventHandlerEnvelope object.
  EventHandlerEnvelope(IEventHandler handler, AgentPath agentPath)
          Creates a new EventHandlerEnvelope object.
 
Method Summary
 ApplicationAccessor getApplication()
           
 Node getNode()
           
 void occured(Event event)
          Any object that wants to be notified about the occurrence of an event must implement this callback method.
 void setApplication(ApplicationAccessor application)
           
 void setNode(Node node)
           
 
Methods inherited from class org.almendra.janet.cas.events.AbstractEventHandlerEnvelope
getAgentPath, getHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected Node node

application

protected transient ApplicationAccessor application
Constructor Detail

EventHandlerEnvelope

protected EventHandlerEnvelope()
Creates a new EventHandlerEnvelope object.


EventHandlerEnvelope

public EventHandlerEnvelope(IEventHandler handler,
                            AgentPath agentPath)
Creates a new EventHandlerEnvelope object.

Method Detail

getApplication

public ApplicationAccessor getApplication()
Returns:
Returns the application.

setApplication

public void setApplication(ApplicationAccessor application)
Parameters:
application - The application to set.

occured

public void occured(Event event)
Description copied from interface: IEventHandler
Any object that wants to be notified about the occurrence of an event must implement this callback method.

Specified by:
occured in interface IEventHandler

getNode

public Node getNode()
Returns:
Returns the node.

setNode

public void setNode(Node node)
Parameters:
node - The node to set.