jadex.micro.testcases.nfproperties.NFPropertyTestService 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.testcases.nfproperties;
import jadex.bridge.nonfunctional.annotation.NFProperties;
import jadex.bridge.nonfunctional.annotation.NFProperty;
import jadex.bridge.service.annotation.Service;
import jadex.bridge.service.annotation.ServiceStart;
import jadex.commons.future.IFuture;
/**
* Service with nf props.
*/
@Service
public class NFPropertyTestService implements ICoreDependentService
{
/**
* Init method.
*/
@ServiceStart
public IFuture x()
{
// System.out.println("SSTASD");
return IFuture.DONE;
}
/**
* Example method.
*/
@NFProperties(@NFProperty(name="methodspeed", value=MethodSpeedProperty.class))
public IFuture testMethod()
{
return IFuture.DONE;
}
}