|
mhuss utils 1.1.5ws | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mhuss.AstroLib.ObsInfo
public class ObsInfo
Holds latitude, longitude and time zone of an observing location.
Note that the constructors expect latitude and longitude in degrees, not radians, for calling convenience.
Constructor Summary | |
---|---|
ObsInfo()
Default constructor |
|
ObsInfo(Latitude lat,
Longitude lon)
Location only constructor. |
|
ObsInfo(Latitude lat,
Longitude lon,
int tz)
Explicit (all values) constructor. |
Method Summary | |
---|---|
double |
getLatitudeDeg()
Get latitude in degrees. |
double |
getLatitudeRad()
Get latitude in radians. |
double |
getLongitudeDeg()
Get longitude in degrees. |
double |
getLongitudeRad()
Get longitude in radians. |
int |
getTimeZone()
Get time zone offset. |
void |
setLatitudeDeg(double lat)
Set latitude in degrees. |
void |
setLatitudeRad(double lat)
Set latitude in radians. |
void |
setLongitudeDeg(double lon)
Set longitude in degrees. |
void |
setLongitudeRad(double lon)
Set longitude in radians. |
void |
setTimeZone(int tz)
Set time zone offset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObsInfo()
public ObsInfo(Latitude lat, Longitude lon, int tz)
lon
- longitude in degreeslat
- latitude in degreestz
- Time Zone offset relative to UTC (-12 to 12 inclusive)public ObsInfo(Latitude lat, Longitude lon)
lon
- longitude in degreeslat
- latitude in degreesMethod Detail |
---|
public double getLatitudeDeg()
public double getLatitudeRad()
public void setLatitudeDeg(double lat)
lat
- Latitude in degreespublic void setLatitudeRad(double lat)
lat
- Latitude in radianspublic double getLongitudeDeg()
public double getLongitudeRad()
public void setLongitudeDeg(double lon)
lon
- Longitude in degreespublic void setLongitudeRad(double lon)
lon
- Longitude in radianspublic int getTimeZone()
public void setTimeZone(int tz)
tz
- Time zone offset from UTC (-12 to 12 inclusive)
|
mhuss utils 1.1.5ws | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |