jadex.bdi.testcases.WorkPlan 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.testcases;
import jadex.bdi.runtime.Plan;
/**
* This plan does some work and prints out sth.
*/
public class WorkPlan extends Plan
{
//-------- constructors --------
/**
* Create a new work plan.
*/
public WorkPlan()
{
getLogger().info("Created: "+this);
}
//-------- methods --------
/**
* The plan body.
*/
public void body()
{
while(true)
{
getLogger().info("Working: "+this);
waitFor(1000);
}
}
/**
* The plan was aborted.
*/
public void aborted()
{
getLogger().info("Aborted: "+this);
}
}