All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.bdi.testcases.PrintResultPlan Maven / Gradle / Ivy

Go to download

The Jadex BDI applications package contain several example applications, benchmarks and testcases using BDI agents.

There is a newer version: 2.4
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy