Class EngineResult
java.lang.Object
org.kigalisim.engine.serializer.EngineResult
Engine execution result for a specific substance, application, and year.
This class encapsulates all the calculated values for a simulation result including manufacturing, import, consumption, emissions, and equipment data.
-
Constructor Summary
ConstructorsConstructorDescriptionEngineResult(EngineResultBuilder builder) Constructor for creating an EngineResult instance from a builder. -
Method Summary
Modifier and TypeMethodDescriptionGet the application.Get the bank change kg value.Get the bank change tCO2e value.Get the bank kg value.Get the bank tCO2e value.Get the total consumption.getConsumption(boolean includeRecycling) Get the total consumption with optional recycling inclusion.Get the domestic value.Get the domestic consumption value.Get the energy consumption value.Get the greenhouse gas emissions from end-of-life equipment.Get the export value.Get the export consumption value.Get the import value.Get the import consumption value.Get the greenhouse gas emissions from initial charge activities.Get the population value.Get the amount of new equipment added this year.Get the greenhouse gas emissions from recharge activities.Get the recycle value.Get the recycle consumption value.Get the scenario name.Get the substance.Get the trade supplement data.intGet the trial number.intgetYear()Get the year the result is relevant to.
-
Constructor Details
-
EngineResult
Constructor for creating an EngineResult instance from a builder.This constructor accepts an EngineResultBuilder instance and extracts all configured field values from it to initialize this result.
- Parameters:
builder- The EngineResultBuilder instance with all required fields configured
-
-
Method Details
-
getApplication
-
getSubstance
-
getYear
public int getYear()Get the year the result is relevant to.- Returns:
- The year
-
getDomestic
Get the domestic value.- Returns:
- The domestic value in volume like kg
-
getImport
-
getRecycle
Get the recycle value.- Returns:
- The recycle value in volume like kg
-
getConsumption
Get the total consumption.By default, excludes recycling consumption to measure virgin material consumption.
- Returns:
- The virgin material consumption value in tCO2e or similar
-
getConsumption
Get the total consumption with optional recycling inclusion.- Parameters:
includeRecycling- If true, includes recycling consumption in the total- Returns:
- The consumption value in tCO2e or similar
-
getDomesticConsumption
Get the domestic consumption value.- Returns:
- The domestic consumption value in tCO2e or equivalent
-
getImportConsumption
Get the import consumption value.- Returns:
- The import consumption value in tCO2e or equivalent
-
getRecycleConsumption
Get the recycle consumption value.- Returns:
- The recycle consumption value in tCO2e or equivalent
-
getPopulation
-
getPopulationNew
Get the amount of new equipment added this year.- Returns:
- The amount of new equipment this year in units
-
getRechargeEmissions
Get the greenhouse gas emissions from recharge activities.- Returns:
- The recharge emissions value with units
-
getEolEmissions
Get the greenhouse gas emissions from end-of-life equipment.- Returns:
- The end-of-life emissions value with units
-
getInitialChargeEmissions
Get the greenhouse gas emissions from initial charge activities.This is an informational metric representing the GHG potential of substance initially charged into equipment. Actual emissions occur later during recharge (leakage between servicings) or at end-of-life disposal.
- Returns:
- The initial charge emissions value with units
-
getEnergyConsumption
Get the energy consumption value.- Returns:
- The energy consumption value with units
-
getExport
-
getExportConsumption
Get the export consumption value.- Returns:
- The export consumption value in tCO2e or equivalent
-
getTradeSupplement
Get the trade supplement data.- Returns:
- The trade supplement containing attribution data
-
getScenarioName
-
getTrialNumber
public int getTrialNumber()Get the trial number.- Returns:
- The trial number of the current run
-
getBankKg
Get the bank kg value.- Returns:
- The total substance volume in equipment bank in kg
-
getBankTco2e
Get the bank tCO2e value.- Returns:
- The total GHG potential of substance in equipment bank in tCO2e
-
getBankChangeKg
Get the bank change kg value.- Returns:
- The change in substance bank from previous year in kg
-
getBankChangeTco2e
Get the bank change tCO2e value.- Returns:
- The change in GHG potential of substance bank from previous year in tCO2e
-