|
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.conversation.AbstractCPH | +--com.ibm.able.conversation.SimpleCPH
An implementation of the ConversationPolicyHandler interface that uses a state machine to execute a conversation
OLD VERSION -- TO BE DELETED Replaced by com.ibm.able.conversation.AbleCpStateMachineHandler
Field Summary | |
---|---|
protected static long |
serialVersionUID
Serialized version identifier in form YYYYMMDDVerRelModxx |
Fields inherited from class com.ibm.able.conversation.AbstractCPH |
---|
propertySupport |
Constructor Summary | |
---|---|
SimpleCPH()
Default Constructor for SimpleCPH |
|
SimpleCPH(ConversationParser parser)
Constructor for SimpleCPH with a ConversationParser object |
Method Summary | |
---|---|
java.util.Collection |
getDecisionPoints()
Returns the set of all names that might be used in decision-requests, for any role. |
MessageForm |
getMessageForm(java.lang.String messageKey)
Returns the MessageForm object associated with the given transition, as identified by message key. |
java.util.Hashtable |
getMessageForms(java.lang.String decisionPoint)
Returns a hashtable of messageforms associated with the set of out-going transitions from the given decision point name |
java.util.Collection |
getMessageKeys()
Returns the set of message-keys of the decision names for all decision points. |
java.util.Collection |
getMessageKeys(java.lang.String decisionPoint)
Returns the set of all message-keys (names of send-message transitions) for outgoing transitions from the given decision point. |
java.lang.String |
getPolicyName()
Identifies the policy we're handling. |
java.lang.String |
getRole()
Returns the role we've assumed, or null if we haven't assumed one. |
java.util.Collection |
getRoleSet()
Returns the set of possible roles, as defined by the policy we're handling. |
StateMachine |
getStateMachine()
Returns the StateMachine object associated with the CPH |
java.lang.String |
getStateName()
Identifies the current "state" of the CP. |
void |
process(ConversationEvent input,
ConversationEventSequence outputs)
Attempts to process the given input event. |
void |
reset()
Puts the CP into a start state without changing the role. |
void |
reset(java.lang.String newRole)
Puts the CP into a start state and sets the role. |
void |
setRole(java.lang.String newRole)
Sets the current role. |
java.lang.String |
startAt()
|
Methods inherited from class com.ibm.able.conversation.AbstractCPH |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, process, removePropertyChangeListener, removePropertyChangeListener |
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 SimpleCPH()
public SimpleCPH(ConversationParser parser)
parser
- An instance of a conversation parser that represents
a conversationMethod Detail |
public java.lang.String getPolicyName()
ConversationPolicyHandler
ConversationPolicyHandler.getPolicyName()
public java.lang.String getStateName()
ConversationPolicyHandler
ConversationPolicyHandler.getStateName()
public java.util.Collection getRoleSet()
ConversationPolicyHandler
ConversationPolicyHandler.getRoleSet()
public java.lang.String getRole()
ConversationPolicyHandler
ConversationPolicyHandler.getRole()
public void setRole(java.lang.String newRole)
ConversationPolicyHandler
ConversationPolicyHandler.setRole(String)
public java.util.Collection getDecisionPoints()
ConversationPolicyHandler
ConversationPolicyHandler.getDecisionPoints()
public java.util.Collection getMessageKeys()
ConversationPolicyHandler
ConversationPolicyHandler.getMessageKeys()
public java.util.Collection getMessageKeys(java.lang.String decisionPoint)
ConversationPolicyHandler
ConversationPolicyHandler.getMessageKeys(String)
public MessageForm getMessageForm(java.lang.String messageKey)
ConversationPolicyHandler
WARNING: Not implemented
public void reset()
ConversationPolicyHandler
ConversationPolicyHandler.reset()
public void reset(java.lang.String newRole)
ConversationPolicyHandler
ConversationPolicyHandler.reset(String)
public void process(ConversationEvent input, ConversationEventSequence outputs)
ConversationPolicyHandler
ConversationPolicyHandler.process(ConversationEvent, ConversationEventSequence)
public StateMachine getStateMachine()
public java.util.Hashtable getMessageForms(java.lang.String decisionPoint)
decisionPoint
- name of the decision point (state)
public java.lang.String startAt()
|
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 |