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

jadex.bdi.planlib.protocols.InteractionGoalCreationPlan Maven / Gradle / Ivy

Go to download

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

The newest version!
package jadex.bdi.planlib.protocols;

import jadex.bdiv3.runtime.IGoal;
import jadex.bdiv3x.runtime.Plan;

/**
 *  This plan has the purpose to map incoming
 *  initial protocol message (e.g. a request or CFP)
 *  to a new top-level interaction goal.
 */
public class InteractionGoalCreationPlan extends Plan
{
	/**
	 *  The plan body.
	 */
	public void body()
	{
		IGoal	igoal	= createGoal((String)getParameter("goaltype").getValue());
		igoal.getParameter("message").setValue(getReason());
		dispatchTopLevelGoal(igoal);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy