
jadex.bdi.testcases.plans.ActivityPlan 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.
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