
jadex.bdi.examples.cleanerworld_classic.cleaner.RemotePickUpWasteActionPlan 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.cleanerworld_classic.cleaner;
import jadex.bdi.examples.cleanerworld_classic.RequestPickUpWaste;
import jadex.bdi.examples.cleanerworld_classic.Waste;
/**
* Pick up a piece of waste in the environment.
*/
public class RemotePickUpWasteActionPlan extends RemoteActionPlan
{
//-------- methods --------
/**
* The plan body.
*/
public void body()
{
Waste waste = (Waste)getParameter("waste").getValue();
RequestPickUpWaste rp = new RequestPickUpWaste();
rp.setWaste(waste);
requestAction(rp);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy