Package org.kigalisim.engine.support
Class ChangeExecutor
java.lang.Object
org.kigalisim.engine.support.ChangeExecutor
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 Summary
ConstructorsConstructorDescriptionChangeExecutor(Engine engine) Creates a new ChangeExecutor for the given engine. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteChange(String stream, EngineNumber amount, YearMatcher yearMatcher, UseKey useKeyEffective) Execute a change operation by routing to the appropriate handler.voidexecuteChange(ChangeExecutorConfig config) Execute a change operation using configuration object.
-
Constructor Details
-
ChangeExecutor
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 modifyamount- The change amount (percentage, units, or kg)yearMatcher- Matcher to determine if the change applies to current yearuseKeyEffective- The effective UseKey for the operation
-
executeChange
Execute a change operation using configuration object.- Parameters:
config- The configuration containing all parameters for the change operation
-