org.mars_sim.msp.simulation.mars
Class Weather

java.lang.Object
  extended by org.mars_sim.msp.simulation.mars.Weather
All Implemented Interfaces:
java.io.Serializable

public class Weather
extends java.lang.Object
implements java.io.Serializable

Weather represents the weather on Mars

See Also:
Serialized Form

Constructor Summary
Weather()
          Constructs a Weather object
 
Method Summary
 double getAirPressure(Coordinates location)
          Gets the air pressure at a given location.
 double getTemperature(Coordinates location)
          Gets the surface temperature at a given location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Weather

public Weather()
Constructs a Weather object

Method Detail

getAirPressure

public double getAirPressure(Coordinates location)
Gets the air pressure at a given location.

Returns:
air pressure in atm.

getTemperature

public double getTemperature(Coordinates location)
Gets the surface temperature at a given location.

Returns:
temperature in celsius.