jadex.quickstart.cleanerworld.environment.ILocation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-quickstart Show documentation
Show all versions of jadex-applications-quickstart Show documentation
The Jadex quickstart package contains the ready to use "Cleanerworld" environment as a testbed for experimenting with autonomous agents and intelligent behavior.
package jadex.quickstart.cleanerworld.environment;
/**
* A location on the virtual map.
*/
public interface ILocation
{
/**
* Get the x of this Location.
* The x-coordinate.
* @return x
*/
public double getX();
/**
* Get the y of this Location.
* The y-coordinate.
* @return y
*/
public double getY();
/**
* Caculate the distance to another location.
* @return The distance.
*/
public double getDistance(ILocation other);
/**
* Check, if the other location is in range.
* E.g. when the chargin station is near to the cleaner it can recharge, etc.
* @return True, if the given locations is near to this location.
*/
public boolean isNear(ILocation other);
}