
jadex.bdi.testcases.planlib.EADecideParticipationPlan 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.planlib;
import jadex.bdi.planlib.protocols.AuctionDescription;
import jadex.bdi.runtime.Plan;
/**
* Decide on participation.
*/
public class EADecideParticipationPlan 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(Boolean.valueOf(participate));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy