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

jadex.bdi.planlib.ping.AnswerPingPlan Maven / Gradle / Ivy

Go to download

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

The newest version!
package jadex.bdi.planlib.ping;

import jadex.bdiv3x.runtime.Plan;

/**
 *  The ping plan reacts on ping requests.
 */
public class AnswerPingPlan extends Plan
{
	//-------- methods --------

	/**
	 *  Handle the ping request.
	 */
	public void body()
	{
		getParameter("result").setValue(getBeliefbase().getBelief("ping_answer").getFact());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy