|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--objects.Point
|
+--objects.Location
This class extends Point to provide for more distance applications. It also does checking to ensure that the Location is on the unit square.
| Field Summary | |
private static long |
serialVersionUID
|
| Fields inherited from class objects.Point |
x, y |
| Constructor Summary | |
Location(double x,
double y)
|
|
| Method Summary | |
protected static double |
boundCheck(double d)
Throws error if value is not on the unit square. |
boolean |
equals(Object o)
|
double |
getDistance(objects.Locatable other)
Returns the distance on the unit square between this and loc. |
objects.Location |
getLoc()
Returns the Location of this Locatable. |
int |
hashCode()
Returns the hash code of this object. |
boolean |
isEastOf(objects.Locatable other)
Returns whether this Locatable is south of loc. |
boolean |
isNorthOf(objects.Locatable other)
Returns whether this Locatable is north of loc. |
boolean |
isSouthOf(objects.Locatable other)
Returns whether this Locatable is east of loc. |
boolean |
isWestOf(objects.Locatable other)
Returns whether this Locatable is west of loc. |
String |
toString()
|
| Methods inherited from class objects.Point |
getX, getY |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
| Constructor Detail |
public Location(double x,
double y)
| Method Detail |
protected static double boundCheck(double d)
public objects.Location getLoc()
Locatable
getLoc in interface Locatablepublic boolean equals(Object o)
equals in class Objectpublic double getDistance(objects.Locatable other)
Locatable
getDistance in interface Locatablepublic int hashCode()
hashCode in class Objectpublic boolean isEastOf(objects.Locatable other)
Locatable
isEastOf in interface Locatablepublic boolean isNorthOf(objects.Locatable other)
Locatable
isNorthOf in interface Locatablepublic boolean isSouthOf(objects.Locatable other)
Locatable
isSouthOf in interface Locatablepublic boolean isWestOf(objects.Locatable other)
Locatable
isWestOf in interface Locatablepublic String toString()
toString in class Object
|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||