From e5b8ecca7f2f5cc2dca1968a83dd350f449e6e96 Mon Sep 17 00:00:00 2001 From: Ralf Sieger Date: Mon, 13 May 2024 09:33:45 +0200 Subject: [PATCH] added constant for the RsourceTableManager key --- .../simulizar/reconfiguration/qvto/AbstractQVTOExecutor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.palladiosimulator.simulizar.reconfiguration.qvto/src/org/palladiosimulator/simulizar/reconfiguration/qvto/AbstractQVTOExecutor.java b/bundles/org.palladiosimulator.simulizar.reconfiguration.qvto/src/org/palladiosimulator/simulizar/reconfiguration/qvto/AbstractQVTOExecutor.java index 3ab8e1ec..83b824bd 100644 --- a/bundles/org.palladiosimulator.simulizar.reconfiguration.qvto/src/org/palladiosimulator/simulizar/reconfiguration/qvto/AbstractQVTOExecutor.java +++ b/bundles/org.palladiosimulator.simulizar.reconfiguration.qvto/src/org/palladiosimulator/simulizar/reconfiguration/qvto/AbstractQVTOExecutor.java @@ -44,6 +44,8 @@ public abstract class AbstractQVTOExecutor { private static final Logger LOGGER = Logger.getLogger(AbstractQVTOExecutor.class); + public static final String KEY_RESOURCE_TABLE_MANAGER = "resourceTableManager"; + // store mapping model type -> model instance private final QVToModelCache availableModels; private final ModelTransformationCache transformationCache; @@ -172,7 +174,7 @@ protected ExecutionDiagnostic executeTransformationInternal(QvtoModelTransformat IResourceTableManager resourceTableManager, Map configParams) { ModelExtent[] modelExtents = setupModelExtents(Objects.requireNonNull(modelTransformation)); Map contextParams = new HashMap<>(configParams); - configParams.put("resourceTableManager", resourceTableManager); + configParams.put(KEY_RESOURCE_TABLE_MANAGER, resourceTableManager); ExecutionContext executionContext = setupExecutionContext(contextParams); // now run the transformation assigned to the executor with the given // input and output and execution context