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;
This file is the header of BaseClass and it is included by ALL compiled code.
@ DATA_NOW
The required data is for the current year.
Base class for the regmas application.
ThreadManager * MTHREAD
Pointer to the Thread manager.
void runMarketModule()
computes st (supply total) and pw (weighted price). Optimisation inside.
vector< string > allProducts
void cachePixelExogenousData()
computes pixel level tp, meta and mort
void cacheSettings()
just cache exogenous settings from ModelData
void computeInventary()
in=f(vol_t-1)
void runBiologicalModule()
computes hV, hArea and new vol at end of year
void updateMapAreas()
computes forArea_{ft}
vector< string > priProducts
void runManagementModule()
computes regArea and expectedReturns
double gfd(const string &type_h, const int ®Id_h, const string &forType_h, const string &freeDim_h, const int &year=DATA_NOW) const
void computeCumulativeData()
computes cumTp, vHa, cumTp_exp, vHa_exp,
void initMarketModule()
computes st and pw for second year and several needed-only-at-t0-vars for the market module
vector< vector< int > > l2r
vector< string > secProducts
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
double gpd(const string &type_h, const int ®Id_h, const string &prodId_h, const int &year=DATA_NOW, const string &freeDim_h="") const
bool app(const string &prod_h, const string &forType_h, const string &dClass_h) const
vector< string > dClasses
vector< string > pDClasses
vector< vector< vector< vector< double > > > > hV_byPrd
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
Regional data, including macros and settings.
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="")
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 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)
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 ...
const double getProdData(const string &type_h, const int ®Id_h, const string &prodId_h, const int &year=DATA_NOW, const string &freeDim_h="")
Thread manager. Responsable to manage the main thread and "speak" with the GUI.
ModelData * MD
the model data object