|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.AbleObject | +--com.ibm.able.conversation.SimpleConversationManager
This is a conversation manager implemented as an AbleBean. It manages a single conversation.
It processes inbound messages and decisions, which are both handed to it by its parent agent. It uses its parent agent's table of user-defined functions for sending decision-requests and outbound messages.
OLD VERSION -- TO BE DELETED Replaced by com.ibm.able.conversation.AbleConversation.
Field Summary | |
---|---|
protected static long |
serialVersionUID
Serialized version identifier in form YYYYMMDDVerRelModxx |
Fields inherited from class com.ibm.able.AbleObject |
---|
changed, chgSupport, comment, dataFlowEnabled, defaultName, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
Constructor Summary | |
---|---|
SimpleConversationManager()
|
|
SimpleConversationManager(java.lang.String arg0)
|
|
SimpleConversationManager(java.lang.String arg0,
java.lang.String arg1)
|
Method Summary | |
---|---|
java.util.LinkedList |
getAllCphs()
Funtion useful for introspection. |
ConversationContext |
getContext()
|
java.util.Hashtable |
getMessageForms(java.lang.String decisionPoint)
|
ConversationPolicyHandler |
getPolicyHandler()
|
java.lang.String |
getRole()
Returns the current role of the conversation manager |
void |
handleAbleEvent(AbleEvent theAbleEvent)
From AbleBean -- overriden here for testing. |
void |
init()
From AbleBean -- overriden here for testing. |
void |
process()
From AbleBean |
void |
processAbleEvent(AbleEvent theAbleEvent)
From AbleBean -- overriden here for testing. |
void |
processDecision(java.lang.String decisionName,
java.lang.Object[] decisionData)
Process a decision newly arrived from the decision-making system. |
void |
processInboundMessage(javax.agent.TransportMessage message)
Process a message newly arrived from the messaging system. |
void |
reset()
From AbleBean |
void |
setContext(ConversationContext context)
Sets the ConversationContext variable inside the manager |
void |
setCPDoneFunction(AbleUserDefinedFunction func)
|
void |
setDecisionRequestFunction(AbleUserDefinedFunction func)
|
void |
setLoadCPHFunction(AbleUserDefinedFunction func)
|
void |
setPolicyHandler(ConversationPolicyHandler newHandler)
|
void |
setRole(java.lang.String s)
Sets the current role for the conversation manager |
void |
setSendMessageFunction(AbleUserDefinedFunction func)
|
void |
setTimerFunction(AbleUserDefinedFunction func)
|
void |
start(java.lang.Object[] data)
Starts the execution of the conversation manager. |
void |
timerExpired()
Called by external program(agent) to indicate the expiry of a set timer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public SimpleConversationManager() throws AbleException
public SimpleConversationManager(java.lang.String arg0) throws AbleException
public SimpleConversationManager(java.lang.String arg0, java.lang.String arg1) throws AbleException
Method Detail |
public ConversationPolicyHandler getPolicyHandler()
public void setPolicyHandler(ConversationPolicyHandler newHandler)
public void setSendMessageFunction(AbleUserDefinedFunction func)
public void setDecisionRequestFunction(AbleUserDefinedFunction func)
public void setLoadCPHFunction(AbleUserDefinedFunction func)
public void setCPDoneFunction(AbleUserDefinedFunction func)
public void setTimerFunction(AbleUserDefinedFunction func)
public ConversationContext getContext()
public void reset() throws AbleException
reset
in class AbleObject
com.ibm.able.AbleObject
AbleException
- If an error occurs.AbleBean.reset()
public void init() throws AbleException
init
in class AbleObject
com.ibm.able.AbleObject
AbleException
- If an error occurs.AbleObject.startEnabledEventProcessing()
public void process() throws AbleException
process
in class AbleObject
com.ibm.able.AbleObject
AbleObject.inputBuffer
,
AbleObject.outputBuffer
,
AbleBean.process()
public void handleAbleEvent(AbleEvent theAbleEvent) throws AbleException
handleAbleEvent
in class AbleObject
com.ibm.able.AbleEventListener
theAbleEvent
- The event to handle.AbleException
- If an error occurs.public void processAbleEvent(AbleEvent theAbleEvent) throws AbleException
processAbleEvent
in class AbleObject
com.ibm.able.AbleObject
theAbleEvent
- The event to process.AbleException
- If an error occurs.AbleObject.setAbleEventProcessingEnabled(int)
,
AbleObject.startEnabledEventProcessing()
,
AbleObject.handleAbleEvent(AbleEvent)
public void processInboundMessage(javax.agent.TransportMessage message)
public void processDecision(java.lang.String decisionName, java.lang.Object[] decisionData)
public java.util.Hashtable getMessageForms(java.lang.String decisionPoint)
public void setRole(java.lang.String s)
role
- Role to be set for the conversation managerpublic java.lang.String getRole()
public void setContext(ConversationContext context)
context
- the ConversationContext variable to be setpublic void start(java.lang.Object[] data)
data
- Data(Object) Array to be used for starting executionpublic void timerExpired()
public java.util.LinkedList getAllCphs()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |