com.irs.jam
Class TestAction

java.lang.Object
  |
  +--com.irs.jam.Action
        |
        +--com.irs.jam.TestAction
All Implemented Interfaces:
java.io.Serializable

public class TestAction
extends Action
implements java.io.Serializable

A built-in JAM primitive action for evaluating boolean expressions.

See Also:
Serialized Form

Field Summary
protected  Expression _expression
           
 
Fields inherited from class com.irs.jam.Action
_actType, ACT_ACHIEVE, ACT_ASSERT, ACT_ASSIGN, ACT_CANNOT_EXECUTE, ACT_FACT, ACT_FAIL, ACT_FAILED, ACT_GOAL_ACTION, ACT_LOAD, ACT_MAINTAIN, ACT_OBJECT, ACT_PARSE, ACT_PERFORM, ACT_POST, ACT_PRIMITIVE, ACT_QUERY, ACT_RETRACT, ACT_RETRIEVE, ACT_SUCCEEDED, ACT_TEST, ACT_UNDEFINED, ACT_UNPOST, ACT_UPDATE, ACT_WAIT
 
Method Summary
 int execute(Binding b, Goal currentGoal)
          Perform the action's functionality
 void format(java.io.PrintStream s, Binding b)
           
 Expression getExp()
           
 boolean isExecutableAction()
           
 
Methods inherited from class com.irs.jam.Action
getName, getRelation, getTraceFile, getTraceLine, getType, setTrace, setTraceFile, setTraceLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_expression

protected Expression _expression
Method Detail

isExecutableAction

public boolean isExecutableAction()
Overrides:
isExecutableAction in class Action

getExp

public Expression getExp()

execute

public int execute(Binding b,
                   Goal currentGoal)
Description copied from class: Action
Perform the action's functionality
Overrides:
execute in class Action

format

public void format(java.io.PrintStream s,
                   Binding b)
Overrides:
format in class Action