
jadex.bdi.examples.garbagecollector_classic.PickUpPlan 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.garbagecollector_classic;
import jadex.bdi.runtime.Plan;
/**
* Try to pickup some piece of garbage.
*/
public class PickUpPlan extends Plan
{
/**
* The plan body.
*/
public void body()
{
Environment env = (Environment)getBeliefbase().getBelief("env").getFact();
//System.out.println("Calling pickup: "+getAgentName()+" "+getRootGoal());
if(!env.pickup(getComponentName()))
fail();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy