jadex.bdi.testcases.misc.EndStateInitiatorPlan 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.bdi.runtime.Plan;
/**
* Check correct operation of end states.
*/
public class EndStateInitiatorPlan extends Plan
{
/**
* Plan body.
*/
public void body()
{
// Set belief to true to trigger creation of goal.
// Will be checked in worker plan.
getBeliefbase().getBelief("trigger").setFact(Boolean.TRUE);
waitFor(300);
// Kill agent to start end state.
killAgent();
}
}