31 #include <Eigen/Dense> 39 using namespace Eigen;
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);
56 double getMultiplier (
const string& multiplierName,
const string& forName,
int year=
DATA_NOW);
57 double getPathMortality(
const string&
forType,
const string& dC,
int year=
DATA_NOW);
58 void correctInputMultiplier (
const string& multiplierName,
const string& forName,
double coefficient=1);
60 double getPastRegArea(
const int& ft_idx,
const int& year);
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);
67 double getID()
const {
return ID;} ;
68 int getX()
const {
return pxX;} ;
69 int getY()
const {
return pxY;};
71 vector <Pixel *> getPixelsAtDistLevel (
int distLevel_h)
const;
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 );
84 void setPxComments ( std::string pxComments_h ) {pxComments = pxComments_h;};
87 void setSpModifier(
const double& value,
const int& ftindex){spMods.at(ftindex)=value;};
88 double getSpModifier(
const string& ft);
89 void swap(
const int &swap_what);
90 void setMyRegion(
ModelRegion* region_h){l2region = region_h;};
106 vector <vector <double> >
vol;
107 vector <vector <double> >
area;
111 vector <vector <double> >
hVol;
131 vector <vector <double> >
beta;
132 vector <vector <double> >
mort;
133 vector <vector <double> >
tp;
135 vector <vector <double> >
vHa;
150 mutable map<string, double>::const_iterator
vIter;
vector< vector< double > > deltaArea
void setSpModifier(const double &value, const int &ftindex)
The required data is for the current year.
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)
map< string, double >::const_iterator vIter
double expType
Sampling derived expectation types of this agent (forest bilogical parameters: growth, mortality)
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< 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.
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< int > optDcChosen
vector< double > expectedAnnualIncome_timber
vector< vector< double > > hProductivity
vector< vector< double > > vol
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
void setPxComments(std::string pxComments_h)
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