Class RemoteActionPlan

  • Direct Known Subclasses:
    EatPlan, GetVisionPlan, MovePlan

    public abstract class RemoteActionPlan
    extends Plan
    Offers a methods for interacting with the hunterprey environment.
    • Constructor Detail

      • RemoteActionPlan

        public RemoteActionPlan()
    • Method Detail

      • requestAction

        public IGoal requestAction​(java.lang.Object action)
                            throws jadex.bdiv3.runtime.impl.GoalFailureException
        Request an action from the environment.
        Parameters:
        action - The action.
        Returns:
        The finished goal.
        Throws:
        jadex.bdiv3.runtime.impl.GoalFailureException - when the request goal fails.
      • failed

        public void failed()
        When the plan has failed, assume that environment is down. Remove fact to enable new search for environment.
        Overrides:
        failed in class Plan
      • searchEnvironmentAgent

        protected IComponentIdentifier searchEnvironmentAgent()
        Search the environent agent and store its AID in the beliefbase.