jadex.bdi.examples.cleanerworld_classic.cleaner.PatrolPlan 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.
package jadex.bdi.examples.cleanerworld_classic.cleaner;
import jadex.bdi.examples.cleanerworld_classic.Location;
import jadex.bdi.runtime.IGoal;
import jadex.bdi.runtime.Plan;
/**
* Patrol along the patrol points.
*/
public class PatrolPlan extends Plan
{
//-------- constructors --------
/**
* Create a new plan.
*/
public PatrolPlan()
{
// getLogger().info("Created: "+this);
}
//-------- methods --------
/**
* The plan body.
*/
public void body()
{
Location[] loci = (Location[])getBeliefbase().getBeliefSet("patrolpoints").getFacts();
for(int i=0; i