jadex.bdi.planlib.protocols.InteractionGoalCreationPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-applib-bdi Show documentation
Show all versions of jadex-applications-applib-bdi Show documentation
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