|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.minetti.astrodevice.common.coordinate.system.GeographicCoordinates org.minetti.astrodevice.common.object.ObservingSite
public class ObservingSite
Object representing an observing site on Earth.
Constructor Summary | |
---|---|
|
ObservingSite()
Constructor. |
|
ObservingSite(GeographicCoordinates geographicCoordinates)
Constructor. |
protected |
ObservingSite(String name,
Coordinate latitude,
Coordinate longitude,
short elevation,
HorizonLimits horizonLimits)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(ObservingSite other)
|
boolean |
equals(Object obj)
|
short |
getElevation()
Returns the elevation above mean sea level of the geographic position. |
HorizonLimits |
getHorizonLimits()
Returns the limits of horizon for the observing site (never NULL). |
Long |
getId()
Returns the observing site identifier. |
Coordinate |
getLatitude()
Returns the latitude φ of the geographic position. |
Coordinate |
getLongitude()
Returns the longitude λ of the geographic position. |
String |
getName()
Returns the name given to observing site. |
int |
hashCode()
|
void |
setElevation(short elevation)
Sets the elevation above mean sea level of the geographic position. |
void |
setLatitude(Coordinate latitude)
Sets the latitude φ of the geographic position. |
void |
setLongitude(Coordinate longitude)
Sets the longitude λ of the geographic position. |
void |
setName(String name)
Sets the name given to observing site. |
String |
toString()
|
Methods inherited from class org.minetti.astrodevice.common.coordinate.system.GeographicCoordinates |
---|
getLocalSiderealTime, toEquatorialCoordinates, toHorizontalCoordinates |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObservingSite()
public ObservingSite(GeographicCoordinates geographicCoordinates)
geographicCoordinates
- Geographic position in WGS84 system.protected ObservingSite(String name, Coordinate latitude, Coordinate longitude, short elevation, HorizonLimits horizonLimits)
name
- Name given to observing site.latitude
- Latitude φ of the geographic position in degrees (°).longitude
- Longitude λ of the geographic position in degrees (°).elevation
- Elevation of the geographic position in meters (m).horizonLimits
- Limits of horizon for the observing site.Method Detail |
---|
public Long getId()
public final String getName()
public final void setName(String name)
name
- New name given to observing site.public final Coordinate getLatitude()
GeographicCoordinates
getLatitude
in class GeographicCoordinates
public final void setLatitude(Coordinate latitude)
latitude
- New latitude φ of the geographic position in degrees (°).public final Coordinate getLongitude()
GeographicCoordinates
getLongitude
in class GeographicCoordinates
public final void setLongitude(Coordinate longitude)
longitude
- New longitude λ of the geographic position in degrees (°).public final short getElevation()
GeographicCoordinates
getElevation
in class GeographicCoordinates
public final void setElevation(short elevation)
elevation
- New elevation of the geographic position in meters (m).public final HorizonLimits getHorizonLimits()
public final int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public final int compareTo(ObservingSite other)
compareTo
in interface Comparable<ObservingSite>
public final String toString()
toString
in class GeographicCoordinates
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |