Class ExecutePlanStepAction

java.lang.Object
jadex.bdi.runtime.impl.ExecutePlanStepAction
All Implemented Interfaces:
Runnable

public class ExecutePlanStepAction extends Object implements Runnable
Action for executing a plan step.
  • Field Details

    • rplan

      protected RPlan rplan
      The plan.
  • Constructor Details

    • ExecutePlanStepAction

      public ExecutePlanStepAction(RPlan rplan)
      Create a new action.
  • Method Details

    • isValid

      public boolean isValid()
      Test if the action is valid.
      Returns:
      True, if action is valid.
    • run

      public void run()
      Execute the command.
      Specified by:
      run in interface Runnable
    • getRPlan

      public RPlan getRPlan()
      Get the rplan.
    • checkContextCondition

      protected boolean checkContextCondition()
      Check the context condition.
      Returns:
      True if context is ok.
    • toString

      public String toString()
      Return a string.
      Overrides:
      toString in class Object