aima.search.map
Interface Map

All Known Implementing Classes:
ExtendableMap, SimplifiedRoadMapOfAustralia, SimplifiedRoadMapOfPartOfRomania

public interface Map

Provides a general interface for maps.


Method Summary
 java.lang.Double getDistance(java.lang.String fromLocation, java.lang.String toLocation)
          Returns the travel distance between the two specified locations if they are linked by a connection and null otherwise.
 java.util.List<java.lang.String> getLocations()
          Returns a list of all locations.
 java.util.List<java.lang.String> getLocationsLinkedTo(java.lang.String fromLocation)
          Answers to the question: Where can I get, following one of the connections starting at the specified location?
 Point2D getPosition(java.lang.String loc)
          Returns an array with two integers describing the the position of the specified location.
 java.lang.String randomlyGenerateDestination()
          Returns a location which is selected by random.
 

Method Detail

getLocations

java.util.List<java.lang.String> getLocations()
Returns a list of all locations.


getLocationsLinkedTo

java.util.List<java.lang.String> getLocationsLinkedTo(java.lang.String fromLocation)
Answers to the question: Where can I get, following one of the connections starting at the specified location?


getDistance

java.lang.Double getDistance(java.lang.String fromLocation,
                             java.lang.String toLocation)
Returns the travel distance between the two specified locations if they are linked by a connection and null otherwise.


getPosition

Point2D getPosition(java.lang.String loc)
Returns an array with two integers describing the the position of the specified location.


randomlyGenerateDestination

java.lang.String randomlyGenerateDestination()
Returns a location which is selected by random.