Class AdoptGoalAction

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

public class AdoptGoalAction extends Object implements Runnable
Action for adopting a goal.
  • Field Details

  • Constructor Details

    • AdoptGoalAction

      public AdoptGoalAction(RGoal goal)
      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
      Parameters:
      args - The argument(s) for the call.
    • adoptGoal

      public static void adoptGoal(RGoal goal)
      Adopt a goal.