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

jadex.bdi.testcases.semiautomatic.ErrorPlan Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.4
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy