|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.ga.watchmaker.travellingsalesman.EuropeanDistanceLookup
public final class EuropeanDistanceLookup
This class contains data about cities in Europe and the distances between them.
The original code is from the Watchmaker project (https://watchmaker.dev.java.net/).
Constructor Summary | |
---|---|
EuropeanDistanceLookup()
|
Method Summary | |
---|---|
int |
getDistance(java.lang.String startingCity,
java.lang.String destinationCity)
Looks-up the distance between two cities. |
java.util.List<java.lang.String> |
getKnownCities()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EuropeanDistanceLookup()
Method Detail |
---|
public java.util.List<java.lang.String> getKnownCities()
getKnownCities
in interface DistanceLookup
public int getDistance(java.lang.String startingCity, java.lang.String destinationCity)
DistanceLookup
getDistance
in interface DistanceLookup
startingCity
- The city to start from.destinationCity
- The city to end in.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |