com.ibm.able.conversation
Class DecisionEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.ibm.able.conversation.ConversationEvent
|
+--com.ibm.able.conversation.DecisionEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class DecisionEvent
- extends ConversationEvent
DecisionEvents are used to indicate either the need for a decision (a "decision
request") or a decision istelf. in either case, the decision-request or decision
is identified by a (String) name, and the data associated with it is stored as
an array of Objects.
OLD VERSION -- TO BE DELETED
The choice of storing decision data as an Object[] is in conformance with the
needs of the AbleUserDefinedFunction class, which is the preferred means of
representing the binding information that specifies which code module to execute
in order to make a decision.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
DecisionEvent(java.lang.Object source)
|
DecisionEvent(java.lang.Object source,
int newType,
java.lang.String newName,
java.lang.Object[] newData)
|
Method Summary |
java.lang.Object[] |
getData()
|
java.lang.String |
getName()
|
int |
getType()
|
static java.lang.String |
getTypeString(int testType)
|
static boolean |
isValidType(int testType)
|
void |
setData(java.lang.Object[] newData)
|
void |
setName(java.lang.String newName)
|
void |
setType(int newType)
|
java.lang.String |
summary()
Returns a descriptive summary of the event, intended for ordinary humans. |
java.lang.String |
toString()
Returns a text summary of this object, intended for human eyes. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DECISION
public static final int DECISION
DECISION_REQUEST
public static final int DECISION_REQUEST
DecisionEvent
public DecisionEvent(java.lang.Object source)
DecisionEvent
public DecisionEvent(java.lang.Object source,
int newType,
java.lang.String newName,
java.lang.Object[] newData)
getType
public int getType()
setType
public void setType(int newType)
isValidType
public static boolean isValidType(int testType)
getTypeString
public static java.lang.String getTypeString(int testType)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String newName)
getData
public java.lang.Object[] getData()
setData
public void setData(java.lang.Object[] newData)
toString
public java.lang.String toString()
- Returns a text summary of this object, intended for human eyes.
- Overrides:
toString
in class java.util.EventObject
summary
public java.lang.String summary()
- Description copied from class:
ConversationEvent
- Returns a descriptive summary of the event, intended for ordinary humans.
Unless overridden, this is identical to toString().
- Overrides:
summary
in class ConversationEvent
(C) Copyright IBM Corporation 1999, 2003