ABLE 2.0.0 07/02/2003 10:25:01

com.ibm.able.conversation
Class ContextEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.ibm.able.conversation.ConversationEvent
              |
              +--com.ibm.able.conversation.ContextEvent
All Implemented Interfaces:
java.io.Serializable

public class ContextEvent
extends ConversationEvent

This is an event output from a CPH, that tells the conv mgr to change either the owner agent's conversation-context data ("self"), or that of the other agent in the conversation ("counterpart").

OLD VERSION -- TO BE DELETED

Context data consists of agent name, locator, and conversation ID. The conv manager keeps it in a ConversationContext object.

See Also:
Serialized Form

Field Summary
static int COUNTERPART
           
static int NEITHER
           
static int SELF
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContextEvent(java.lang.Object source)
          Constructor for ConfigurationEvent
ContextEvent(java.lang.Object source, int newSide, javax.agent.AgentName newName, javax.agent.Locator newLocator, java.lang.String newID)
          Constructor for ConfigurationEvent
 
Method Summary
 javax.agent.AgentName getAgentName()
           
 java.lang.String getConversationID()
           
 javax.agent.Locator getLocator()
           
 int getSide()
           
 void setAgentName(javax.agent.AgentName newName)
           
 void setConversationID(java.lang.String newID)
           
 void setLocator(javax.agent.Locator newLocator)
           
 void setSide(int newSide)
           
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.able.conversation.ConversationEvent
summary
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEITHER

public static final int NEITHER

SELF

public static final int SELF

COUNTERPART

public static final int COUNTERPART
Constructor Detail

ContextEvent

public ContextEvent(java.lang.Object source)
Constructor for ConfigurationEvent

ContextEvent

public ContextEvent(java.lang.Object source,
                    int newSide,
                    javax.agent.AgentName newName,
                    javax.agent.Locator newLocator,
                    java.lang.String newID)
Constructor for ConfigurationEvent
Method Detail

getSide

public int getSide()

setSide

public void setSide(int newSide)

getAgentName

public javax.agent.AgentName getAgentName()

setAgentName

public void setAgentName(javax.agent.AgentName newName)

getLocator

public javax.agent.Locator getLocator()

setLocator

public void setLocator(javax.agent.Locator newLocator)

getConversationID

public java.lang.String getConversationID()

setConversationID

public void setConversationID(java.lang.String newID)

toString

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

ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003