
jadex.bdi.testcases.semiautomatic.ConditionPlan 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.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