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

jadex.bdi.examples.hunterprey_classic.creature.actsense.EatPlan Maven / Gradle / Ivy

Go to download

The Jadex BDI applications package contain several example applications, benchmarks and testcases using BDI agents.

The newest version!
package jadex.bdi.examples.hunterprey_classic.creature.actsense;

import jadex.bdi.examples.hunterprey_classic.Creature;
import jadex.bdi.examples.hunterprey_classic.RequestEat;
import jadex.bdi.examples.hunterprey_classic.WorldObject;

/**
 *  Handles an eat goal.
 */
/*  @handles goal eat
 *  @requires goal procap.rp_initiate 
 *  @requires belief myself
 *  @requires belief environmentagent
 *  @supports belief df
 */
public class EatPlan extends RemoteActionPlan
{
	/**
	 *  The plan body.
	 */
	public void body()
	{
		RequestEat re = new RequestEat((Creature)getBeliefbase().getBelief("my_self").getFact(),
			(WorldObject)getParameter("object").getValue());

		requestAction(re);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy