jadex.bridge.component.IMessageFeature 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;
import java.util.Map;
import jadex.bridge.IComponentIdentifier;
import jadex.bridge.IInputConnection;
import jadex.bridge.IOutputConnection;
import jadex.commons.future.IFuture;
/**
* Feature for sending messages and handling incoming messages via handlers.
*/
public interface IMessageFeature
{
/**
* Send a message.
* @param message The message.
* @param receiver The message receiver(s). At least one required unless given in message object (e.g. FipaMessage).
*
*/
public IFuture sendMessage(Object message, IComponentIdentifier... receiver);
/**
* Send a message.
* @param message The message.
* @param addheaderfields Additional header fields.
* @param receiver The message receiver(s). At least one required unless given in message object (e.g. FipaMessage).
*
*/
public IFuture sendMessage(Object message, Map addheaderfields, IComponentIdentifier... receiver);
/**
* Send a message and wait for a reply.
*
* @param receiver The message receiver.
* @param message The message.
*
* @return The reply.
*/
// Todo: intermediate future with multiple receivers?
public IFuture