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

jadex.bdi.examples.helloworld.HelloWorldPlan Maven / Gradle / Ivy

Go to download

The Jadex BDI applications package contain several example applications, benchmarks and testcases using BDI agents.

There is a newer version: 2.4
Show newest version
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();
	}
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy