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);
}
}