jadex.bdi.testcases.misc.BeliefChangeCatchPlan 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;
/**
* Test if plan can be invoked when trigger is added dynamically at runtime.
*/
public class BeliefChangeCatchPlan extends Plan
{
/**
* The body method is called on the
* instatiated plan instance from the scheduler.
*/
public void body()
{
getLogger().info("Plan invoked.");
getBeliefbase().getBelief("invoked").setFact(new Boolean(true));
}
}