Class ConsumptionRecalcStrategy

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

public class ConsumptionRecalcStrategy extends Object implements RecalcStrategy
Strategy for recalculating consumption.
  • Constructor Details

    • ConsumptionRecalcStrategy

      public ConsumptionRecalcStrategy(Optional<UseKey> scope)
      Create a new ConsumptionRecalcStrategy.
      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)
      Description copied from interface: RecalcStrategy
      Execute the recalculation strategy with the given engine and RecalcKit.
      Specified by:
      execute in interface RecalcStrategy
      Parameters:
      target - The engine on which to execute the recalculation
      kit - The RecalcKit containing required dependencies