com.irs.jam
Class PlanRuntimeDoAllState

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

public class PlanRuntimeDoAllState
extends PlanRuntimeState
implements java.io.Serializable

Represents the runtime state of DoAll constructs

See Also:
Serialized Form

Field Summary
protected  int _activeBranchNum
           
protected  java.util.Vector _branchesLeft
           
 
Fields inherited from class com.irs.jam.PlanRuntimeState
_substate, _thisConstruct, PLAN_CONSTRUCT_COMPLETE, PLAN_CONSTRUCT_FAILED, PLAN_CONSTRUCT_INCOMP
 
Constructor Summary
PlanRuntimeDoAllState(PlanDoAllConstruct be)
           
 
Method Summary
 int execute(Binding b, Goal thisGoal, Goal prevGoal)
          Execute something in one of the branches
 int getActiveBranchNum()
           
 void setActiveBranchNum(int n)
          Set which branch is being executed and keep within bounds.
 
Methods inherited from class com.irs.jam.PlanRuntimeState
getSubstate, getThisConstruct, intend, setSubstate, setThisConstruct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_activeBranchNum

protected int _activeBranchNum

_branchesLeft

protected java.util.Vector _branchesLeft
Constructor Detail

PlanRuntimeDoAllState

public PlanRuntimeDoAllState(PlanDoAllConstruct be)
Method Detail

getActiveBranchNum

public int getActiveBranchNum()

execute

public int execute(Binding b,
                   Goal thisGoal,
                   Goal prevGoal)
Execute something in one of the branches
Overrides:
execute in class PlanRuntimeState

setActiveBranchNum

public void setActiveBranchNum(int n)
Set which branch is being executed and keep within bounds.