astro
Class TenerifeSite

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

public class TenerifeSite
extends SimpleSite

A Site implementation describing the location of Stella.


Field Summary
static double ELEVATION_TEIDE
          The elevation of Teide observatory, Tenerife (2400m).
static double LAT_TEIDE
          The latitude of Teide observatory, Tenerife (0.4939282 rad).
static double LONG_TEIDE
          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
TenerifeSite()
          Constructs a site instance representing the teide observatory.
TenerifeSite(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_TEIDE

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

See Also:
Constant Field Values

LAT_TEIDE

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

See Also:
Constant Field Values

ELEVATION_TEIDE

public static final double ELEVATION_TEIDE
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

TenerifeSite

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


TenerifeSite

public TenerifeSite(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