Package org.kigalisim.engine.recalc
Class EolEmissionsRecalcStrategy
java.lang.Object
org.kigalisim.engine.recalc.EolEmissionsRecalcStrategy
- All Implemented Interfaces:
RecalcStrategy
Strategy for recalculating end-of-life emissions.
-
Constructor Summary
ConstructorsConstructorDescriptionEolEmissionsRecalcStrategy(Optional<UseKey> scope) Create a new EolEmissionsRecalcStrategy. -
Method Summary
-
Constructor Details
-
EolEmissionsRecalcStrategy
Create a new EolEmissionsRecalcStrategy.- Parameters:
scope- The scope to use for calculations, empty to use engine's current scope
-
-
Method Details
-
execute
Recalculate end-of-life emissions based on the retirement delta.This method calculates the amount of equipment retired during the current year using the delta between the cumulative retired stream and the priorRetired stream (which holds the retired count from the start of this year). The difference gives us the amount retired during this year's operations. This amount is then converted to GHG emissions and updated in the simulation state.
- Specified by:
executein interfaceRecalcStrategy- Parameters:
target- The engine instance being operated onkit- The recalculation kit providing access to simulation state and utilities
-