com.irs.jam
Class RetrieveAction

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

public class RetrieveAction
extends WorldModelAction
implements java.io.Serializable

A built-in JAM primitive action for binding plan variables with world model entries. This is similar to a FactAction, but passed-in variables bindings are NOT used for matching. Rather, the variables are overwritten with data from the world model whenever any world model entry exists with the given name.

See Also:
Serialized Form

Fields inherited from class com.irs.jam.WorldModelAction
_interpreter, _relation
 
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)
          Retrieve the relation from the World Model.
 void format(java.io.PrintStream s, Binding b)
          Output information to the stream in an in-line manner.
 boolean isExecutableAction()
           
 
Methods inherited from class com.irs.jam.WorldModelAction
getInterpreter, getRelation
 
Methods inherited from class com.irs.jam.Action
getName, getTraceFile, getTraceLine, getType, setTrace, setTraceFile, setTraceLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isExecutableAction

public boolean isExecutableAction()
Overrides:
isExecutableAction in class Action

execute

public int execute(Binding b,
                   Goal currentGoal)
Retrieve the relation from the World Model.
Overrides:
execute in class WorldModelAction

format

public void format(java.io.PrintStream s,
                   Binding b)
Output information to the stream in an in-line manner.
Overrides:
format in class Action