jadex.bridge.service.component.multiinvoke.SimpleMultiplexDistributor 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.service.component.multiinvoke;
import java.lang.reflect.Method;
import jadex.bridge.service.IService;
import jadex.commons.ConstantFilter;
import jadex.commons.IFilter;
import jadex.commons.Tuple2;
import jadex.commons.future.IIntermediateFuture;
import jadex.commons.future.IntermediateFuture;
/**
* Simple multiplex call distributor.
*
* It determines:
* - which services are called: all services found one time
* - with which arguments: all with the same single argument set
* - when finished: after each service has been called once
*/
public class SimpleMultiplexDistributor implements IMultiplexDistributor
{
/** The method. */
protected Method method;
/** The arguments. */
protected Object[] args;
/** The results. */
protected IntermediateFuture