com.ibm.able.conversation
Class ConversationEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.ibm.able.conversation.ConversationEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ContextEvent, CPDoneEvent, DecisionEvent, LoadCPEvent, MessageEvent, ProtocolErrorEvent, TimerEvent
- public class ConversationEvent
- extends java.util.EventObject
As-yet-trivial subclass of EventObject; useful only for
type-checking.
OLD VERSION -- TO BE DELETED
In the current design, this doesn't really need to inherit from
EventObject, since it's not actually used as a queued asynchronous
event. But I don't see a downside, so let's do it anyway.
We could put all the different data for all the different kinds of
CP-related events into a single class, but it would be a distractingly
fat interface. Better to define subclasses for the different collections
of member data.
Known varieties of ConversationEvent:
--MessageEvent: a message was received, or is ready to send.
--DecisionEvent: a decision is needed, or has been made.
--TimerEvent: a timer should be set, or a time limit has expired.
--LoadCPEvent: it's time to load a child CP.
--CPDoneEvent: the CP has reached a terminal state.
--ProtocolErrorEvent: the input event was not allowed.
--ConfigurationEvent: the conversation manager needs to change its properties.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
java.lang.String |
summary()
Returns a descriptive summary of the event, intended for ordinary humans. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConversationEvent
public ConversationEvent(java.lang.Object source)
summary
public java.lang.String summary()
- Returns a descriptive summary of the event, intended for ordinary humans.
Unless overridden, this is identical to toString().
(C) Copyright IBM Corporation 1999, 2003