Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package jadex.bdi.planlib.protocols.subscribe;
 
 
 public class SPReceptionPlan extends Plan
 {
	public void body()
	{
		IMessageEvent reply = getEventbase().createReply(msg"sp_agree");
		sendMessage(reply);
		IGoal startSub = createGoal("sp_start_subscription");
		startSub.getParameter("initiator").setValue(msg.getParameter(.).getValue());
		startSub.getParameter("subscription_id").setValue(msg);
		startSub.getParameter("subscription").setValue(msg.getParameter(.).getValue());
	}
New to GrepCode? Check out our FAQ X