Class ChangeExecutor

java.lang.Object
org.kigalisim.engine.support.ChangeExecutor

public class ChangeExecutor extends Object
Handles change operations for different types of streams.

This class provides methods to handle changes to component streams (domestic, import), derived streams (equipment), sales streams, and different change types (percentage, units, volume).

  • Constructor Details

    • ChangeExecutor

      public ChangeExecutor(Engine engine)
      Creates a new ChangeExecutor for the given engine.
      Parameters:
      engine - The Engine instance to operate on
  • Method Details

    • executeChange

      public void executeChange(String stream, EngineNumber amount, YearMatcher yearMatcher, UseKey useKeyEffective)
      Execute a change operation by routing to the appropriate handler.
      Parameters:
      stream - The stream identifier to modify
      amount - The change amount (percentage, units, or kg)
      yearMatcher - Matcher to determine if the change applies to current year
      useKeyEffective - The effective UseKey for the operation
    • executeChange

      public void executeChange(ChangeExecutorConfig config)
      Execute a change operation using configuration object.
      Parameters:
      config - The configuration containing all parameters for the change operation