|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectastro.SimpleSite
public class SimpleSite
A helper class that implements the Site interface. It provides
implementation for all methods in the site interface.
| Field Summary | |
|---|---|
private double |
Elevation
The elevation of this site. |
private double |
Latitude
The latitude of this site. |
private double |
Longitude
The longitude of this site. |
| Fields inherited from interface astro.Site |
|---|
ALTITUDES, LATITUDES, LONGITUDES, OBSERVATORIES |
| Fields inherited from interface vec_math.PI |
|---|
HOUR, PIHALF, PITWO, RADIAN |
| Constructor Summary | |
|---|---|
protected |
SimpleSite()
Do not use this constructor directly. |
|
SimpleSite(double lambda,
double phi,
double height)
Constructs a fully qualified site out of the longitude, latitude, and elevation of this site. |
| Method Summary | |
|---|---|
boolean |
equals(Object that)
Two sites are equal, if their geographical position and their height are identically. |
double |
getElevation()
Gets the elevation of this site, in meters. |
double |
getLatitude()
Gets the latitude of this site, in radians. |
double |
getLongitude()
Returns the longitude of this site, in radians. |
void |
setElevation(double height)
Sets the elevation of this site, in meters. |
void |
setLatitude(double phi)
Sets the latitude of this site, in radians. |
void |
setLongitude(double lambda)
Sets the longitude of this site, in radians. |
String |
toString()
Returns a simple representation of this site. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double Longitude
private double Latitude
private double Elevation
| Constructor Detail |
|---|
protected SimpleSite()
public SimpleSite(double lambda,
double phi,
double height)
lambda - The longitude of this site, in radians.phi - The latitude of this site, in radians.height - The elevation, in meters.| Method Detail |
|---|
public double getLongitude()
getLongitude in interface Sitepublic void setLongitude(double lambda)
setLongitude in interface Sitepublic double getLatitude()
getLatitude in interface Sitepublic void setLatitude(double phi)
setLatitude in interface Sitepublic double getElevation()
getElevation in interface Sitepublic void setElevation(double height)
setElevation in interface Sitepublic boolean equals(Object that)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||