FFSM++
1.1.0
French Forest Sector Model ++
|
Pixel-level class. More...
#include <Pixel.h>
Public Member Functions | |
Pixel (double ID_h, ThreadManager *MTHREAD_h) | |
~Pixel () | |
double | getDoubleValue (const string &layerName_h, const bool &returnZeroForNoValue=false) const |
Return the value for a specific layer. More... | |
double | getDoubleValue (const string &parName, const string &forName, const string &dClass, const int &year, const bool &returnZeroForNoValue=false) |
double | getMultiplier (const string &multiplierName, const string &forName, int year=DATA_NOW) |
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 (default the running year) More... | |
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. More... | |
void | newYear () |
double | getPastRegArea (const int &ft_idx, const int &year) |
void | setPastRegArea (const double &value, const int &ft_idx, const int &year) |
ModelRegion * | getMyRegion (const int &rLevel=2) |
double | getSTData (const string &parName, const string &forName, int year, const string &d2="", double naToReturn=RETNA) |
double | getID () const |
int | getX () const |
int | getY () const |
vector< Pixel * > | getPixelsAtDistLevel (int distLevel_h) const |
Return a vector of pixels at the specified distance (in levels, not in physical units) More... | |
string | getPxComments () const |
double | getCachedDouble () const |
void | setValue (const string &layerName_h, const double &value_h) |
Insert a new layer and its value. More... | |
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), value_h,. More... | |
void | setCoordinates (int x_h, int y_h) |
void | setPxComments (std::string pxComments_h) |
void | setCachedDouble (double cachedDouble_h) |
void | clearCache () |
void | setSpModifier (const double &value, const int &ftindex) |
double | getSpModifier (const string &ft) |
void | swap (const int &swap_what) |
Assign to the delayed value the current values, e.g. vol_l = vol. More... | |
void | setMyRegion (ModelRegion *region_h) |
Public Member Functions inherited from BaseClass | |
BaseClass () | |
~BaseClass () | |
void | msgOut (const int &msgCode_h, const string &msg_h, const bool &refreshGUI_h=true) const |
Overloaded function to print the output log. More... | |
void | msgOut (const int &msgCode_h, const int &msg_h, const bool &refreshGUI_h=true) const |
Overloaded function to print the output log. More... | |
void | msgOut (const int &msgCode_h, const double &msg_h, const bool &refreshGUI_h=true) const |
Overloaded function to print the output log. More... | |
int | s2i (const string &string_h) const |
string to integer conversion More... | |
double | s2d (const string &string_h) const |
string to double conversion More... | |
double | s2d (const string &string_h, const bool &replaceComma) const |
string to double conversion More... | |
bool | s2b (const string &string_h) const |
string to bool conversion More... | |
string | i2s (const int &int_h) const |
integer to string conversion More... | |
string | d2s (const double &double_h) const |
double to string conversion More... | |
string | b2s (const bool &bool_h) const |
bool to string conversion More... | |
vector< int > | s2i (const vector< string > &string_h) const |
string to integer conversion (vector) More... | |
vector< double > | s2d (const vector< string > &string_h, const bool &replaceComma=false) const |
string to double conversion (vector) More... | |
vector< bool > | s2b (const vector< string > &string_h) const |
string to bool conversion (vector) More... | |
vector< string > | i2s (const vector< int > &int_h) const |
integer to string conversion (vector) More... | |
vector< string > | d2s (const vector< double > &double_h) const |
double to string conversion (vector) More... | |
vector< string > | b2s (const vector< bool > &bool_h) const |
bool to string conversion (vector) More... | |
int | getType (const string &type_h) const |
Return a type according to enum TYPE_* from a string (eg: "string" -> TYPE_STRING (2)) More... | |
void | refreshGUI () const |
Ping to periodically return the control to the GUI. More... | |
template<typename T > | |
string | toString (const T &x) const |
template<typename T > | |
T | stringTo (const std::string &s) const |
int | vSum (const vector< int > &vector_h) const |
double | vSum (const vector< double > &vector_h) const |
int | vSum (const vector< vector< int > > &vector_h) const |
double | vSum (const vector< vector< double > > &vector_h) const |
void | tokenize (const string &str, vector< string > &tokens, const string &delimiter=" ") const |
Tokenize a string using a delimiter (default is space) More... | |
void | untokenize (string &str, vector< string > &tokens, const string &delimiter=" ") const |
template<typename K , typename V > | |
V | findMap (const map< K, V > &mymap, const K &key, const int &error_level=MSG_CRITICAL_ERROR, const V ¬FoundValue=numeric_limits< V >::min()) const |
Lookup a map for a value. Return the value starting from the key. More... | |
template<typename K , typename V > | |
void | changeMapValue (map< K, V > &mymap, const K &key, const V &value, const int &error_level=MSG_CRITICAL_ERROR) |
Change the value stored in a map given the key and the new value. More... | |
template<typename K , typename V > | |
void | incrMapValue (map< K, V > &mymap, const K &key, const V &value, const int &error_level=MSG_CRITICAL_ERROR) |
Increments a value stored in a map of the specified value, given the key. More... | |
template<typename K , typename V > | |
void | incrOrAddMapValue (map< K, V > &mymap, const K &key, const V &value) |
Increments a value stored in a map of the specified value, given the key. More... | |
template<typename K , typename V > | |
void | resetMapValues (map< K, V > &mymap, const V &value) |
Reset all values stored in a map to the specified one. More... | |
template<typename K , typename V > | |
map< K, V > | vectorToMap (const vector< K > &keys, const V &value=0.0) |
Returns a map built using the given vector and the given (scalar) value as keys/values pairs. More... | |
template<typename T > | |
vector< T > | positionsToContent (const vector< T > &vector_h, const vector< int > &positions) |
Return a vector of content from a vector and a vector of positions (int) More... | |
template<typename V > | |
void | debugMap (const map< iisskey, V > &mymap) |
Debug a map. More... | |
template<typename K , typename V > | |
void | debugMap (const map< K, V > &mymap, const K &key) |
template<typename K > | |
int | getMaxPos (const vector< K > &v) |
Returns the position of the maximum element in the vector (the last one in case of multiple equivalent maxima) More... | |
template<typename K > | |
int | getMinPos (const vector< K > &v) |
Returns the position of the minimum element in the vector (the first one in case of multiple equivalent minima) More... | |
template<typename K > | |
K | getMax (const vector< K > &v) |
Returns the value of the maximum element in the vector (the last one in case of multiple equivalent maxima) More... | |
template<typename K > | |
K | getMin (const vector< K > &v) |
Returns the value of the minimum element in the vector (the first one in case of multiple equivalent minima) More... | |
template<typename K > | |
double | getAvg (const vector< K > &v) |
Returns the average of the elements in the vector. More... | |
template<typename K > | |
double | getSd (const vector< K > &v, bool sample=true) |
template<typename K > | |
int | getPos (const K &element, const vector< K > &v, const int &msgCode_h=MSG_CRITICAL_ERROR) |
template<typename K > | |
bool | inVector (const K &element, const vector< K > &v) |
double | normSample (const double &avg, const double &stdev, const double &minval=NULL, const double &maxval=NULL) const |
Sample from a normal distribution with bounds. Slower (double time, but still you see the diff only after milion of loops). More... | |
template<typename K > | |
K | normSample (normal_distribution< K > &d, std::mt19937 &gen, const K &minval=NULL, const K &maxval=NULL) const |
Sample from a normal distribution with bounds. Faster (half time) as the normal_distribution is made only once. More... | |
template<typename T > | |
std::string | toString (const T &x) const |
Public Attributes | |
vector< vector< double > > | vol |
vector< vector< double > > | area |
vector< vector< double > > | deltaArea |
vector< double > | initialDc0Area |
vector< vector< double > > | hArea |
vector< vector< double > > | hVol |
vector< vector< double > > | hProductivity |
vector< vector< vector< double > > > | hVol_byPrd |
map< int, vector< double > > | regArea |
vector< double > | vReg |
vector< vector< double > > | vMort |
vector< vector< double > > | vMortAdd |
vector< double > | expectedReturns |
vector< int > | optDc |
vector< int > | optFtChosen |
vector< int > | optDcChosen |
vector< double > | expectedAnnualIncome_carbon |
vector< double > | expectedAnnualIncome_timber |
vector< double > | expectedReturnsNotCorrByRa |
by ft. Attenction, reported expReturns at "forest" level (compared with those at forest type level) do NOT include ra More... | |
vector< vector< double > > | vol_l |
store the volumes of the previous year More... | |
vector< vector< double > > | area_l |
store the areas of the previous year More... | |
vector< vector< double > > | beta |
vector< vector< double > > | mort |
vector< vector< double > > | addMort |
vector< vector< double > > | tp |
vector< vector< double > > | cumTp |
This is time of passage to REACH a diameter class (while the exogenous tp by diameter class is the time of passage to LEAVE to the next d class). By ft,dc. More... | |
vector< vector< double > > | vHa |
Volume at hectar by each diameter class [m^3/ha]. More... | |
vector< vector< double > > | cumAlive |
Cumulative prob of remaining alive at beginnin of a given diam class. More... | |
vector< vector< double > > | cumTp_exp |
This is the expected version of cumTp, used for calculating profits. More... | |
vector< vector< double > > | vHa_exp |
This is the expected version of vHa, used for calculating profits. More... | |
vector< vector< double > > | cumAlive_exp |
This is the expected version of cumAlive, used for calculating profits. More... | |
double | portfolioVarRa |
Sampling derived risk aversion on portfolio variance for of this agent. More... | |
double | expType |
Sampling derived expectation types of this agent (forest bilogical parameters: growth, mortality) More... | |
double | expTypePrices |
Sampling derived expectation types of this agent (prices) More... | |
bool | usePortfolio |
Sampling derived usage of portfolio management (false/true) More... | |
vector< double > | avalCoef |
Availability (of wood resources) coefficient. A [0,1] coefficient (new: by forest type) that reduces avaiability of wood resources to exploitation due to local reasons (protected area, altimetry..) More... | |
Private Attributes | |
map< string, double > | values |
Map of values for each layer. More... | |
map< string, double >::const_iterator | vIter |
double | ID |
int | pxX |
int | pxY |
string | pxComments |
double | cachedDouble |
Cachable double used in some optimized algorithms. More... | |
vector< double > | spMods |
The sampled spatial modifiers (by forest type) More... | |
ModelRegion * | l2region |
Pointer to level 2 region where this pixel is. More... | |
Additional Inherited Members | |
Protected Attributes inherited from BaseClass | |
ThreadManager * | MTHREAD |
Pointer to the Thread manager. More... | |
Pixel-level class.
This class manage the info at the pixel level. A vector of pixel objects is owned by the class Gis.
Pixel | ( | double | ID_h, |
ThreadManager * | MTHREAD_h | ||
) |
Definition at line 27 of file Pixel.cpp.
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), value_h,.
Definition at line 135 of file Pixel.cpp.
Referenced by Gis::applyForestReclassification(), ModelCoreSpatial::loadExogenousForestLayers(), Layers::randomShuffle(), setValue(), and ModelCoreSpatial::updateMapAreas().
|
inline |
Definition at line 86 of file Pixel.h.
void correctInputMultiplier | ( | const string & | multiplierName, |
const string & | forName, | ||
double | coefficient = 1 |
||
) |
|
inline |
Definition at line 74 of file Pixel.h.
double getDoubleValue | ( | const string & | layerName_h, |
const bool & | returnZeroForNoValue = false |
||
) | const |
Return the value for a specific layer.
Definition at line 158 of file Pixel.cpp.
Referenced by Gis::applyForestReclassification(), ThreadManager::computeQuery(), Layers::countMyPixels(), getDoubleValue(), getPathMortality(), ModelCoreSpatial::initializePixelArea(), ModelCoreSpatial::loadExogenousForestLayers(), Layers::print(), Layers::printBinMap(), Layers::randomShuffle(), ModelCoreSpatial::runBiologicalModule(), ModelCoreSpatial::runManagementModule(), ModelRegion::setMyPixels(), ModelCoreSpatial::sumRegionalForData(), and ModelCoreSpatial::updateMapAreas().
double getDoubleValue | ( | const string & | parName, |
const string & | forName, | ||
const string & | dClass, | ||
const int & | year, | ||
const bool & | returnZeroForNoValue = false |
||
) |
Definition at line 380 of file Pixel.cpp.
|
inline |
Definition at line 67 of file Pixel.h.
Referenced by ModelCoreSpatial::initializePixelArea(), Output::printDebugPixelValues(), ModelCoreSpatial::runBiologicalModule(), ModelCoreSpatial::sumRegionalForData(), and ModelCoreSpatial::updateMapAreas().
double getMultiplier | ( | const string & | multiplierName, |
const string & | forName, | ||
int | year = DATA_NOW |
||
) |
getMultiplier() returns the value of the multiplier as memorized in the spatialDataSubfolder layers or in the forData table. It will looks for exact match or for lower years if available. If no layers are available or the usePixelData option is not used, it will return 1. If the tp_multiplier is asked for, it will adjusts for spatial variance coefficient. If the mortCoef_multiplier is used and we are in the table settings it will adjust it by mortCoef_link.
Definition at line 184 of file Pixel.cpp.
Referenced by ModelCoreSpatial::cachePixelExogenousData(), ModelCoreSpatial::computeCumulativeData(), and Output::printDebugPixelValues().
ModelRegion * getMyRegion | ( | const int & | rLevel = 2 | ) |
Definition at line 449 of file Pixel.cpp.
Referenced by getMultiplier().
double getPastRegArea | ( | const int & | ft_idx, |
const int & | year | ||
) |
Definition at line 390 of file Pixel.cpp.
Referenced by ModelCoreSpatial::runBiologicalModule().
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 (default the running year)
The mortality returned is the increased yearly mortality due to any affecting pathogenes. The function load the relevant pathogen mortality rule(s), for each of them check for how many years the phatogen is present with concentrations above the threshold and returns the relavant increase in mortality (summing them in case of multiple pathogens).
Definition at line 329 of file Pixel.cpp.
Referenced by ModelCoreSpatial::cachePixelExogenousData(), ModelCoreSpatial::computeCumulativeData(), ModelCoreSpatial::runManagementModule(), and ModelCoreSpatial::sumRegionalForData().
vector< Pixel * > getPixelsAtDistLevel | ( | int | distLevel_h | ) | const |
Return a vector of pixels at the specified distance (in levels, not in physical units)
The function return a vector of pointers to Pixels at the gived distance from the caller pixel.\ The list start with those on the Top, then add those on the right, those on the bottom and those on the left. Finally it had the corner pixels (that are more far).\ It takes into consideration borders correctly.
Fully tested on internal points as well semi-border cases, border cases and corner cases. ALL OK.
distLevel_h | Distance in number of adiacent pixels. It has to be at least 1 (the function return an error if it is 0). |
Definition at line 53 of file Pixel.cpp.
Referenced by getY().
double getSpModifier | ( | const string & | ft | ) |
Definition at line 437 of file Pixel.cpp.
Referenced by getMultiplier(), and setSpModifier().
double getSTData | ( | const string & | parName, |
const string & | forName, | ||
int | year, | ||
const string & | d2 = "" , |
||
double | naToReturn = RETNA |
||
) |
getSTData() (standing for "get spatial temporal data") returns the value memorized in a spatial layer whose name follows the above convention
parName::fType::dimension2::year
It queries the layer framework with the following logic:
parName | Parameter name (exact match) |
forName | Forest type (exact match or look for "") |
year | Year (exact match or look for the highest lower value). Accept enum DATA_NOW |
d2 | Optional dimension (exact match or look for "", string. Default = "") |
naToReturn | Optional value to return if no match (default to secnario-specific novalue) |
Definition at line 246 of file Pixel.cpp.
Referenced by ModelCoreSpatial::cachePixelExogenousData(), ModelCoreSpatial::computeCumulativeData(), and getMultiplier().
|
inline |
Definition at line 68 of file Pixel.h.
Referenced by ThreadManager::computeQuery(), Gis::getDistance(), getDoubleValue(), getPixelsAtDistLevel(), and Output::printDebugPixelValues().
|
inline |
Definition at line 69 of file Pixel.h.
Referenced by ThreadManager::computeQuery(), Gis::getDistance(), getDoubleValue(), getPixelsAtDistLevel(), and Output::printDebugPixelValues().
void newYear | ( | ) |
Definition at line 385 of file Pixel.cpp.
Referenced by Scheduler::run().
|
inline |
Definition at line 85 of file Pixel.h.
|
inline |
Definition at line 83 of file Pixel.h.
Referenced by Gis::setSpace().
|
inline |
Definition at line 90 of file Pixel.h.
Referenced by ModelRegion::setMyPixels().
void setPastRegArea | ( | const double & | value, |
const int & | ft_idx, | ||
const int & | year | ||
) |
Definition at line 400 of file Pixel.cpp.
|
inline |
Definition at line 87 of file Pixel.h.
Referenced by ModelCoreSpatial::assignSpMultiplierPropToVols().
|
inline |
void swap | ( | const int & | swap_what | ) |
Assign to the delayed value the current values, e.g. vol_l = vol.
Definition at line 422 of file Pixel.cpp.
Referenced by ModelCoreSpatial::resetPixelValues(), and setSpModifier().
vector<vector <double> > addMort |
Definition at line 134 of file Pixel.h.
Referenced by ModelCoreSpatial::cachePixelExogenousData(), ModelCoreSpatial::resetPixelValues(), and ModelCoreSpatial::runBiologicalModule().
vector<vector <double> > area |
Definition at line 107 of file Pixel.h.
Referenced by ModelCoreSpatial::initializePixelArea(), ModelCoreSpatial::loadExogenousForestLayers(), Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runBiologicalModule(), ModelCoreSpatial::runManagementModule(), ModelCoreSpatial::sumRegionalForData(), swap(), and ModelCoreSpatial::updateMapAreas().
vector<vector <double> > area_l |
store the areas of the previous year
Definition at line 130 of file Pixel.h.
Referenced by ModelCoreSpatial::initializePixelArea(), ModelCoreSpatial::loadExogenousForestLayers(), ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runBiologicalModule(), and swap().
vector<double> avalCoef |
Availability (of wood resources) coefficient. A [0,1] coefficient (new: by forest type) that reduces avaiability of wood resources to exploitation due to local reasons (protected area, altimetry..)
Definition at line 148 of file Pixel.h.
Referenced by ModelCoreSpatial::cachePixelExogenousData(), ModelCoreSpatial::computeInventary(), ModelData::getAvailableAliveTimber(), Pixel(), and ModelCoreSpatial::runBiologicalModule().
vector<vector <double> > beta |
Definition at line 132 of file Pixel.h.
Referenced by ModelCoreSpatial::cachePixelExogenousData(), ModelCoreSpatial::resetPixelValues(), and ModelCoreSpatial::runBiologicalModule().
|
private |
Cachable double used in some optimized algorithms.
Definition at line 157 of file Pixel.h.
Referenced by clearCache(), getCachedDouble(), and setCachedDouble().
vector<vector <double> > cumAlive |
Cumulative prob of remaining alive at beginnin of a given diam class.
Definition at line 138 of file Pixel.h.
Referenced by ModelCoreSpatial::computeCumulativeData(), and ModelCoreSpatial::resetPixelValues().
vector<vector <double> > cumAlive_exp |
This is the expected version of cumAlive, used for calculating profits.
Definition at line 141 of file Pixel.h.
Referenced by ModelCoreSpatial::computeCumulativeData(), ModelCoreSpatial::resetPixelValues(), and ModelCoreSpatial::runManagementModule().
vector<vector <double> > cumTp |
This is time of passage to REACH a diameter class (while the exogenous tp by diameter class is the time of passage to LEAVE to the next d class). By ft,dc.
Definition at line 136 of file Pixel.h.
Referenced by ModelCoreSpatial::computeCumulativeData(), ModelCoreSpatial::getAvgAgeByDc(), and ModelCoreSpatial::resetPixelValues().
vector<vector <double> > cumTp_exp |
This is the expected version of cumTp, used for calculating profits.
Definition at line 139 of file Pixel.h.
Referenced by ModelCoreSpatial::computeCumulativeData(), ModelCoreSpatial::getVHaByYear(), ModelCoreSpatial::resetPixelValues(), and ModelCoreSpatial::runManagementModule().
vector<vector <double> > deltaArea |
Definition at line 108 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), and ModelCoreSpatial::runManagementModule().
vector<double> expectedAnnualIncome_carbon |
Definition at line 124 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), and ModelCoreSpatial::runManagementModule().
vector<double> expectedAnnualIncome_timber |
Definition at line 125 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), and ModelCoreSpatial::runManagementModule().
vector<double> expectedReturns |
Definition at line 120 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runManagementModule(), ModelCoreSpatial::sumRegionalForData(), and ModelCoreSpatial::updateOtherMapData().
vector<double> expectedReturnsNotCorrByRa |
by ft. Attenction, reported expReturns at "forest" level (compared with those at forest type level) do NOT include ra
Definition at line 127 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), ModelCoreSpatial::runManagementModule(), and ModelCoreSpatial::sumRegionalForData().
double expType |
Sampling derived expectation types of this agent (forest bilogical parameters: growth, mortality)
Definition at line 145 of file Pixel.h.
Referenced by ModelCoreSpatial::computeCumulativeData().
double expTypePrices |
Sampling derived expectation types of this agent (prices)
Definition at line 146 of file Pixel.h.
Referenced by ModelCoreSpatial::runManagementModule().
vector<vector <double> > hArea |
Definition at line 110 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runBiologicalModule(), ModelCoreSpatial::runManagementModule(), ModelCoreSpatial::sumRegionalForData(), and ModelCoreSpatial::updateMapAreas().
vector<vector <double> > hProductivity |
Definition at line 112 of file Pixel.h.
Referenced by ModelCoreSpatial::runBiologicalModule(), and ModelCoreSpatial::sumRegionalForData().
vector<vector <double> > hVol |
Definition at line 111 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runBiologicalModule(), and ModelCoreSpatial::sumRegionalForData().
vector< vector <vector <double> > > hVol_byPrd |
Definition at line 113 of file Pixel.h.
Referenced by ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runBiologicalModule(), and ModelCoreSpatial::sumRegionalForData().
vector<double> initialDc0Area |
Definition at line 109 of file Pixel.h.
Referenced by ModelCoreSpatial::runBiologicalModule().
|
private |
Pointer to level 2 region where this pixel is.
Definition at line 159 of file Pixel.h.
Referenced by getMyRegion().
vector<vector <double> > mort |
Definition at line 133 of file Pixel.h.
Referenced by ModelCoreSpatial::cachePixelExogenousData(), Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), and ModelCoreSpatial::runBiologicalModule().
vector<int> optDc |
Definition at line 121 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), and ModelCoreSpatial::runManagementModule().
vector<int> optDcChosen |
Definition at line 123 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), and ModelCoreSpatial::runManagementModule().
vector<int> optFtChosen |
Definition at line 122 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), and ModelCoreSpatial::runManagementModule().
double portfolioVarRa |
|
private |
Definition at line 156 of file Pixel.h.
Referenced by getPxComments(), and setPxComments().
|
private |
Definition at line 154 of file Pixel.h.
Referenced by getX(), and setCoordinates().
|
private |
Definition at line 155 of file Pixel.h.
Referenced by getY(), and setCoordinates().
map<int, vector <double> > regArea |
Definition at line 114 of file Pixel.h.
Referenced by getPastRegArea(), ModelCoreSpatial::runManagementModule(), ModelCoreSpatial::sumRegionalForData(), and ModelCoreSpatial::updateMapAreas().
|
private |
The sampled spatial modifiers (by forest type)
Definition at line 158 of file Pixel.h.
Referenced by getSpModifier(), Pixel(), and setSpModifier().
vector<vector <double> > tp |
Definition at line 135 of file Pixel.h.
Referenced by ModelCoreSpatial::cachePixelExogenousData(), ModelCoreSpatial::initializePixelArea(), Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), and ModelCoreSpatial::runBiologicalModule().
bool usePortfolio |
|
private |
Map of values for each layer.
Definition at line 151 of file Pixel.h.
Referenced by changeValue(), correctInputMultiplier(), getDoubleValue(), getSTData(), and setValue().
vector<vector <double> > vHa |
Volume at hectar by each diameter class [m^3/ha].
Definition at line 137 of file Pixel.h.
Referenced by ModelCoreSpatial::computeCumulativeData(), ModelCoreSpatial::initializePixelArea(), ModelCoreSpatial::resetPixelValues(), and ModelCoreSpatial::runBiologicalModule().
vector<vector <double> > vHa_exp |
This is the expected version of vHa, used for calculating profits.
Definition at line 140 of file Pixel.h.
Referenced by ModelCoreSpatial::computeCumulativeData(), ModelCoreSpatial::getVHaByYear(), ModelCoreSpatial::resetPixelValues(), and ModelCoreSpatial::runManagementModule().
|
mutableprivate |
Definition at line 152 of file Pixel.h.
Referenced by getDoubleValue().
vector<vector <double> > vMort |
Definition at line 118 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runBiologicalModule(), and ModelCoreSpatial::sumRegionalForData().
vector<vector <double> > vMortAdd |
Definition at line 119 of file Pixel.h.
Referenced by Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runBiologicalModule(), and ModelCoreSpatial::sumRegionalForData().
vector<vector <double> > vol |
Definition at line 90 of file Pixel.h.
Referenced by ModelCoreSpatial::assignSpMultiplierPropToVols(), ModelCoreSpatial::loadExogenousForestLayers(), Output::printDebugPixelValues(), ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runBiologicalModule(), ModelCoreSpatial::sumRegionalForData(), swap(), and ModelCoreSpatial::updateOtherMapData().
vector<vector <double> > vol_l |
store the volumes of the previous year
Definition at line 129 of file Pixel.h.
Referenced by ModelCoreSpatial::computeInventary(), ModelData::getAvailableAliveTimber(), ModelCoreSpatial::initializePixelArea(), ModelCoreSpatial::runBiologicalModule(), and swap().
vector<double> vReg |
Definition at line 117 of file Pixel.h.
Referenced by ModelCoreSpatial::resetPixelValues(), ModelCoreSpatial::runBiologicalModule(), and ModelCoreSpatial::sumRegionalForData().