2.0.0b10
catchment modelling framework
Loading...
Searching...
No Matches
ConstantMeteorology Class Reference

A primitive implementation of the Meteorology interface. More...

+ Inheritance diagram for ConstantMeteorology:
+ Collaboration diagram for ConstantMeteorology:

Detailed Description

A primitive implementation of the Meteorology interface.

Holds a Weather record and returns it for any date

Public Member Functions

 ConstantMeteorology ()
 Creates a ConstantMeteorology with a standard weather.
 
 ConstantMeteorology (const cmf::atmosphere::ConstantMeteorology &other)
 Copy constructor.
 
 ConstantMeteorology (const cmf::atmosphere::Weather &w)
 Creates a ConstantMeteorology with weather w.
 
ConstantMeteorologycopy () const
 Creates a new instannce of the ConstantMeteorology with the same weather.
 
virtual real get_instrument_height () const
 Returns the height of the instruments above canopy.
 
virtual cmf::atmosphere::Weather get_weather (cmf::math::Time t) const
 Returns weather, regardless of t.
 
cmf::atmosphere::Weather operator() (cmf::math::Time t)
 Returns the Weather at time t.
 

Public Attributes

Weather weather
 The constant, but changeable Weather record.