package jadex.bdi.planlib.protocols; import jadex.bdi.runtime.IGoal; import jadex.bdi.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); } }