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

jadex.bdi.testcases.semiautomatic.ConditionPlan Maven / Gradle / Ivy

Go to download

The Jadex BDI applications package contain several example applications, benchmarks and testcases using BDI agents.

The newest version!
package jadex.bdi.testcases.semiautomatic;

import jadex.bdi.runtime.Plan;

/**
 *  Plan to continuously wait for a condition.
 */
public class ConditionPlan extends Plan
{
	public void body()
	{
		while(true)
		{
			System.out.println("waiting...");
			long start = getClock().getTime();
			waitForCondition("five_seconds");
			long end = getClock().getTime();
			
			System.out.println("woken up: "+(end-start));
		} 
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy