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

jadex.micro.testcases.semiautomatic.compositeservice.CalculatorAgent 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.semiautomatic.compositeservice;

import jadex.micro.annotation.Agent;
import jadex.micro.annotation.Description;
import jadex.micro.annotation.Implementation;
import jadex.micro.annotation.ProvidedService;
import jadex.micro.annotation.ProvidedServices;

/**
 *  Calculator component that provides all services by itself.  
 */
@Description("This agent is a minimal calculator.")
@ProvidedServices({
	//@ProvidedService(type=IAddService.class, expression="new AddService($component)"),
	@ProvidedService(type=IAddService.class, implementation=@Implementation(PojoAddService.class)),
	@ProvidedService(type=ISubService.class, implementation=@Implementation(expression="new SubService($component)"))
})
@Agent
public class CalculatorAgent
{
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy