jadex.bdi.planlib.protocols.subscribe.SPSubmitUpdatePlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applib-bdi Show documentation
Show all versions of jadex-applib-bdi Show documentation
The Jadex applib BDI package contain
ready to use functionalities for
BDI agents mostly in form of modules
called capabilities.
package jadex.bdi.planlib.protocols.subscribe;
import jadex.base.fipa.SFipa;
import jadex.bdi.runtime.IMessageEvent;
import jadex.bdi.runtime.Plan;
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