8#include <boost/serialization/serialization.hpp>
9#include <boost/serialization/nvp.hpp>
12#ifndef FMTYIELDMODEL_H_INCLUDED
13#define FMTYIELDMODEL_H_INCLUDED
23 namespace property_tree
25 template <
class Key,
class Data,
class KeyCompare >
33 class FMTyieldrequest;
43 template<
class Archive>
44 void serialize(Archive& ar,
const unsigned int version)
46 ar & boost::serialization::make_nvp(
"FMTobject", boost::serialization::base_object<FMTobject>(*
this));
87 virtual std::unique_ptr<FMTyieldmodel>
Clone()
const = 0;
99 const std::vector<FMTtheme>& newthemes)
const;
105 const std::vector<FMTtheme>& basethemes)
const;
110 virtual operator std::string()
const=0;
Definition: FMTmaskfilter.hpp:27
Definition: FMTobject.hpp:50
Definition: FMTyieldmodel.hpp:41
FMTyieldmodel & operator=(const FMTyieldmodel &rhs)=default
FMTyieldmodel(const FMTyieldmodel &rhs)=default
const std::vector< std::string > & GetModelYields() const
virtual const std::vector< double > Predict(const Core::FMTyieldrequest &request) const =0
virtual std::unique_ptr< FMTyieldmodel > Clone() const =0
const std::string & GetModelName() const
std::string modelName
Definition: FMTyieldmodel.hpp:49
virtual std::vector< std::vector< double > > getperiodicvalues() const
virtual std::unique_ptr< FMTyieldmodel > postsolve(const FMTmaskfilter &filter, const std::vector< FMTtheme > &basethemes) const
const std::string JSON_PROP_MODEL_NAME
Definition: FMTyieldmodel.hpp:51
std::vector< std::string > modelYields
Definition: FMTyieldmodel.hpp:50
friend class boost::serialization::access
Definition: FMTyieldmodel.hpp:42
virtual std::unique_ptr< FMTyieldmodel > presolve(const FMTmaskfilter &filter, const std::vector< FMTtheme > &newthemes) const
Definition: FMTyieldrequest.hpp:36
Definition: FMTyieldmodel.hpp:26
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31
Namespace for using/building unidirectional graphs in FMT.
Definition: FMTareaparser.hpp:31
basic_ptree< std::string, std::string, std::less< std::string > > ptree
Definition: FMTyieldmodel.hpp:27
Definition: FMTaction.hpp:364