Class FipaMessagePreprocessor

  • All Implemented Interfaces:
    jadex.bridge.component.impl.IMessagePreprocessor<FipaMessage>

    public class FipaMessagePreprocessor
    extends java.lang.Object
    implements jadex.bridge.component.impl.IMessagePreprocessor<FipaMessage>
    Preprocessor fpr FIPA messages.
    • Constructor Detail

      • FipaMessagePreprocessor

        public FipaMessagePreprocessor()
    • Method Detail

      • preprocessMessage

        public void preprocessMessage​(IMsgHeader header,
                                      FipaMessage msg)
        Preprocess a message before sending.
        Specified by:
        preprocessMessage in interface jadex.bridge.component.impl.IMessagePreprocessor<FipaMessage>
        Parameters:
        header - The message header, may be changed by preprocessor.
        msg - The user object, may be changed by preprocessor.
      • isReply

        public boolean isReply​(FipaMessage message,
                               FipaMessage reply)
        Optionally check for reply matches. Currently only used in BDIX.
        Specified by:
        isReply in interface jadex.bridge.component.impl.IMessagePreprocessor<FipaMessage>
        Parameters:
        message - The initial message object.
        reply - The replied message object.
        Returns:
        true when the reply matches the initial message.