ix.ip2
Class ForwardingHandler

java.lang.Object
  |
  +--ix.ip2.ItemHandler
        |
        +--ix.ip2.ForwardingHandler
All Implemented Interfaces:
ContactListener, java.util.EventListener
Direct Known Subclasses:
InvokeHandler

public class ForwardingHandler
extends ItemHandler
implements 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  boolean capabilityDefault
           
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(ContactEvent e)
           
 java.util.List getToAgents(AgendaItem item)
           
protected  java.util.List getToNames(AgendaItem item)
           
 void handle(AgendaItem item)
           
 ForwardingHandler.ForwardingAction makeForwardingAction(java.lang.String toName, AgendaItem about)
           
 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

capabilityDefault

protected boolean capabilityDefault

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

makeForwardingAction

public ForwardingHandler.ForwardingAction makeForwardingAction(java.lang.String toName,
                                                               AgendaItem about)

getToNames

protected java.util.List getToNames(AgendaItem item)

getToAgents

public java.util.List getToAgents(AgendaItem item)

handle

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

contactChange

public void contactChange(ContactEvent e)
Specified by:
contactChange in interface 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