Class WaitAbstraction


  • public class WaitAbstraction
    extends java.lang.Object
    Object that indicates on which elements a plan is waiting.
    • Field Detail

      • modelelements

        protected java.util.Set<MElement> modelelements
        The model elements.
      • runtimeelements

        protected java.util.Set<jadex.bdiv3.runtime.impl.RElement> runtimeelements
        The runtime elements.
      • changeeventtypes

        protected java.util.Set<java.lang.String> changeeventtypes
        The event types.
      • replyelements

        protected java.util.Set<RMessageEvent<?>> replyelements
        The reply elements.
    • Constructor Detail

      • WaitAbstraction

        public WaitAbstraction()
    • Method Detail

      • addReply

        public <T> void addReply​(RMessageEvent<T> event,
                                 java.util.Set<MMessageEvent> mevents)
        Add a message event reply.
        Parameters:
        me - The message event.
        mevents - Allowed message templates (null for any).
      • removeReply

        public void removeReply​(RMessageEvent event)
        Add a message event reply.
        Parameters:
        me - The message event.
      • addModelElement

        public void addModelElement​(MElement melement)
      • removeModelElement

        public void removeModelElement​(MElement melement)
      • addRuntimeElement

        public void addRuntimeElement​(jadex.bdiv3.runtime.impl.RElement relement)
      • removeRuntimeElement

        public void removeRuntimeElement​(jadex.bdiv3.runtime.impl.RElement relement)
      • addChangeEventType

        public void addChangeEventType​(java.lang.String eventtype)
      • removeChangeEventType

        public void removeChangeEventType​(java.lang.String eventtype)
      • getChangeeventtypes

        public java.util.Set<java.lang.String> getChangeeventtypes()
        Get the change event types.
        Returns:
        The changeeventtypes
      • isWaitingFor

        public boolean isWaitingFor​(java.lang.Object procelem)
        Test if this wait abstraction is waiting for the element.