All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.bridge.component.impl.IMessagePreprocessor Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.267
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy