jadex.micro.testcases.terminate.ITerminableService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-micro Show documentation
Show all versions of jadex-applications-micro Show documentation
The Jadex micro applications package contains several example applications, benchmarks and testcases using micro agents.
package jadex.micro.testcases.terminate;
import jadex.commons.future.IIntermediateFuture;
import jadex.commons.future.ITerminableFuture;
import jadex.commons.future.ITerminableIntermediateFuture;
/**
* Service interface that returns terminable futures.
*/
public interface ITerminableService
{
/**
* Get the result.
* @param delay The delay that is waited before the result is retured.
* @return The result.
*/
public ITerminableFuture getResult(long delay);
/**
* Get the results.
* @param delay The delay that is waited between intermediate results.
* @return The results.
*/
public ITerminableIntermediateFuture getResults(long delay, int max);
/**
* Be informed when one of the other methods futures is terminated.
* Returns an initial result when this future is registered.
* Is finished, when the terminate action of the other future was called.
*/
public IIntermediateFuture terminateCalled();
}