Interface IExternalBDIAgentFeature

    • Method Detail

      • dispatchTopLevelGoal

        <T,​E> IFuture<E> dispatchTopLevelGoal​(T goal)
        Dispatch a pojo goal wait for its result.
        Parameters:
        goal - The pojo goal.
        Returns:
        The goal result.
      • adoptPlan

        <T,​E> IFuture<E> adoptPlan​(T plan)
        Dispatch a pojo plan and wait for its result.
        Parameters:
        plan - The pojo plan or plan name.
        Returns:
        The plan result, i.e. the return value of the plan body method, if any.
      • adoptPlan

        <T,​E> IFuture<E> adoptPlan​(T plan,
                                         java.lang.Object... args)
        Dispatch a goal wait for its result.
        Parameters:
        plan - The pojo plan or plan name.
        args - The plan arguments.
        Returns:
        The plan result, i.e. the return value of the plan body method, if any.