jadex.bdi.examples.helloworld.TerminateAgentPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bdi Show documentation
Show all versions of jadex-applications-bdi Show documentation
The Jadex BDI applications package contain
several example applications, benchmarks and
testcases using BDI agents.
package jadex.bdi.examples.helloworld;
import jadex.bdi.runtime.Plan;
/**
* The plan body.
*/
public class TerminateAgentPlan extends Plan
{
/**
* The plan body.
*/
public void body()
{
System.out.println("Waiting for 2 secs. Afterwards agent is terminated.");
waitFor(2000);
killAgent();
}
}