34 #include "IpIpoptApplication.hpp" 66 double gpd(
const string &type_h,
const int& regId_h,
const string &prodId_h,
const int& year=
DATA_NOW,
const string &freeDim_h=
"")
const {
return MTHREAD->
MD->
getProdData(type_h, regId_h, prodId_h, year, freeDim_h);};
67 double gfd(
const string &type_h,
const int& regId_h,
const string &forType_h,
const string &freeDim_h,
const int& year=
DATA_NOW)
const {
return MTHREAD->
MD->
getForData(type_h, regId_h, forType_h, freeDim_h, year);};
68 void spd(
const double& value_h,
const string &type_h,
const int& regId_h,
const string &prodId_h,
const int& year=
DATA_NOW,
const bool& allowCreate=
false,
const string &freeDim_h=
"")
const {
MTHREAD->
MD->
setProdData(value_h, type_h, regId_h, prodId_h, year, allowCreate, freeDim_h);};
69 void sfd(
const double& value_h,
const string &type_h,
const int& regId_h,
const string &forType_h,
const string &freeDim_h,
const int& year=
DATA_NOW,
const bool& allowCreate=
false)
const {
MTHREAD->
MD->
setForData(value_h, type_h, regId_h, forType_h, freeDim_h, year, allowCreate);};
87 vector <vector <int> >
l2r;
91 vector < vector < vector < vector <double> > > >
hV_byPrd;
The required data is for the current year.
void computeCumulativeData()
computes cumTp, vHa, cumTp_exp, vHa_exp,
vector< string > priProducts
void sfd(const double &value_h, const string &type_h, const int ®Id_h, const string &forType_h, const string &freeDim_h, const int &year=DATA_NOW, const bool &allowCreate=false) const
ThreadManager * MTHREAD
Pointer to the Thread manager.
vector< string > dClasses
ModelData * MD
the model data object
void runManagementModule()
computes regArea and expectedReturns
void spd(const double &value_h, const string &type_h, const int ®Id_h, const string &prodId_h, const int &year=DATA_NOW, const bool &allowCreate=false, const string &freeDim_h="") const
Thread manager. Responsable to manage the main thread and "speak" with the GUI.
vector< vector< int > > l2r
double gfd(const string &type_h, const int ®Id_h, const string &forType_h, const string &freeDim_h, const int &year=DATA_NOW) const
Regional data, including macros and settings.
vector< vector< vector< vector< double > > > > hV_byPrd
const double getProdData(const string &type_h, const int ®Id_h, const string &prodId_h, const int &year=DATA_NOW, const string &freeDim_h="")
void cachePixelExogenousData()
computes pixel level tp, meta and mort
bool app(const string &prod_h, const string &forType_h, const string &dClass_h) const
const double getForData(const string &type_h, const int ®Id_h, const string &forType_h, const string &freeDim_h, const int &year=DATA_NOW)
void setProdData(const double &value_h, const string &type_h, const int ®Id_h, const string &prodId_h, const int &year=DATA_NOW, const bool &allowCreate=false, const string &freeDim_h="")
double gpd(const string &type_h, const int ®Id_h, const string &prodId_h, const int &year=DATA_NOW, const string &freeDim_h="") const
void initMarketModule()
computes st and pw for second year and several needed-only-at-t0-vars for the market module ...
Base class for the regmas application.
vector< string > pDClasses
void runBiologicalModule()
computes hV, hArea and new vol at end of year
vector< string > secProducts
void setForData(const double &value_h, const string &type_h, const int ®Id_h, const string &forType_h, const string &freeDim_h, const int &year=DATA_NOW, const bool &allowCreate=false)
vector< string > allProducts
void updateMapAreas()
computes forArea_{ft}
void runMarketModule()
computes st (supply total) and pw (weighted price). Optimisation inside.
This file is the header of BaseClass and it is included by ALL compiled code.
const bool assessProdPossibility(const string &prod_h, const string &forType_h, const string &dClass_h)
A simple function to assess if a specified product can be made by a certain forest type and diameter ...
ModelCore(ThreadManager *MTHREAD_h)
void cacheSettings()
just cache exogenous settings from ModelData
void computeInventary()
in=f(vol_t-1)