|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.automaton.DSEGuardCondition
public abstract class DSEGuardCondition
Default implementation of a GuardCondition
Additional description
Field Summary | |
---|---|
static java.lang.String |
ABORT_PROCESS
|
static java.lang.String |
CHANGE_STATE
|
protected boolean |
conditionResult
|
protected Context |
context
|
static java.lang.String |
CONTINUE
|
static java.lang.String |
EXECUTE_ACTION_AND_CHANGESTATE
|
protected java.lang.String |
id
|
protected java.lang.String |
newStateNameOnFalse
|
protected java.lang.String |
newStateNameOnTrue
|
static java.lang.String |
ON_FALSE
|
static java.lang.String |
ON_TRUE
|
protected int |
onFalse
|
protected int |
onTrue
|
Hashtable |
parms
|
static java.lang.String |
SKIP_ACTION
|
static java.lang.String |
SKIP_ALL_ACTIONS
|
static java.lang.String |
SKIP_CONDITIONS
|
protected DSEEventObject |
sourceEvent
|
Constructor Summary | |
---|---|
DSEGuardCondition()
Creates an instance of type DSEGuardCondition. |
Method Summary | |
---|---|
abstract boolean |
evaluate()
Abstract method to be implemented by implementations of the DSEGuardCondition object. |
Externalizer |
externalizer()
This method gets the externalizer instance used to build. |
boolean |
getConditionResult()
Returns a boolean indicating if the result of the condition is true or false |
Context |
getContext()
Returns the value of the context property. |
java.lang.String |
getName()
Returns the value of the id property. |
java.lang.String |
getNewStateName()
Returns the value of the NewStateName property. |
int |
getOnFalse()
Returns the value of the onFalse property. |
int |
getOnTrue()
Returns the value of the onTrue property. |
DSEEventObject |
getSourceEvent()
Returns the value of the sourceEvent property. |
java.lang.Object |
initializeFrom(Tag aTag)
Method to initialize the guard condition from a Tag, reads in the flow modifiers specified in the external files for onTrue and onFalse, and sets the appropriate fields. |
void |
readExternal()
This method will find the tag that corresponds to the name of THIS entity. |
void |
readExternal(java.io.ObjectInput in)
Invokes the object creation from an ObjectInput. |
void |
removeExternal()
Removes the Externalizer. |
void |
setConditionResult(boolean result)
Sets a boolean indicating if the result of the condition is true or false |
void |
setContext(Context aContext)
Sets the Context for the guardCondition using the parameter (the Action's context). |
void |
setName(java.lang.String aName)
Sets the value of the id property. |
void |
setNewStateName(java.lang.String aName)
Sets the value of the NewStateName property. |
void |
setOnFalse(int newOnFalse)
Sets the value of the onFalse property. |
void |
setOnTrue(int newOnTrue)
Sets the value of the onTrue property. |
void |
setSourceEvent(DSEEventObject newSourceEvent)
Sets the value of the sourceEvent property. |
java.lang.String |
toString()
Returns a String representing the guardcondition. |
Vector |
toStrings()
Returns a Vector with the String representation of the object. |
Vector |
toTags()
Returns a Vector with the object represented as a Tag. |
void |
writeExternal()
Writes this instance (converted into tags) to a file. |
void |
writeExternal(java.io.ObjectOutput out)
Provides concrete serialization handling for DSEGuardCondition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DSEEventObject sourceEvent
protected java.lang.String id
protected java.lang.String newStateNameOnTrue
protected java.lang.String newStateNameOnFalse
protected Context context
protected int onTrue
protected int onFalse
protected boolean conditionResult
public Hashtable parms
public static final java.lang.String ON_TRUE
public static final java.lang.String ON_FALSE
public static final java.lang.String CONTINUE
public static final java.lang.String SKIP_CONDITIONS
public static final java.lang.String SKIP_ACTION
public static final java.lang.String SKIP_ALL_ACTIONS
public static final java.lang.String ABORT_PROCESS
public static final java.lang.String CHANGE_STATE
public static final java.lang.String EXECUTE_ACTION_AND_CHANGESTATE
Constructor Detail |
---|
public DSEGuardCondition()
Method Detail |
---|
public abstract boolean evaluate()
evaluate
in interface GuardCondition
public Externalizer externalizer() throws java.io.IOException
java.lang.IOException
java.io.IOException
public boolean getConditionResult()
getConditionResult
in interface GuardCondition
public Context getContext()
public java.lang.String getName()
public java.lang.String getNewStateName()
getNewStateName
in interface GuardCondition
public int getOnFalse()
getOnFalse
in interface GuardCondition
public int getOnTrue()
getOnTrue
in interface GuardCondition
public DSEEventObject getSourceEvent()
getSourceEvent
in interface GuardCondition
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
aTag
- com.ibm.btt.base.Tag Contains the name and attributes of the
object to be created.
java.io.IOException
- The object can not be created.
DSEException
public void readExternal() throws java.io.IOException
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- java.io.ObjectInput
java.io.IOException
java.lang.ClassNotFoundException
public void removeExternal() throws java.io.IOException
java.lang.IOException
java.io.IOException
public void setConditionResult(boolean result)
setConditionResult
in interface GuardCondition
public void setContext(Context aContext)
setContext
in interface GuardCondition
aContext
- com.ibm.btt.base.Contextpublic void setName(java.lang.String aName)
aName
- java.lang.Stringpublic void setNewStateName(java.lang.String aName)
setNewStateName
in interface GuardCondition
aName
- java.lang.Stringpublic void setOnFalse(int newOnFalse)
setOnFalse
in interface GuardCondition
newOnFalse
- intpublic void setOnTrue(int newOnTrue)
setOnTrue
in interface GuardCondition
newOnTrue
- intpublic void setSourceEvent(DSEEventObject newSourceEvent)
setSourceEvent
in interface GuardCondition
newSourceEvent
- com.ibm.btt.base.DSEEventObjectpublic java.lang.String toString()
toString
in class java.lang.Object
public Vector toStrings()
public Vector toTags() throws java.io.IOException
java.io.IOException
public void writeExternal() throws java.io.IOException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- java.io.ObjectOutput
java.io.IOException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |