ix.ip2
Class ForwardingHandler

java.lang.Object
  |
  +--ix.ip2.ItemHandler
        |
        +--ix.ip2.ForwardingHandler
All Implemented Interfaces:
ix.ispace.event.ContactListener, java.util.EventListener

public class ForwardingHandler
extends ItemHandler
implements ix.ispace.event.ContactListener

Generates HandlerActions for an AgendItem.


Inner Class Summary
(package private)  class ForwardingHandler.ForwardingAction
           
 
Field Summary
protected  java.lang.String action
           
protected  IXAgent agent
           
protected  ContactManager contactManager
           
protected  AgentRelationship rel
           
protected  boolean reportBack
           
 
Fields inherited from class ix.ip2.ItemHandler
actionDescription
 
Constructor Summary
ForwardingHandler(IXAgent agent, java.lang.String action, AgentRelationship rel, boolean reportBack)
           
 
Method Summary
 void addHandlerActions(AgendaItem item)
           
 void contactChange(ix.ispace.event.ContactEvent e)
           
protected  java.util.List getToNames()
           
 void handle(AgendaItem item)
           
 void reviseHandlerActions(AgendaItem item, java.lang.Object reason)
           
 java.lang.String toString()
           
 
Methods inherited from class ix.ip2.ItemHandler
appliesTo, getActionDescription
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

agent

protected IXAgent agent

action

protected java.lang.String action

rel

protected AgentRelationship rel

reportBack

protected boolean reportBack

contactManager

protected ContactManager contactManager
Constructor Detail

ForwardingHandler

public ForwardingHandler(IXAgent agent,
                         java.lang.String action,
                         AgentRelationship rel,
                         boolean reportBack)
Method Detail

addHandlerActions

public void addHandlerActions(AgendaItem item)
Overrides:
addHandlerActions in class ItemHandler

getToNames

protected java.util.List getToNames()

handle

public void handle(AgendaItem item)
Overrides:
handle in class ItemHandler

contactChange

public void contactChange(ix.ispace.event.ContactEvent e)
Specified by:
contactChange in interface ix.ispace.event.ContactListener

reviseHandlerActions

public void reviseHandlerActions(AgendaItem item,
                                 java.lang.Object reason)
Overrides:
reviseHandlerActions in class ItemHandler

toString

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