
jadex.bdi.examples.hunterprey_classic.creature.actsense.EatPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bdi Show documentation
Show all versions of jadex-applications-bdi Show documentation
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