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