Class AdoptGoalAction

    • Field Detail

      • goal

        protected jadex.bdiv3.runtime.impl.RGoal goal
        The goal.
      • state

        protected jadex.bdiv3.runtime.impl.RPlan.PlanLifecycleState state
        The state.
    • Constructor Detail

      • AdoptGoalAction

        public AdoptGoalAction​(jadex.bdiv3.runtime.impl.RGoal goal)
        Create a new action.
    • Method Detail

      • isValid

        public boolean isValid()
        Test if the action is valid.
        Specified by:
        isValid in interface IConditionalComponentStep<java.lang.Void>
        Returns:
        True, if action is valid.
      • execute

        public IFuture<java.lang.Void> execute​(IInternalAccess ia)
        Execute the command.
        Specified by:
        execute in interface IComponentStep<java.lang.Void>
        Parameters:
        args - The argument(s) for the call.
        Returns:
        The result of the command.
      • adoptGoal

        public static void adoptGoal​(IInternalAccess agent,
                                     jadex.bdiv3.runtime.impl.RGoal goal)
        Adopt a goal.