jadex.gpmn.plan.StartAndMonitorProcessPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applib-bdi Show documentation
Show all versions of jadex-applib-bdi Show documentation
The Jadex applib BDI package contain
ready to use functionalities for
BDI agents mostly in form of modules
called capabilities.
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