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

jadex.micro.testcases.terminate.ITerminableService Maven / Gradle / Ivy

Go to download

The Jadex micro applications package contains several example applications, benchmarks and testcases using micro agents.

There is a newer version: 4.0.267
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy