MeteoIODoc  MeteoIODoc-2.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mio::GeneratorAlgorithm Class Referenceabstract

Detailed Description

Interface class for the generator models. These models generate data for a specific parameter when all other options failed (the resampling could not help). Therefore, there is nothing more that could be done with the temporal history of the data, we have to use a totally different approach: either generic data (constant value, etc) or generate the data from other meteorological parameters (relying on a parametrization, like clear sky for ILWR).

Author
Mathias Bavay
Date
2013-03-20

#include <GeneratorAlgorithms.h>

Public Member Functions

 GeneratorAlgorithm (const std::vector< std::string > &, const std::string &i_algo)
 
virtual ~GeneratorAlgorithm ()
 
virtual bool generate (const size_t &param, MeteoData &md)=0
 
virtual bool create (const size_t &param, std::vector< MeteoData > &vecMeteo)=0
 
std::string getAlgo () const
 

Protected Member Functions

virtual void parse_args (const std::vector< std::string > &i_vecArgs)
 

Protected Attributes

const std::string algo
 

Static Protected Attributes

static const double soil_albedo = .23
 
static const double snow_albedo = .85
 
static const double snow_thresh = .1
 

Constructor & Destructor Documentation

mio::GeneratorAlgorithm::GeneratorAlgorithm ( const std::vector< std::string > &  ,
const std::string &  i_algo 
)
inline
virtual mio::GeneratorAlgorithm::~GeneratorAlgorithm ( )
inlinevirtual

Member Function Documentation

std::string mio::GeneratorAlgorithm::getAlgo ( ) const
void mio::GeneratorAlgorithm::parse_args ( const std::vector< std::string > &  i_vecArgs)
protectedvirtual

Member Data Documentation

const std::string mio::GeneratorAlgorithm::algo
protected
const double mio::GeneratorAlgorithm::snow_albedo = .85
staticprotected
const double mio::GeneratorAlgorithm::snow_thresh = .1
staticprotected
const double mio::GeneratorAlgorithm::soil_albedo = .23
staticprotected

The documentation for this class was generated from the following files: