|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.automaton.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()
public Externalizer externalizer() throws java.io.IOException
public boolean getConditionResult()
public Context getContext()
public java.lang.String getName()
public java.lang.String getNewStateName()
public int getOnFalse()
public int getOnTrue()
public DSEEventObject getSourceEvent()
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
aTag
- com.ibm.dse.base.Tag Contains the name and attributes of the object to be created.public void readExternal() throws java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- java.io.ObjectInputpublic void removeExternal() throws java.io.IOException
public void setConditionResult(boolean result)
public void setContext(Context aContext)
aContext
- com.ibm.dse.base.Contextpublic void setName(java.lang.String aName)
aName
- java.lang.Stringpublic void setNewStateName(java.lang.String aName)
aName
- java.lang.Stringpublic void setOnFalse(int newOnFalse)
newOnFalse
- intpublic void setOnTrue(int newOnTrue)
newOnTrue
- intpublic void setSourceEvent(DSEEventObject newSourceEvent)
newSourceEvent
- com.ibm.dse.base.DSEEventObjectpublic java.lang.String toString()
public Vector toStrings()
public Vector toTags() throws java.io.IOException
public void writeExternal() throws java.io.IOException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
out
- java.io.ObjectOutput
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |