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

jadex.bdi.testcases.planlib.ICNPNextroundInfoPlan 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.runtime.Plan;

/**
 *  Decide if the next iteration should be done.
 */
public class ICNPNextroundInfoPlan extends Plan
{
	/**
	 *  The plan body.
	 */
	public void body()
	{
		// Allow at most 3 negotiation rounds and do not alter cfp, cfp_info or participants.
		if(getParameterSet("history").size()<3)
		{
			getParameter("iterate").setValue(Boolean.TRUE);
		}
		else
		{
			getParameter("iterate").setValue(Boolean.FALSE);
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy