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

jadex.bdi.planlib.protocols.subscribe.SPSubmitUpdatePlan Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.4
Show newest version
package jadex.bdi.planlib.protocols.subscribe;

import jadex.bdi.runtime.IMessageEvent;
import jadex.bdi.runtime.Plan;
import jadex.bridge.fipa.SFipa;

public class SPSubmitUpdatePlan extends Plan
{
	public void body()
	{
		IMessageEvent msg = (IMessageEvent) getParameter("message").getValue();
		IMessageEvent update = getEventbase().createReply(msg, "sp_inform");
		update.getParameter(SFipa.CONTENT).setValue(getParameter("update").getValue());
		sendMessage(update);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy