jadex.bdi.benchmarks.RequestMasterPlan 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.
package jadex.bdi.benchmarks;
import jadex.bdi.runtime.Plan;
import jadex.bridge.service.types.cms.CreationInfo;
import jadex.bridge.service.types.cms.IComponentManagementService;
import java.util.HashMap;
import java.util.Map;
/**
* Start the partner agent.
*/
public class RequestMasterPlan extends Plan
{
public void body()
{
Map args = new HashMap();
args.put("master", Boolean.FALSE);
args.put("max", getBeliefbase().getBelief("max").getFact());
args.put("receiver", getComponentIdentifier());
IComponentManagementService ces = (IComponentManagementService)getServiceContainer().getRequiredService("cms").get(this);
ces.createComponent(null, "jadex/bdi/benchmarks/RequestPerformance.agent.xml", new CreationInfo("default", args, getComponentIdentifier()), null);
}
}