com.irs.jam
Class PlanRuntimeGoalState

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

public class PlanRuntimeGoalState
extends PlanRuntimeState
implements java.io.Serializable

Represents a subgoaling construct

See Also:
Serialized Form

Field Summary
protected  Goal _subgoal
           
 
Fields inherited from class com.irs.jam.PlanRuntimeState
_substate, _thisConstruct, PLAN_CONSTRUCT_COMPLETE, PLAN_CONSTRUCT_FAILED, PLAN_CONSTRUCT_INCOMP
 
Constructor Summary
PlanRuntimeGoalState(PlanSimpleConstruct se)
          Constructor w/ goal specifier as argument
 
Method Summary
 int execute(Binding b, Goal thisGoal, Goal prevGoal)
          Find an applicable plan if necessary and execute the plan if it exists.
 Goal getSubgoal()
           
 void intend(APLElement ae)
          Add an intention to the agent's Intention Structure
 Goal setSubgoal(Goal g)
           
 
Methods inherited from class com.irs.jam.PlanRuntimeState
getSubstate, getThisConstruct, setSubstate, setThisConstruct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_subgoal

protected Goal _subgoal
Constructor Detail

PlanRuntimeGoalState

public PlanRuntimeGoalState(PlanSimpleConstruct se)
Constructor w/ goal specifier as argument
Method Detail

getSubgoal

public Goal getSubgoal()

setSubgoal

public Goal setSubgoal(Goal g)

execute

public int execute(Binding b,
                   Goal thisGoal,
                   Goal prevGoal)
Find an applicable plan if necessary and execute the plan if it exists. Also, deal with plan/subgoal failure and success appropriately.
Overrides:
execute in class PlanRuntimeState

intend

public void intend(APLElement ae)
Add an intention to the agent's Intention Structure
Overrides:
intend in class PlanRuntimeState