Class REventbase

  • All Implemented Interfaces:
    IElement, IEventbase

    public class REventbase
    extends jadex.bdiv3.runtime.impl.RElement
    implements IEventbase
    The event base runtime element.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String scope
      The scope (for local views).
      • Fields inherited from class jadex.bdiv3.runtime.impl.RElement

        agent, cnt, id, modelelement
    • Constructor Summary

      Constructors 
      Constructor Description
      REventbase​(IInternalAccess agent, java.lang.String scope)
      Create a new goalbase.
    • Field Detail

      • scope

        protected java.lang.String scope
        The scope (for local views).
    • Constructor Detail

      • REventbase

        public REventbase​(IInternalAccess agent,
                          java.lang.String scope)
        Create a new goalbase.
    • Method Detail

      • sendMessage

        public IFuture<java.lang.Void> sendMessage​(IMessageEvent<?> me)
        Send a message after some delay.
        Specified by:
        sendMessage in interface IEventbase
        Parameters:
        me - The message event.
        Returns:
        The filter to wait for an answer.
      • createMessageEvent

        public IMessageEvent createMessageEvent​(java.lang.String type)
        Create a new message event.
        Specified by:
        createMessageEvent in interface IEventbase
        Returns:
        The new message event.
      • createReply

        public <T> IMessageEvent<T> createReply​(IMessageEvent<T> event,
                                                java.lang.String type)
        Create a reply to a message event.
        Specified by:
        createReply in interface IEventbase
        Parameters:
        event - The received message event.
        type - The reply message event type.
        Returns:
        The reply event.