jadex.bdi.examples.helloworld.HelloWorldPlan 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 hello world plan prints out a short welcome message.
*/
public class HelloWorldPlan extends Plan
{
//-------- methods --------
/**
* Handle the ping request.
*/
public void body()
{
System.out.println("\nHello world!");
waitFor(2000);
System.out.println("\n"+getBeliefbase().getBelief("msg").getFact());
waitFor(2000);
System.out.println("\nSee you. Bye! ");
killAgent();
}
}