jadex.bdi.testcases.semiautomatic.ErrorPlan 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.semiautomatic;
import jadex.bdi.runtime.IGoal;
import jadex.bdi.runtime.Plan;
/**
* This plan performs an illegal action.
*/
public class ErrorPlan extends Plan
{
/**
* The plan body.
*/
public void body()
{
// IGoal goal = getExternalAccess().createGoal("testgoal");
// getExternalAccess().dispatchTopLevelGoal(goal);
// getExternalAccess().dispatchTopLevelGoal(goal);
IGoal goal = createGoal("testgoal");
dispatchTopLevelGoal(goal);
dispatchTopLevelGoal(goal);
}
}