Class Plan.PlanWaitAbstraction

  • Enclosing class:
    Plan

    public class Plan.PlanWaitAbstraction
    extends java.lang.Object
    The plan wait abstraction extends wait abstraction with convenience methods.
    • Constructor Detail

      • PlanWaitAbstraction

        public PlanWaitAbstraction()
    • Method Detail

      • getWaitAbstraction

        protected WaitAbstraction getWaitAbstraction()
        Get the plan waitqueue waitabstraction.
      • addInternalEvent

        public void addInternalEvent​(java.lang.String event)
        Add an internal event.
        Parameters:
        type - The type.
      • removeInternalEvent

        public void removeInternalEvent​(java.lang.String event)
        Remove an internal event.
        Parameters:
        type - The type.
      • addMessageEvent

        public void addMessageEvent​(java.lang.String event)
        Add a message event.
        Parameters:
        type - The type.
      • removeMessageEvent

        public void removeMessageEvent​(java.lang.String event)
        Remove a message event.
        Parameters:
        type - The type.
      • addGoalFinished

        public void addGoalFinished​(IGoal goal)
        Add the goal to wait for.
      • removeGoalFinished

        public void removeGoalFinished​(IGoal goal)
        Remove the goal to wait for.
      • addGoalFinished

        public void addGoalFinished​(java.lang.String type)
        Add the goal to wait for.
      • removeGoalFinished

        public void removeGoalFinished​(java.lang.String type)
        Remove the goal to wait for.
      • addFactChanged

        public void addFactChanged​(java.lang.String beliefset)
        Add a fact changed.
        Parameters:
        belief - The belief.
      • addFactAdded

        public void addFactAdded​(java.lang.String beliefset)
        Add a fact added.
        Parameters:
        beliefset - The beliefset.
      • addFactRemoved

        public void addFactRemoved​(java.lang.String beliefset)
        Add a fact removed.
        Parameters:
        beliefset - The beliefset.
      • addBeliefChanged

        public void addBeliefChanged​(java.lang.String belief)
        Add a belief change type.
        Parameters:
        belief - The belief.
      • addMessageEvent

        public void addMessageEvent​(MMessageEvent mevent)
        Add a message event.
        Parameters:
        type - The type.
      • addReply

        public void addReply​(IMessageEvent mevent)
        Add a message event reply.
        Parameters:
        me - The message event.
      • addInternalEvent

        public void addInternalEvent​(MInternalEvent mevent)
        Add an internal event.
        Parameters:
        type - The type.
      • removeFactChanged

        public void removeFactChanged​(java.lang.String beliefset)
        Remove a fact changed.
        Parameters:
        belief - The belief.
      • removeFactAdded

        public void removeFactAdded​(java.lang.String beliefset)
        Remove a fact added.
        Parameters:
        beliefset - The beliefset.
      • removeFactRemoved

        public void removeFactRemoved​(java.lang.String beliefset)
        Remove a fact removed.
        Parameters:
        beliefset - The beliefset.
      • removeBeliefChanged

        public void removeBeliefChanged​(java.lang.String belief)
        Remove a belief change type.
        Parameters:
        belief - The belief.
      • removeMessageEvent

        public void removeMessageEvent​(MMessageEvent mevent)
        Remove a message event.
        Parameters:
        type - The type.
      • removeReply

        public void removeReply​(IMessageEvent me)
        Remove a message event reply.
        Parameters:
        me - The message event.
      • addRuntimeElement

        public void addRuntimeElement​(jadex.bdiv3.runtime.impl.RElement relement)
        Add a runtime element.
        Parameters:
        relement - The runtime element.
      • removeRuntimeElement

        public void removeRuntimeElement​(jadex.bdiv3.runtime.impl.RElement relement)
        Remove a runtime element.
        Parameters:
        relement - The runtime element.
      • addChangeEventType

        protected void addChangeEventType​(java.lang.String eventtype)
        Add a change event type.
        Parameters:
        eventtype - The change event type.
      • removeChangeEventType

        protected void removeChangeEventType​(java.lang.String eventtype)
        Remove a change event type.
        Parameters:
        eventtype - The change event type.
      • isEmpty

        public boolean isEmpty()
        Test if waitqueue is empty.
      • getElements

        public java.lang.Object[] getElements()
        Get the currently contained elements of the waitqueue.
        Returns:
        The collected elements.