
jadex.bdi.examples.hunterprey_classic.creature.actsense.MovePlan 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.RequestMove;
/**
* Handles a move request.
*/
/* @handles goal move
* @requires goal procap.rp_initiate
* @requires belief myself
* @requires belief environmentagent
* @supports belief df
*/
public class MovePlan extends RemoteActionPlan
{
/**
* The plan body.
*/
public void body()
{
//System.out.println(getAgentName()+" wants to move: "+getRootGoal().getParameter("direction").getValue());
RequestMove rm = new RequestMove((Creature)getBeliefbase().getBelief("my_self").getFact(),
(String)getParameter("direction").getValue());
requestAction(rm);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy