jadex.bdi.testcases.plans.MLRPlan 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.
package jadex.bdi.testcases.plans;
import jadex.bdi.runtime.ICandidateInfo;
import jadex.bdi.runtime.Plan;
/**
* Simple meta-level reasoning plan to select among candidates.
*/
public class MLRPlan extends Plan
{
//-------- methods --------
/**
* The plan body.
*/
public void body()
{
ICandidateInfo[] apps = (ICandidateInfo[])getParameterSet("applicables").getValues();
getLogger().info("Meta-level reasoning selects: " + apps[0]);
getParameterSet("result").addValue(apps[0]);
}
}