jadex.micro.servicecall.RawServiceAgent 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.servicecall;
import jadex.bridge.sensor.service.TagProperty;
import jadex.micro.annotation.Agent;
import jadex.micro.annotation.Argument;
import jadex.micro.annotation.Arguments;
import jadex.micro.annotation.Implementation;
import jadex.micro.annotation.ProvidedService;
import jadex.micro.annotation.ProvidedServices;
/**
* Agent providing a raw service.
*/
@Arguments(@Argument(name=TagProperty.NAME, clazz=String.class, defaultvalue="\"raw\""))
@ProvidedServices(@ProvidedService(type=IServiceCallService.class,
implementation=@Implementation(expression="new RawServiceCallService($component.getComponentIdentifier())",
proxytype=Implementation.PROXYTYPE_RAW)))
@Agent
public class RawServiceAgent
{
// @Agent
// protected IInternalAccess agent;
//
// @AgentKilled
// public void killed()
// {
// System.out.println("killing: "+agent.getComponentIdentifier());
// }
}