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

jadex.bdi.examples.garbagecollector_classic.PickUpPlan 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.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