jadex.bdi.testcases.misc.EndStateWorkerTestPlan 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.misc;
import jadex.base.test.TestReport;
import jadex.bdi.runtime.Plan;
/**
* Plan to react to various end elements.
* Type of element is given in content parameter.
*/
public class EndStateWorkerTestPlan extends Plan
{
public void body()
{
String content = (String)getParameter("content").getValue();
TestReport[] reports = (TestReport[])getBeliefbase().getBeliefSet("reports").getFacts();
boolean found = false;
for(int i=0; !found && i