jadex.micro.testcases.ProtectedBodyAgent 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;
import jadex.micro.annotation.Agent;
import jadex.micro.annotation.AgentBody;
import jadex.micro.annotation.AgentCreated;
import jadex.micro.annotation.Description;
/**
* Agent with protected body method.
*/
@Agent
@Description("Agent with protected body method.")
public class ProtectedBodyAgent
{
/**
* Init the agent.
*/
@AgentCreated
public void agentCreated()
{
// System.out.println("invoked created");
}
/**
* Perform the tests
*/
@AgentBody
protected void executeBody()
{
System.out.println("invoked body");
}
}