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

jadex.gpmn.plan.StartAndMonitorProcessPlan Maven / Gradle / Ivy

Go to download

The Jadex applib BDI package contain ready to use functionalities for BDI agents mostly in form of modules called capabilities.

There is a newer version: 2.4
Show newest version
package jadex.gpmn.plan;

import jadex.bdi.runtime.AgentEvent;
import jadex.bdi.runtime.IGoal;
import jadex.bdi.runtime.IGoalListener;
import jadex.bdi.runtime.Plan;
import jadex.commons.SUtil;

import java.util.ArrayList;
import java.util.List;

/**
 *  Create a process and the corresponding parameters.
 */
public class StartAndMonitorProcessPlan extends Plan
{
	/**
	 *  Plan body.
	 */
	public void body()
	{
		final String[] agoalnames = (String[])getParameterSet("goals").getValues();
		String[] mgoalnames = (String[])getParameterSet("maintain_goals").getValues();

		List mgoals = new ArrayList();
		for(int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy