jadex.bridge.component.impl.IMessagePreprocessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-bridge Show documentation
Show all versions of jadex-platform-bridge Show documentation
Jadex bridge is a base package for kernels and platforms, i.e., it is used by both and provides commonly used interfaces and classes for active components and their management.
package jadex.bridge.component.impl;
import jadex.bridge.component.IMsgHeader;
/**
* Allows adding special treatment of certain user message types
* like FIPA messages.
*/
public interface IMessagePreprocessor
{
/**
* Optionally preprocess a message before sending.
* @param header The message header, may be changed by preprocessor.
* @param msg The user object, may be changed by preprocessor.
*/
public void preprocessMessage(IMsgHeader header, T msg);
/**
* Optionally check for reply matches.
* Currently only used in BDIX.
* @param message The initial message object.
* @param reply The replied message object.
* @return true when the reply matches the initial message.
*/
public boolean isReply(T message, T reply);
}