|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.model.space.Coordinate
org.ascape.model.space.CoordinateGraph
public class CoordinateGraph
The Class CoordinateGraph.
| Constructor Summary | |
|---|---|
CoordinateGraph(Location location)
Instantiates a new coordinate graph. |
|
| Method Summary | |
|---|---|
Coordinate |
add(Coordinate coordinate)
Adds the location of the supplied coordinate to this coordinate, returning the resulting coordinate. |
boolean |
equals(java.lang.Object o)
|
double |
getDistance(Coordinate coordinate)
Returns the distance between this coordinate and the supplied coordinate. |
Location |
getLocation()
Gets the location. |
int |
hashCode()
|
void |
setLocation(Location location)
Sets the location. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CoordinateGraph(Location location)
location - the location| Method Detail |
|---|
public Coordinate add(Coordinate coordinate)
Coordinate
add in class Coordinatecoordinate - the coordinate to sum with this one
public double getDistance(Coordinate coordinate)
Coordinate
getDistance in class Coordinatecoordinate - the coordiante to measure distance topublic Location getLocation()
public void setLocation(Location location)
location - the new locationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||