Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package jadex.bdi.planlib.protocols.subscribe;
 
 
 public class SPInitiationPlan extends Plan
 {
 	public void body()
	{
		IMessageEvent subReq = createMessageEvent("sp_subscribe");
		subReq.getParameterSet("receivers").addValue(getParameter("receiver").getValue());
		if(getParameter("language").getValue()!=null)
			subReq.getParameter("language").setValue(getParameter("language").getValue());
		if(getParameter("ontology").getValue()!=null)
			subReq.getParameter("ontology").setValue(getParameter("ontology").getValue());
		if(getParameter("conversation_id").getValue()!=null)
			subReq.getParameter("conversation_id").setValue(getParameter("conversation_id").getValue());
		IMessageEvent reply = sendMessageAndWait(subReq);
			fail();
	}
New to GrepCode? Check out our FAQ X