-
Notifications
You must be signed in to change notification settings - Fork 0
House API
Ƭ Types: Object
Name | Type |
---|---|
DataE |
DataE |
HeaterE |
HeaterE |
HouseE |
HouseE |
HouseT |
HouseT |
YearE |
YearE |
- computeStudy
- getData
- getDataset
- getEmissionAvg
- getEmissionAvgByHouse
- getEmissionConsumed
- getEmissionEstimated
- build
• new default(dataSet
, data
)
warning
Should not be used : please use the static build method using dataset enum type DataE
Name | Type |
---|---|
dataSet |
DataE |
data |
DataI |
• Private
avgEmission: undefined
| number
• Private
avgEmissionByHouse: undefined
| number
• Private
data: DataI
• Private
dataSet: DataE
• Private
emissionFromStudy: undefined
| { apartmentEmission
: number
; houseEmission
: number
}
▸ Private
computeStudy(study
): Object
Return the total co2 estimation from house/apartment study in kgCO2e/year.
warning
Implementation is defined as a lazy singleton that compute only once.
Name | Type | Description |
---|---|---|
study |
ConsumptionFactorsT |
the raw study data |
Object
The estimated co2 emission in kgCO2e/year
Name | Type |
---|---|
apartmentEmission |
number |
houseEmission |
number |
▸ getData(): DataI
Return constants data loaded
DataI
constant data loaded
▸ getDataset(): DataE
Return dataset name
DataE
constant dataset loaded
▸ getEmissionAvg(): number
Return the average co2 estimation from housing heating in kgCO2e/year (per person).
warning
Implementation is defined as a lazy singleton that compute only once.
number
The estimated co2 emission in kgCO2e/year (per person)
▸ getEmissionAvgByHouse(): number
Return the average co2 estimation from housing heating in kgCO2e/year (per house-apartment).
warning
Implementation is defined as a lazy singleton that compute only once.
number
The estimated co2 emission in kgCO2e/year (per house-apartment), -1 if information is not available.
▸ getEmissionConsumed(consumptions
, heater
): number
Compute the co2 emission consumed in kgCO2e from a list of consumed ressources Negative values are allowed (this could be due to energy provider correction)
Name | Type | Description |
---|---|---|
consumptions |
number [] |
list consumptions made in unit depending on heater type |
heater |
HeaterE |
type of heater in use |
number
the real emission consummed from bills consumptions in kgCO2e -1 in case of error (constants not available from dataset)
▸ getEmissionEstimated(house
): number
Compute the CO2 emissions estimation for a house in kgCO2e/year
description
We compute here the CO2e emission estimation from heating housing with this simple computation:
- Emission = Surface * ConsumptionFactor * CombustibleFactor * ClimateCoef
- [kgCO2e/year] = [m²] * [kWh/(m².year)] * [kgCO2e/kW] * Cste
If the region or region correction factor is not found - ClimateCoef = 1 is applied.
Name | Type | Description |
---|---|---|
house |
HouseT |
the house |
number
the estimated house emissions in kgCO2e/year -1 in case of error (constants not available from dataset)
▸ Static
build(dataset
):
Create new instance from dataset
Name | Type | Description |
---|---|---|
dataset |
DataE |
the dataset to be used with this calculator |
new House calculator - Throw error if dataset not loaded.
License MIT © Compte CO2 - M.J-L