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

jadex.bdi.testcases.plans.ActivityPlan Maven / Gradle / Ivy

Go to download

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

The newest version!
package jadex.bdi.testcases.plans;

import jadex.bdi.runtime.Plan;

/**
 *  The activity plan waits for a long time
 *  and then prints something again.
 */
public class ActivityPlan extends Plan
{
	//-------- constructors --------

	/**
	 *  Create a new plan.
	 */
	public ActivityPlan()
	{
		getLogger().info("Created: "+this);
	}

	//-------- methods --------

	/**
	 *  The plan body.
	 */
	public void body()
	{
		long time = 10000;
		getLogger().info("Doing some work for "+(time/1000)+" seconds.");
		waitFor(time);
		getLogger().info("Hi I am still alive :-(");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy