Class EolEmissionsRecalcStrategy

java.lang.Object
org.kigalisim.engine.recalc.EolEmissionsRecalcStrategy
All Implemented Interfaces:
RecalcStrategy

public class EolEmissionsRecalcStrategy extends Object implements RecalcStrategy
Strategy for recalculating end-of-life emissions.
  • Constructor Details

    • EolEmissionsRecalcStrategy

      public EolEmissionsRecalcStrategy(Optional<UseKey> scope)
      Create a new EolEmissionsRecalcStrategy.
      Parameters:
      scope - The scope to use for calculations, empty to use engine's current scope
  • Method Details

    • execute

      public void execute(Engine target, RecalcKit kit)
      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:
      execute in interface RecalcStrategy
      Parameters:
      target - The engine instance being operated on
      kit - The recalculation kit providing access to simulation state and utilities