Package org.kigalisim.engine.recalc
Class PopulationChangeRecalcStrategy
java.lang.Object
org.kigalisim.engine.recalc.PopulationChangeRecalcStrategy
- All Implemented Interfaces:
RecalcStrategy
Strategy for recalculating population changes.
-
Constructor Summary
ConstructorsConstructorDescriptionPopulationChangeRecalcStrategy(Optional<UseKey> scope, Optional<Boolean> useExplicitRecharge) Create a new PopulationChangeRecalcStrategy. -
Method Summary
-
Constructor Details
-
PopulationChangeRecalcStrategy
public PopulationChangeRecalcStrategy(Optional<UseKey> scope, Optional<Boolean> useExplicitRecharge) Create a new PopulationChangeRecalcStrategy.- Parameters:
scope- The scope to use for calculations, empty to use engine's current scopeuseExplicitRecharge- Whether to use explicit recharge, empty to default to true
-
-
Method Details
-
execute
Description copied from interface:RecalcStrategyExecute the recalculation strategy with the given engine and RecalcKit.- Specified by:
executein interfaceRecalcStrategy- Parameters:
target- The engine on which to execute the recalculationkit- The RecalcKit containing required dependencies
-