org.jscience.earth
Class MarsAtmosphere

java.lang.Object
  extended by org.jscience.earth.AbstractAtmosphere
      extended by org.jscience.earth.MarsAtmosphere
All Implemented Interfaces:
java.io.Serializable

public class MarsAtmosphere
extends AbstractAtmosphere

A really basic model of Mars Atmosphere.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.earth.AbstractAtmosphere
alt, delta, sigma, theta
 
Constructor Summary
MarsAtmosphere()
          Default constructor that assumes an altitude of 0 meters,
MarsAtmosphere(float altitude)
          Constructor that takes a value of altitude in meters.
 
Method Summary
 float a0()
          Returns the standard sea level speed of sound for this atmosphere model.
protected  void calculate()
          Sub-classes must provide a method here that calculates the properties of a particular atmosphere model.
 float maxAltitude()
          Returns the maximum altitude supported by this atmosphere model.
 float minAltitude()
          Returns the minimum altitude supported by this atmosphere model.
 float P0()
          Returns the standard sea level pressure for this atmosphere model.
 float RHO0()
          Returns the standard sea level density for this atmosphere model.
 void setAltitude(float altitude)
          Sets the geometric altitude where the standard atmosphere is to be calculated.
 float T0()
          Returns the standard sea level temperature for this atmosphere model.
 
Methods inherited from class org.jscience.earth.AbstractAtmosphere
getAltitude, getDensity, getDensityRatio, getPressure, getPressureRatio, getSpeedOfSound, getTemperature, getTemperatureRatio, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarsAtmosphere

public MarsAtmosphere()
Default constructor that assumes an altitude of 0 meters,


MarsAtmosphere

public MarsAtmosphere(float altitude)
               throws java.lang.IllegalArgumentException
Constructor that takes a value of altitude in meters. If the specified altitude is outside the range 0 to Float.Max_VALUE meters, an IllegalArgumentException exception is thrown.

Parameters:
altitude - Altitude at which standard atmosphere is to be calculated; value given in meters.
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

T0

public float T0()
Returns the standard sea level temperature for this atmosphere model. Value returned in degrees Kelvin.

Specified by:
T0 in class AbstractAtmosphere
Returns:
Returns the standard sea level temperature in �K.

P0

public float P0()
Returns the standard sea level pressure for this atmosphere model. Value returned in Newtons/m^2.

Specified by:
P0 in class AbstractAtmosphere
Returns:
Returns the standard sea level pressure in N/m^2.

RHO0

public float RHO0()
Returns the standard sea level density for this atmosphere model. Value returned in kg/L (g/cm^3).

Specified by:
RHO0 in class AbstractAtmosphere
Returns:
Returns the standard sea level density in kg/L (g/cm^3).

a0

public float a0()
Returns the standard sea level speed of sound for this atmosphere model. Value returned in meters/sec.

Specified by:
a0 in class AbstractAtmosphere
Returns:
Returns the standard sea level density in m/s.

minAltitude

public float minAltitude()
Returns the minimum altitude supported by this atmosphere model. Sub-classes should return the minimum altitude supported the the sub-class' atmosphere model.

Specified by:
minAltitude in class AbstractAtmosphere
Returns:
Returns the minimum altitude supported by this atmosphere model.

maxAltitude

public float maxAltitude()
Returns the maximum altitude supported by this atmosphere model. Sub-classes should return the maximum altitude supported the the sub-class' atmosphere model.

Specified by:
maxAltitude in class AbstractAtmosphere
Returns:
Returns the maximum altitude supported by this atmosphere model.

setAltitude

public void setAltitude(float altitude)
                 throws java.lang.IllegalArgumentException
Sets the geometric altitude where the standard atmosphere is to be calculated.

Specified by:
setAltitude in class AbstractAtmosphere
Parameters:
altitude - Geometric altitude at which standard atmosphere is to be calculated; value given in meters.
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

calculate

protected void calculate()
Sub-classes must provide a method here that calculates the properties of a particular atmosphere model. The following poperties must be calculated (sub-classes may add others, but these are required): Density Ratio (sigma) as fn(alt) Pressure Ratio (delta) as fn(alt) Temperature Ratio (theta) as fn(alt)

Specified by:
calculate in class AbstractAtmosphere