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

jadex.micro.servicecall.RawServiceAgent 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.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());
//	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy