Commit 44e8fc22 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Platform-Exp.-Converter: Fix containment resolution.

Issue-Ref: 3888
Issue-Url: https://af3-developer.fortiss.org/issues/3888

Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent 41454d26
PlatformConnectorInstanceConverter.java 073e050ad673f41e9d012de01c1aee6fdd04e4ce GREEN
PlatformExecUnitInstantiationConverter.java 6a003e2fbc3fc115ad39578c87ddd64f23da9593 GREEN
PlatformExecUnitInstantiationConverter.java cd360ac1bb1d719da3761455f95549bcb0411a3f YELLOW
PlatformTransmissionConnectionConverter.java 365a2fb563e4ed36a1b159dfa3bcce47216a935c GREEN
......@@ -24,6 +24,7 @@ import java.util.HashSet;
import java.util.Set;
import org.fortiss.af3.exploration.dseml.model.expression.SuperSet;
import org.fortiss.af3.exploration.model.specification.ContainedByElement;
import org.fortiss.af3.exploration.model.specification.InstanceOfElement;
import org.fortiss.af3.exploration.solutionconverter.DSESolutionArtifacts;
import org.fortiss.af3.exploration.solutionconverter.DSESolutionConverterBase;
......@@ -77,7 +78,9 @@ public class PlatformExecUnitInstantiationConverter
templateExecUnits.add(templateExecUnit);
// Add the instance (copy).
IHierarchicElementContainer currentParent = templateExecUnit.getContainer();
ContainedByElement containmentSpec =
getAndRemoveSpec(instExecUnit, ContainedByElement.class);
IHierarchicElementContainer currentParent = containmentSpec.getFutureContainerRef();
currentParent.getContainedElements().add(instExecUnit);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment