
aima.core.environment.map.Map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
package aima.core.environment.map;
import java.util.List;
import aima.core.util.datastructure.Point2D;
/**
* Provides a general interface for maps.
*
* @author Ruediger Lunde
*/
public interface Map {
/** Returns a list of all locations. */
public List getLocations();
/**
* Answers to the question: Where can I get, following one of the
* connections starting at the specified location?
*/
public List getLocationsLinkedTo(String fromLocation);
/**
* Returns the travel distance between the two specified locations if they
* are linked by a connection and null otherwise.
*/
public Double getDistance(String fromLocation, String toLocation);
/**
* Returns the position of the specified location. The position is
* represented by two coordinates, e.g. latitude and longitude values.
*/
public Point2D getPosition(String loc);
/**
* Returns a location which is selected by random.
*/
public String randomlyGenerateDestination();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy