public class Observatory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
double |
getHeight()
Get Height
|
java.lang.String |
getId()
Get identifier
|
double |
getLat()
Get Latitude
|
double |
getLong()
Get Longitude
|
java.lang.String |
getName()
Get Name
|
static int |
getObservatoryCount()
Return the number of observatories available
|
static java.lang.String |
getObservatoryID(int i)
Get the short identifier of an observatory
|
static java.lang.String |
getObservatoryName(int i)
Get the name of an observatory
|
java.lang.String |
printPosition()
Get the longitude, latitude and height as a string
|
java.lang.String |
printPosition(int ndp)
Get the longitude, latitude and height as a string
|
java.lang.String |
toString()
Get the name of the Observatory as a string
|
public java.lang.String getId()
public java.lang.String getName()
public double getLong()
public double getLat()
public double getHeight()
public java.lang.String printPosition()
public java.lang.String printPosition(int ndp)
ndp
- Number of decimal places in answerpublic java.lang.String toString()
toString
in class java.lang.Object
public static int getObservatoryCount()
public static java.lang.String getObservatoryName(int i)
i
- index of the observatorypublic static java.lang.String getObservatoryID(int i)
i
- index of the observatoryCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.