Class RMessageEvent<T>

    • Field Detail

      • msg

        protected T msg
        The message.
    • Method Detail

      • initParameters

        public void initParameters​(java.util.Map<java.lang.String,​java.lang.Object> vals,
                                   MConfigParameterElement config)
        Create the parameters from model spec.
        Overrides:
        initParameters in class jadex.bdiv3.runtime.impl.RParameterElement
      • getFetcherName

        public java.lang.String getFetcherName()
        Get the name of the element in the fetcher (e.g. $goal).
        Specified by:
        getFetcherName in class jadex.bdiv3.runtime.impl.RParameterElement
        Returns:
        The element name in the fetcher name.
      • createParameter

        public IParameter createParameter​(MParameter modelelement,
                                          java.lang.String name,
                                          IInternalAccess agent,
                                          java.lang.Object value)
        Overrides:
        createParameter in class jadex.bdiv3.runtime.impl.RParameterElement
      • createParameterSet

        public IParameterSet createParameterSet​(MParameter modelelement,
                                                java.lang.String name,
                                                IInternalAccess agent,
                                                java.lang.Object values)
        Overrides:
        createParameterSet in class jadex.bdiv3.runtime.impl.RParameterElement
      • hasParameter

        public boolean hasParameter​(java.lang.String name)
        Has the element a parameter element.
        Specified by:
        hasParameter in interface IParameterElement
        Overrides:
        hasParameter in class jadex.bdiv3.runtime.impl.RParameterElement
        Parameters:
        name - The name.
        Returns:
        True, if it has the parameter.
      • hasParameterSet

        public boolean hasParameterSet​(java.lang.String name)
        Has the element a parameter set element.
        Specified by:
        hasParameterSet in interface IParameterElement
        Overrides:
        hasParameterSet in class jadex.bdiv3.runtime.impl.RParameterElement
        Parameters:
        name - The name.
        Returns:
        True, if it has the parameter set.
      • getParameter

        public IParameter getParameter​(java.lang.String name)
        Get the parameter element.
        Specified by:
        getParameter in interface IParameterElement
        Overrides:
        getParameter in class jadex.bdiv3.runtime.impl.RParameterElement
        Parameters:
        name - The name.
        Returns:
        The param.
      • getParameterSet

        public IParameterSet getParameterSet​(java.lang.String name)
        Get the parameter set element.
        Specified by:
        getParameterSet in interface IParameterElement
        Overrides:
        getParameterSet in class jadex.bdiv3.runtime.impl.RParameterElement
        Parameters:
        name - The name.
        Returns:
        The param set.
      • getMessage

        public T getMessage()
        Get the native (platform specific) message object.
        Specified by:
        getMessage in interface IMessageEvent<T>
        Returns:
        The native message.
      • getOriginal

        public RMessageEvent<T> getOriginal()
        Get the original message event (if this is a reply).
      • toString

        public java.lang.String toString()
        Get the string represntation.
        Overrides:
        toString in class jadex.bdiv3.runtime.impl.RElement
      • findBeanProperty

        protected BeanProperty findBeanProperty​(java.lang.String name)
      • isAdopted

        public boolean isAdopted()
        Check if the element is currently part of the agent's reasoning. E.g. the bases are always adopted and all of their contents such as goals, plans and beliefs.
        Specified by:
        isAdopted in class jadex.bdiv3.runtime.impl.RParameterElement