54 double getDoubleValue (
const string& layerName_h,
const bool& returnZeroForNoValue =
false)
const;
55 double getDoubleValue (
const string& parName,
const string& forName,
const string& dClass,
const int& year,
const bool& returnZeroForNoValue =
false);
61 void setPastRegArea(
const double& value,
const int& ft_idx,
const int& year);
63 double getSTData(
const string& parName,
const string& forName,
int year,
const string& d2 =
"",
double naToReturn =
RETNA);
78 void setValue (
const string& layerName_h,
const double& value_h ){
values.insert(pair<string, double>(layerName_h, value_h));}
81 void changeValue (
const string& layerName_h,
const double& value_h,
const bool& setNoValueForZero=
false );
89 void swap(
const int &swap_what);
106 vector <vector <double> >
vol;
107 vector <vector <double> >
area;
111 vector <vector <double> >
hVol;
132 vector <vector <double> >
beta;
133 vector <vector <double> >
mort;
135 vector <vector <double> >
tp;
137 vector <vector <double> >
vHa;
152 mutable map<string, double>::const_iterator
vIter;
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.
@ RETNA
Request the (scenario specific) NO VALUE to be returned.
Base class for the regmas application.
Class to manage the spatial dimension.
vector< double > expectedAnnualIncome_carbon
double getCachedDouble() const
map< int, vector< double > > regArea
vector< vector< vector< double > > > hVol_byPrd
vector< vector< double > > area
vector< vector< double > > area_l
store the areas of the previous year
vector< double > expectedReturns
ModelRegion * getMyRegion(const int &rLevel=2)
vector< vector< double > > mort
double portfolioVarRa
Sampling derived risk aversion on portfolio variance for of this agent.
vector< vector< double > > vHa_exp
This is the expected version of vHa, used for calculating profits.
void setCachedDouble(double cachedDouble_h)
vector< vector< double > > hVol
vector< double > expectedReturnsNotCorrByRa
by ft. Attenction, reported expReturns at "forest" level (compared with those at forest type level) d...
double getSTData(const string &parName, const string &forName, int year, const string &d2="", double naToReturn=RETNA)
void setMyRegion(ModelRegion *region_h)
map< string, double >::const_iterator vIter
void swap(const int &swap_what)
Assign to the delayed value the current values, e.g. vol_l = vol.
double getPathMortality(const string &forType, const string &dC, int year=DATA_NOW)
Return the INCREASED mortality due to pathogen presence for a given ft and dc in a certain year (defa...
void setSpModifier(const double &value, const int &ftindex)
vector< double > avalCoef
Availability (of wood resources) coefficient. A [0,1] coefficient (new: by forest type) that reduces ...
void setPxComments(std::string pxComments_h)
vector< double > expectedAnnualIncome_timber
map< string, double > values
Map of values for each layer.
double expTypePrices
Sampling derived expectation types of this agent (prices)
double expType
Sampling derived expectation types of this agent (forest bilogical parameters: growth,...
vector< vector< double > > hProductivity
void correctInputMultiplier(const string &multiplierName, const string &forName, double coefficient=1)
It apply a given coefficient to all the multipliers layers of a given ft.
double getSpModifier(const string &ft)
vector< double > spMods
The sampled spatial modifiers (by forest type)
vector< vector< double > > cumAlive_exp
This is the expected version of cumAlive, used for calculating profits.
vector< vector< double > > vMort
double getPastRegArea(const int &ft_idx, const int &year)
vector< double > initialDc0Area
vector< int > optFtChosen
void changeValue(const string &layerName_h, const double &value_h, const bool &setNoValueForZero=false)
Change the value of an existing layerMTHREAD->GIS->pack(parName, forName, dClass, year),...
vector< vector< double > > vHa
Volume at hectar by each diameter class [m^3/ha].
vector< vector< double > > vol_l
store the volumes of the previous year
vector< vector< double > > vol
vector< vector< double > > deltaArea
vector< vector< double > > addMort
ModelRegion * l2region
Pointer to level 2 region where this pixel is.
vector< vector< double > > tp
vector< vector< double > > cumTp_exp
This is the expected version of cumTp, used for calculating profits.
vector< vector< double > > hArea
vector< vector< double > > vMortAdd
vector< vector< double > > cumAlive
Cumulative prob of remaining alive at beginnin of a given diam class.
double getDoubleValue(const string &layerName_h, const bool &returnZeroForNoValue=false) const
Return the value for a specific layer.
vector< int > optDcChosen
string getPxComments() const
vector< vector< double > > cumTp
This is time of passage to REACH a diameter class (while the exogenous tp by diameter class is the ti...
vector< vector< double > > beta
void setValue(const string &layerName_h, const double &value_h)
Insert a new layer and its value.
void setCoordinates(int x_h, int y_h)
void setPastRegArea(const double &value, const int &ft_idx, const int &year)
bool usePortfolio
Sampling derived usage of portfolio management (false/true)
double cachedDouble
Cachable double used in some optimized algorithms.
vector< Pixel * > getPixelsAtDistLevel(int distLevel_h) const
Return a vector of pixels at the specified distance (in levels, not in physical units)
double getMultiplier(const string &multiplierName, const string &forName, int year=DATA_NOW)
Thread manager. Responsable to manage the main thread and "speak" with the GUI.