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

jadex.bdi.testcases.plans.BeliefSetAddPlan 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.plans;

import jadex.bdi.runtime.Plan;

/**
 *  Add a fact to a belief set.
 */
public class BeliefSetAddPlan extends Plan
{
	/**
	 * The body method is called on the
	 * instatiated plan instance from the scheduler.
	 */
	public void body()
	{
		int i=0;
		while(true)
		{
			waitFor(100);
			getBeliefbase().getBeliefSet("some_numbers").addFact(new Integer(i++));
			//getBeliefbase().getBeliefSet("some_numbers").removeFact(new Integer(i++));
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy