jadex.bdi.testcases.PrintResultPlan 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;
import jadex.bdi.runtime.Plan;
/**
* Print results to some output
*/
public class PrintResultPlan extends Plan
{
//-------- attributes --------
/** The result. */
protected Object result;
//-------- constructors --------
/**
* Create a new plan.
*/
public PrintResultPlan()
{
// System.out.println("create: "+getRPlan());
this.result = getParameter("result").getValue();
}
//-------- methods --------
/**
* The plan body.
*/
public void body()
{
// System.out.println("body: "+getRPlan());
getLogger().info(""+result);
}
}