|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.pal.Observatory
public class Observatory
Observatory Data
Method Summary | |
---|---|
double |
getHeight()
Get Height |
String |
getId()
Get identifier |
double |
getLat()
Get Latitude |
double |
getLong()
Get Longitude |
String |
getName()
Get Name |
static int |
getObservatoryCount()
Return the number of observatories available |
static String |
getObservatoryID(int i)
Get the short identifier of an observatory |
static String |
getObservatoryName(int i)
Get the name of an observatory |
String |
printPosition()
Get the longitude, latitude and height as a string |
String |
printPosition(int ndp)
Get the longitude, latitude and height as a string |
String |
toString()
Get the name of the Observatory as a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getId()
public String getName()
public double getLong()
public double getLat()
public double getHeight()
public String printPosition()
public String printPosition(int ndp)
ndp
- Number of decimal places in answer
public String toString()
toString
in class Object
public static int getObservatoryCount()
public static String getObservatoryName(int i)
i
- index of the observatory
public static String getObservatoryID(int i)
i
- index of the observatory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |