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

jadex.bdi.testcases.planlib.DADecideParticipationPlan 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.planlib;

import jadex.bdi.planlib.protocols.AuctionDescription;
import jadex.bdi.runtime.Plan;


/**
 * Decide on participation.
 */
public class DADecideParticipationPlan extends Plan
{
	/**
	 *  The plan body.
	 */
	public void body()
	{
		boolean participate = ((Boolean)getBeliefbase().getBelief("participate").getFact()).booleanValue();
		getLogger().info(getComponentName()+" deciding on participation in auction "
			+((AuctionDescription)getParameter("auction_description").getValue()).getTopic()+" "+participate);
		getParameter("participate").setValue(new Boolean(participate));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy