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

jadex.bridge.service.component.multiinvoke.IMultiplexDistributor 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.service.component.multiinvoke;

import java.lang.reflect.Method;

import jadex.bridge.service.IService;
import jadex.commons.IFilter;
import jadex.commons.Tuple2;
import jadex.commons.future.IIntermediateFuture;

/**
 *  Interface for multiplex call distributor.
 *  
 *  It is fed with:
 *  - the services found one by one (addService)
 *  - when the search has finished (serviceSearchFinished) 
 *  
 *  It determines:
 *  - which services are called
 *  - with which arguments
 *  - when finished
 */
public interface IMultiplexDistributor
{
	/**
	 *  Init the call distributor.
	 */
	public IIntermediateFuture init(Method method, Object[] args, 
		IFilter> filter, IParameterConverter conv);
	
	/**
	 *  Add a new service.
	 *  @param service The service.
	 */
	public void addService(IService service);
	
	/**
	 *  Search for services has finished.
	 */
	public void serviceSearchFinished();
	
}