56 double getStock(
const int & regId,
const int & stock_type)
const;
61 void registerProducts(
const double &value,
const int & regId,
const string &productName);
70 void addSavedEmissions(
const double & value,
const int & regId,
const int & em_type);
71 double getRemainingStock(
const double & initialValue,
const double & halfLife,
const double & years)
const;
This file is the header of BaseClass and it is included by ALL compiled code.
Base class for the regmas application.
Class responsable to keep the logbook of the Carbon Balance.
map< int, double > cumEmittedForOper
Map that store emissions for forest operations, including transport, by l2_region [Mt CO2].
void initialiseDeathBiomassStocks(const vector< double > &deathByFt, const int ®Id)
Initialises the stocks of death biomass for the avgLive_* years before the simulation starts.
void addSavedEmissions(const double &value, const int ®Id, const int &em_type)
Increases the value to the saved emissions for a given type and region.
void HWP_eol2energy()
Computes the energy substitution for the quota of HWP that reachs end of life and doesn't go to landf...
void initialiseProductsStocks(const vector< double > &qByProduct, const int ®Id)
Initialises the stocks of products for the avgLive_* years before the simulation starts.
map< iiskey, double > deathBiomassInventory
Map that register the death of biomass by year, l2_region and forest type (inventoried)[Mm^3 wood].
map< iiskey, double > deathBiomassExtra
Map that register the death of biomass by year, l2_region and forest type (non-inventoried biomass: b...
void registerDeathBiomass(const double &value, const int ®Id, const string &fType)
Registers the "death" of a given amount of biomass, storing it in the deathBiomass map.
map< iiskey, double > products
Map that register the production of a given product by year, l2_region and product [Mm^3 wood].
void registerTransports(const double &distQ, const int ®Id)
Registers the quantities emitted by transport of wood FROM a given region.
void registerProducts(const double &value, const int ®Id, const string &productName)
Registers the production of a given amount of products, storing it in the products maps....
map< int, double > cumSubstitutedEnergy
Map that store the cumulative CO2 substituted for energy consumption, by l2_region [Mt CO2].
double getStock(const int ®Id, const int &stock_type) const
Returns the current stock of carbon [Mt CO2].
double getRemainingStock(const double &initialValue, const double &halfLife, const double &years) const
Apply a single exponential decay model to retrieve the remining stock given the initial stock,...
double getCumSavedEmissions(const int ®Id, const int &em_type) const
Returns the current cumulative saved emissions by type [Mt CO2].
void initialiseEmissionCounters()
Initialises the emission counters to zero.
map< int, double > cumSubstitutedMaterial
Map that store the cumulative CO2 substituted using less energivory material, by l2_region [Mt CO2].
void registerHarvesting(const double &value, const int ®Id, const string &fType)
Registers the harvesting of trees increasing the value of cumEmittedForOper.
Thread manager. Responsable to manage the main thread and "speak" with the GUI.