
jadex.bdi.testcases.misc.RepeatabilityPlan 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.
The newest version!
package jadex.bdi.testcases.misc;
import jadex.bdi.runtime.Plan;
/**
* Change some beliefs and belief sets in an atomic block,
* to trigger several conditions.
*/
public class RepeatabilityPlan extends Plan
{
/**
* The plan body.
*/
public void body()
{
startAtomic();
getBeliefbase().getBelief("a").setFact("test");
getBeliefbase().getBelief("b").setFact("test");
getBeliefbase().getBeliefSet("c").addFact("test");
getBeliefbase().getBeliefSet("d").addFact("test");
endAtomic();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy