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

jadex.micro.testcases.servicequeries.ProviderAgent 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.servicequeries;

import jadex.bridge.service.annotation.Service;
import jadex.commons.future.Future;
import jadex.commons.future.IFuture;
import jadex.micro.annotation.Agent;
import jadex.micro.annotation.ProvidedService;
import jadex.micro.annotation.ProvidedServices;

/**
 *  Agent that provides the example service. 
 */
@Agent
@Service
@ProvidedServices(@ProvidedService(type=IExampleService.class))//, scope=RequiredServiceInfo.SCOPE_APPLICATION))
public class ProviderAgent implements IExampleService
{
	/**
	 *  An example method.
	 */
	public IFuture getInfo()
	{
		return new Future("info");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy