
jadex.bdi.testcases.planlib.EATestPlan 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.base.test.TestReport;
import jadex.bdi.planlib.protocols.AuctionDescription;
import jadex.bdi.planlib.protocols.ExponentialPriceCalculator;
import jadex.bdi.runtime.GoalFailureException;
import jadex.bdi.runtime.IGoal;
import jadex.bdi.testcases.AbstractMultipleAgentsPlan;
import jadex.bridge.IComponentIdentifier;
import jadex.commons.SUtil;
import jadex.commons.collection.SCollection;
import java.util.List;
import java.util.Map;
/**
* Tests the english auction protocol with one initiator and four bidders with
* different price-strategies.
*/
public class EATestPlan extends AbstractMultipleAgentsPlan
{
/**
* The body method is called on the instatiated plan instance from the
* scheduler.
*/
public void body()
{
// The round timeout, if the testcase fails, adjust it according to the
// speed of your pc.
long roundtimeout = 1000;
// Create 4 bidders
Map[] args = new Map[4];
//Map[] args = new Map[1];
for(int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy