|
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.AutoConversationSetup
This bean handles setting up conversations based on the setup_cp.xml and metaconversation_cp.xml provided with the ABLE distribution in examples/datafiles. The default conversation is assumed to be setup_cp.xml which then uses metaconverastion_cp.xml to decide the toles to be assumed duting the conversation.
OLD VERSION -- TO BE DELETED
Whenever an AutoConversationSetupBean is used inside an ABLE Jas Conversation agent, the conversationSetup and metaCConversation functions can be set using the conversation agent's decision panel to be the end points for decision making for ConversationSetup and MetaConversation policies respectively
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 | |
---|---|
AutoConversationSetup()
Constructor for AutoConversationSetupBean |
|
AutoConversationSetup(java.lang.String theName)
Constructor for AutoConversationSetupBean |
|
AutoConversationSetup(java.lang.String theName,
java.lang.String theComment)
Constructor for AutoConversationSetupBean |
Method Summary | |
---|---|
java.lang.Object[] |
conversationSetup(java.lang.String conversationId,
java.lang.String decisionPoint,
java.lang.Object[] decisionPointData)
Decision logic connection function for the ConversationSetup CP. |
java.util.Vector |
getAgentNames()
Returns a vector of valid agent names to accept conversation requests from |
java.util.Hashtable |
getRoles()
Returns the valid roles the agent can assume during conversations |
void |
init()
Initialize and configure the bean. |
java.lang.Object[] |
metaConversation(java.lang.String conversationId,
java.lang.String decisionPoint,
java.lang.Object[] decisionPointData)
Decision logic connection function for the ConversationSetup CP. |
void |
setAgentNames(java.util.Vector agentNames)
Sets the valid agent names to accept conersation requests from |
void |
setRoles(java.util.Hashtable roles)
Set the valid roles the agent can assum during conversations |
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 AutoConversationSetup() throws java.rmi.RemoteException
public AutoConversationSetup(java.lang.String theName) throws java.rmi.RemoteException
public AutoConversationSetup(java.lang.String theName, java.lang.String theComment) throws java.rmi.RemoteException
Method Detail |
public void init() throws AbleException
AbleObject
AbleState.Initiated
or
AbleState.Waiting
.
If either the AbleEventProcessing or
TimerEventProcessing flags are enabled, this method calls
AbleObject.startEnabledEventProcessing()
to start a new thread for asynchronous or timer event processing.
An AbleProperty.ProcessingState
PropertyChangeEvent is fired.
Beans overriding this method should call
super.init()
after any customization and
before returning so that the thread is started if needed
and the PropertyChangeEvent is fired.
init
in class AbleObject
AbleObject.init()
public java.util.Vector getAgentNames()
public void setAgentNames(java.util.Vector agentNames)
agentNames
- Vector of string names of agentspublic java.util.Hashtable getRoles()
public void setRoles(java.util.Hashtable roles)
roles
- a hashtable indexed by the policy name with the
corresponding value containing a vector of valid rolespublic java.lang.Object[] conversationSetup(java.lang.String conversationId, java.lang.String decisionPoint, java.lang.Object[] decisionPointData)
conversationId
- the conversation identifier
decisionPoint
- the decicion point (state name) at which a deicision is to be made
decisionData
- object array representing the data used in making a decision
public java.lang.Object[] metaConversation(java.lang.String conversationId, java.lang.String decisionPoint, java.lang.Object[] decisionPointData)
conversationId
- the conversation identifier
decisionPoint
- the decicion point (state name) at which a deicision is to be made
decisionData
- object array representing the data used in making a decision
|
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 |