IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.automaton
Interface GuardCondition

All Known Implementing Classes:
DSEGuardCondition

public interface GuardCondition

Interface for a guardCondition of an Action.

Additional description


Method Summary
 boolean evaluate()
          Evaluate this Assertion.
 boolean getConditionResult()
          Returns a boolean indicating if the result of the condition is true or false
 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.
 void setConditionResult(boolean result)
          Sets a boolean indicating if the result of the condition is true or false
 void setContext(Context aContext)
          Sets the value of the Context property.
 void setNewStateName(java.lang.String aName)
          Sets the value of the newStateName property.
 void setOnFalse(int anAction)
          Sets the value of the OnFalse property.
 void setOnTrue(int anAction)
          Sets the value of the OnTrue property.
 void setSourceEvent(DSEEventObject newSourceEvent)
          Sets the value of the sourceEvent property.
 

Method Detail

evaluate

public boolean evaluate()
Evaluate this Assertion.

Returns:
boolean

getConditionResult

public boolean getConditionResult()
Returns a boolean indicating if the result of the condition is true or false


getNewStateName

public java.lang.String getNewStateName()
Returns the value of the newStateName property.

Returns:
java.lang.String

getOnFalse

public int getOnFalse()
Returns the value of the onFalse property.

Returns:
int

getOnTrue

public int getOnTrue()
Returns the value of the onTrue property.

Returns:
int

getSourceEvent

public DSEEventObject getSourceEvent()
Returns the value of the sourceEvent property.

Returns:
com.ibm.dse.base.DSEEventObject

setConditionResult

public void setConditionResult(boolean result)
Sets a boolean indicating if the result of the condition is true or false


setContext

public void setContext(Context aContext)
Sets the value of the Context property.

Parameters:
aContext - com.ibm.dse.base.Context

setNewStateName

public void setNewStateName(java.lang.String aName)
Sets the value of the newStateName property.

Parameters:
aName - java.lang.String

setOnFalse

public void setOnFalse(int anAction)
Sets the value of the OnFalse property.

Parameters:
anAction - int

setOnTrue

public void setOnTrue(int anAction)
Sets the value of the OnTrue property.

Parameters:
anAction - int

setSourceEvent

public void setSourceEvent(DSEEventObject newSourceEvent)
Sets the value of the sourceEvent property.

Parameters:
newSourceEvent - com.ibm.dse.base.DSEEventObject

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005