
jadex.bdi.testcases.semiautomatic.ServiceReasonPlan 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;
/**
* Reason about an incoming service call.
*/
public class ServiceReasonPlan extends Plan
{
/**
* The plan body.
*/
public void body()
{
if(Math.random()>0.5)
{
System.out.println("reason true");
getParameter("execute").setValue(true);
}
else
{
System.out.println("reason false");
getParameter("execute").setValue(false);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy