com.ibm.able.conversation
Class DefaultDecisionMaker
java.lang.Object
|
+--com.ibm.able.AbleObject
|
+--com.ibm.able.conversation.DefaultDecisionMaker
- All Implemented Interfaces:
- AbleBean, AbleDataBufferManager, AbleEventListener, AbleEventListenerManager, AbleEventQueueManager, AbleEventQueueProcessor, AblePropertyChangeManager, AbleSerializable, java.io.Serializable
- public class DefaultDecisionMaker
- extends AbleObject
- implements java.io.Serializable
This class represents a decision logic object that be attached to an
ABLE JAS conversation agent to act as a decision logic during the execution
of any conversation. This bean tries to arrive at decisions by presenting a user
with a DecisionPanel that shows MessageFormInterfacePanels supplied to it by the
DefaultDecisionMaker.
The DefaultDecisionMaker obtains the message-form for each outgoing transition
(decision) from a particular state (decision point) by querying the Conversation
Manager. Then, it obtains a panel, MessageFormInterfacePanel for asking the user
for data to create the message-form from the MessageFormInterfacePanelFactory
OLD VERSION -- TO BE UPDATED
- See Also:
DecisionPanel
,
MessageFormInterfacePanel
,
MessageFormFactory
, Serialized Form
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 |
Method Summary |
java.lang.Object[] |
defaultDecision(java.lang.String conversationId,
java.lang.String decisionPoint,
java.lang.Object[] decisionPointData)
Decision logic connection function for the DefaultDecisionMaker bean
|
void |
setDecisionMade(boolean decisionMade)
Sets decision made to true or false. |
Methods inherited from class com.ibm.able.AbleObject |
addAbleEventListener, addDestBufferConnection, addPropertyChangeListener, addPropertyConnection, addSourceBufferConnection, addStateChangeListener, Copyright, dataChanged, firePropertyChange, flushAbleEventQueue, getAbleEventListeners, getAbleEventProcessingEnabled, getAbleEventQueueSize, getComment, getDestBufferConnections, getFileName, getInputBuffer, getInputBuffer, getInputBufferAsStringArray, getInputBufferContents, getLogger, getName, getOutputBuffer, getOutputBuffer, getOutputBufferAsStringArray, getOutputBufferContents, getParent, getPropertyConnectionManager, getSleepTime, getSourceBufferConnections, getState, getTraceLogger, handleAbleEvent, hasInputBuffer, hasOutputBuffer, init, init, isAbleEventPostingEnabled, isAbleEventProcessingEnabled, isChanged, isConnectable, isDataFlowEnabled, isTimerEventProcessingEnabled, notifyAbleEventListeners, process, process, processAbleEvent, processBufferConnections, processNoEventProcessingEnabledSituation, processTimerEvent, quitAll, quitEnabledEventProcessing, removeAbleEventListener, removeAllAbleEventListeners, removeAllBufferConnections, removeAllConnections, removeAllPropertyConnections, removeDestBufferConnection, removePropertyChangeListener, removePropertyConnection, removeSourceBufferConnection, removeStateChangeListener, reset, restartEnabledEventProcessing, restoreFromFile, restoreFromFile, restoreFromSerializedFile, restoreFromStream, resumeAll, resumeEnabledEventProcessing, saveToFile, saveToFile, setAbleEventProcessingEnabled, setChanged, setComment, setDataFlowEnabled, setFileName, setInputBuffer, setInputBuffer, setLogger, setName, setOutputBuffer, setOutputBuffer, setParent, setSleepTime, setState, setTimerEventProcessingEnabled, setTraceLogger, sourceConnectionsOK, startEnabledEventProcessing, suspendAll, suspendEnabledEventProcessing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
protected static final long serialVersionUID
- Serialized version identifier in form YYYYMMDDVerRelModxx
DefaultDecisionMaker
public DefaultDecisionMaker()
throws java.rmi.RemoteException
- Constructor for AutoConversationSetupBean
DefaultDecisionMaker
public DefaultDecisionMaker(java.lang.String theName)
throws java.rmi.RemoteException
- Constructor for AutoConversationSetupBean
DefaultDecisionMaker
public DefaultDecisionMaker(java.lang.String theName,
java.lang.String theComment)
throws java.rmi.RemoteException
- Constructor for AutoConversationSetupBean
setDecisionMade
public void setDecisionMade(boolean decisionMade)
- Sets decision made to true or false. If decision made is true, it wakes
up the thread that is blocked waiting for user-input to make decision
- Parameters:
decisionMade
- true of false value to be set
defaultDecision
public java.lang.Object[] defaultDecision(java.lang.String conversationId,
java.lang.String decisionPoint,
java.lang.Object[] decisionPointData)
- Decision logic connection function for the DefaultDecisionMaker bean
- Parameters:
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
- Returns:
- an object array, with the first element of the array representing
the decision made and the second parameter itself an object array
that is to be used to construct the message form for an outgoing message
(C) Copyright IBM Corporation 1999, 2003