
jadex.bdi.testcases.plans.MetaLevelReasoningPlan 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.plans;
import jadex.bdi.runtime.ICandidateInfo;
import jadex.bdi.runtime.Plan;
/**
* The meta-level reasoning plan for deciding between
*/
public class MetaLevelReasoningPlan extends Plan
{
//-------- methods --------
/**
* The plan body.
*/
public void body()
{
ICandidateInfo[] apps = (ICandidateInfo[])getParameterSet("applicables").getValues();
getLogger().info("Meta-level reasoning chooses between: ");
for(int i=0; iselval)
{
sel = apps[i];
selval = tmpval;
}
}
getParameterSet("result").addValue(sel);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy