Class ActionStack

java.lang.Object
edu.tufts.hrilab.action.ActionStack

public class ActionStack extends Object
The ActionStack stores the currently executed steps. It takes care of updating the state machine and locks while hiding the low level implementation details.
  • Constructor Details

    • ActionStack

      public ActionStack(ActionInterpreter a)
      Constructor
      Parameters:
      a - an ActionInterpreter instance
  • Method Details

    • before

      public void before(Context step)
      Adds a step to the action stack before execution
      Parameters:
      step -
    • next

      public Context next()
      Gets the next step from the action stack
      Returns:
      next step