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;
vector< vector< double > > deltaArea
void setSpModifier(const double &value, const int &ftindex)
void setMyRegion(ModelRegion *region_h)
The required data is for the current year.
double getSpModifier(const string &ft)
double getCachedDouble() const
vector< vector< double > > area
vector< vector< double > > cumAlive_exp
This is the expected version of cumAlive, used for calculating profits.
void setCachedDouble(double cachedDouble_h)
void setPastRegArea(const double &value, const int &ft_idx, const int &year)
vector< vector< double > > addMort
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)...
map< string, double >::const_iterator vIter
double expType
Sampling derived expectation types of this agent (forest bilogical parameters: growth, mortality)
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.
vector< double > avalCoef
Availability (of wood resources) coefficient. A [0,1] coefficient (new: by forest type) that reduces ...
vector< vector< double > > mort
vector< vector< double > > vMort
ModelRegion * l2region
Pointer to level 2 region where this pixel is.
vector< vector< double > > vol_l
store the volumes of the previous year
vector< Pixel * > getPixelsAtDistLevel(int distLevel_h) const
Return a vector of pixels at the specified distance (in levels, not in physical units) ...
vector< double > expectedAnnualIncome_carbon
void setValue(const string &layerName_h, const double &value_h)
Insert a new layer and its value.
Thread manager. Responsable to manage the main thread and "speak" with the GUI.
ModelRegion * getMyRegion(const int &rLevel=2)
vector< vector< double > > vHa_exp
This is the expected version of vHa, used for calculating profits.
vector< double > initialDc0Area
vector< vector< double > > cumAlive
Cumulative prob of remaining alive at beginnin of a given diam class.
vector< vector< double > > vHa
Volume at hectar by each diameter class [m^3/ha].
vector< double > spMods
The sampled spatial modifiers (by forest type)
vector< vector< double > > vMortAdd
double getSTData(const string &parName, const string &forName, int year, const string &d2="", double naToReturn=RETNA)
vector< int > optDcChosen
double getDoubleValue(const string &layerName_h, const bool &returnZeroForNoValue=false) const
Return the value for a specific layer.
vector< double > expectedAnnualIncome_timber
Pixel(double ID_h, ThreadManager *MTHREAD_h)
double getPastRegArea(const int &ft_idx, const int &year)
vector< vector< double > > hProductivity
vector< vector< double > > vol
double getMultiplier(const string &multiplierName, const string &forName, int year=DATA_NOW)
vector< vector< double > > cumTp_exp
This is the expected version of cumTp, used for calculating profits.
double expTypePrices
Sampling derived expectation types of this agent (prices)
bool usePortfolio
Sampling derived usage of portfolio management (false/true)
vector< vector< vector< double > > > hVol_byPrd
Request the (scenario specific) NO VALUE to be returned.
vector< vector< double > > area_l
store the areas of the previous year
double cachedDouble
Cachable double used in some optimized algorithms.
void setCoordinates(int x_h, int y_h)
vector< int > optFtChosen
Base class for the regmas application.
map< string, double > values
Map of values for each layer.
vector< double > expectedReturns
string getPxComments() const
vector< vector< double > > tp
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 setPxComments(std::string pxComments_h)
void swap(const int &swap_what)
Assign to the delayed value the current values, e.g. vol_l = vol.
Class to manage the spatial dimension.
vector< double > expectedReturnsNotCorrByRa
by ft. Attenction, reported expReturns at "forest" level (compared with those at forest type level) d...
vector< vector< double > > hVol
double portfolioVarRa
Sampling derived risk aversion on portfolio variance for of this agent.
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 > > hArea
vector< vector< double > > beta
This file is the header of BaseClass and it is included by ALL compiled code.
map< int, vector< double > > regArea