Interface class for grid resampling algorithms.
This class provides generic functionality to temporal grid resampling algorithms (which will inherit from this class).
#include <GridResamplingAlgorithms.h>
Public Member Functions | |
GridResamplingAlgorithm (const std::string &algorithm, const std::string &i_parname, const double &dflt_window_size, const std::vector< std::pair< std::string, std::string > > &) | |
Facade constructor for a generic grid resampling algorithm. More... | |
virtual | ~GridResamplingAlgorithm ()=default |
void | setWindowSize (const double &window_size) |
Set this algorithm's window size to something other than the default value. More... | |
virtual void | resample (const Date &date, const std::map< Date, Grid2DObject > &all_grids, Grid2DObject &resampled_grid)=0 |
virtual std::string | toString () const =0 |
Protected Attributes | |
const std::string | algo |
const std::string | parname |
double | grid_window_size |
mio::GridResamplingAlgorithm::GridResamplingAlgorithm | ( | const std::string & | algorithm, |
const std::string & | i_parname, | ||
const double & | dflt_window_size, | ||
const std::vector< std::pair< std::string, std::string > > & | vecArgs | ||
) |
Facade constructor for a generic grid resampling algorithm.
[in] | algorithm | The current algorithm's semantic name. |
[in] | i_parname | The current meteo parameter's identifier. |
[in] | dflt_window_size | The default grid resampling window size. |
[in] | vecArgs | vector of arguments (user settings) for this algorithm. |
|
virtualdefault |
|
pure virtual |
Implemented in mio::GridLinearResampling, and mio::GridTimeseriesResampling.
void mio::GridResamplingAlgorithm::setWindowSize | ( | const double & | window_size | ) |
Set this algorithm's window size to something other than the default value.
[in] | window_size | Desired window size in seconds. |
|
pure virtual |
Implemented in mio::GridLinearResampling, and mio::GridTimeseriesResampling.
|
protected |
|
protected |
|
protected |