com.irs.jam
Class ObjectAction
java.lang.Object
|
+--com.irs.jam.Action
|
+--com.irs.jam.ObjectAction
- All Implemented Interfaces:
- java.io.Serializable
- public class ObjectAction
- extends Action
- implements java.io.Serializable
A simple (non-decomposable) member function action within a plan
- See Also:
- Serialized Form
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_functionName
protected java.lang.String _functionName
_arity
protected int _arity
_object
protected Variable _object
_args
protected ExpList _args
isExecutableAction
public boolean isExecutableAction()
- Overrides:
isExecutableAction
in class Action
getArity
public int getArity()
getArgs
public ExpList getArgs()
execute
public int execute(Binding b,
Goal currentGoal)
- Find and invoke the class' method
- Overrides:
execute
in class Action
format
public void format(java.io.PrintStream s,
Binding b)
- Output action information considering that it may be in-line
with other information.
- Overrides:
format
in class Action