jadex.bridge.service.component.multiinvoke.SequentialMultiplexDistributor 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 java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import jadex.bridge.service.IService;
import jadex.commons.IFilter;
import jadex.commons.SReflect;
import jadex.commons.Tuple2;
import jadex.commons.future.Future;
import jadex.commons.future.IFuture;
import jadex.commons.future.IIntermediateFuture;
import jadex.commons.future.IResultListener;
/**
* Sequential call distributor.
*
* It determines:
* - which services are called: services are called as long as arguments are available
* - with which arguments: each argument array once
* - when finished: after all arguments have been used
*/
public class SequentialMultiplexDistributor extends SimpleMultiplexDistributor
{
/** The arguments. */
protected Iterator