astro
Class AptSite

java.lang.Object
  extended by astro.SimpleSite
      extended by astro.AptSite
All Implemented Interfaces:
Site, PI

public class AptSite
extends SimpleSite

A Site implementation describing the location of Stella.


Field Summary
static double ELEVATION_WC
          The elevation of Teide observatory, Tenerife (2400m).
static double LAT_WC
          The latitude of Teide observatory, Tenerife (0.4939282 rad).
static double LONG_WC
          The longitude of Teide observatory, Tenerife (-0.288149 rad).
private static String NAME
          The name of the site.
 
Fields inherited from interface astro.Site
ALTITUDES, LATITUDES, LONGITUDES, OBSERVATORIES
 
Fields inherited from interface vec_math.PI
HOUR, PIHALF, PITWO, RADIAN
 
Constructor Summary
AptSite()
          Constructs a site instance representing the teide observatory.
AptSite(double lambda, double phi, double height)
          Constructs a site instance representing the teide observatory.
 
Method Summary
 void setElevation(double dummy)
          This site represents only Teide observatory, so the elevation is a read-only property.
 void setLatitude(double dummy)
          This site represents only Teide observatory, so the latitude is a read-only property.
 void setLongitude(double dummy)
          This site represents only Teide observatory, so the longitude is a read-only property.
 String toString()
          Adds the name of this site to the output string.
 
Methods inherited from class astro.SimpleSite
equals, getElevation, getLatitude, getLongitude
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LONG_WC

public static final double LONG_WC
The longitude of Teide observatory, Tenerife (-0.288149 rad).

See Also:
Constant Field Values

LAT_WC

public static final double LAT_WC
The latitude of Teide observatory, Tenerife (0.4939282 rad).

See Also:
Constant Field Values

ELEVATION_WC

public static final double ELEVATION_WC
The elevation of Teide observatory, Tenerife (2400m).

See Also:
Constant Field Values

NAME

private static final String NAME
The name of the site.

See Also:
Constant Field Values
Constructor Detail

AptSite

public AptSite()
Constructs a site instance representing the teide observatory.


AptSite

public AptSite(double lambda,
               double phi,
               double height)
Constructs a site instance representing the teide observatory.

Method Detail

setLongitude

public void setLongitude(double dummy)
This site represents only Teide observatory, so the longitude is a read-only property. This implementation sets the longitude to LONG_TEIDE, regardless of the argument value.

Specified by:
setLongitude in interface Site
Overrides:
setLongitude in class SimpleSite

setLatitude

public void setLatitude(double dummy)
This site represents only Teide observatory, so the latitude is a read-only property. This implementation sets the latitude to LAT_TEIDE, regardless of the argument value.

Specified by:
setLatitude in interface Site
Overrides:
setLatitude in class SimpleSite

setElevation

public void setElevation(double dummy)
This site represents only Teide observatory, so the elevation is a read-only property. This implementation sets the elevation to ELEVATION_TEIDE, regardless of the argument value.

Specified by:
setElevation in interface Site
Overrides:
setElevation in class SimpleSite

toString

public String toString()
Adds the name of this site to the output string.

Overrides:
toString in class SimpleSite