|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttasks.City
public class City
City class for TSP task
| Field Summary | |
|---|---|
double[] |
city
X and Y coordinates of city |
| Method Summary | |
|---|---|
boolean |
compare(City c)
Determines if two cities point to the same location |
double |
getX()
Returns the X component of the City |
double |
getY()
returns the Y component of the City |
java.lang.String |
toString()
(non-Javadoc) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double[] city
| Method Detail |
|---|
public double getX()
public double getY()
public boolean compare(City c)
City - the city to compare against
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||