Class AlternativeComponent
java.lang.Object
de.uka.ipd.sdq.dsexplore.designdecisions.alternativecomponents.AlternativeComponent
TODO: Currently, components must have the same provided _and_ required roles, otherwise, an erroneous system is created.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyChange
(org.palladiosimulator.pcm.core.composition.AssemblyContext changedAssemblyContext, org.palladiosimulator.pcm.repository.RepositoryComponent newComponent) Set the givenRepositoryComponent
as the encapsulated component of the givenAssemblyContext
Fixes assembly connectors and delegation connectors that point to the changed assembly so that they point to the new required and provided roles.generateDesignDecisions
(org.palladiosimulator.solver.models.PCMInstance pcmInstance) static AlternativeComponent
-
Method Details
-
getInstance
-
generateDesignDecisions
public List<AssembledComponentDegree> generateDesignDecisions(org.palladiosimulator.solver.models.PCMInstance pcmInstance) - See Also:
-
de.uka.ipd.sdq.dsexplore.newcandidates.INewCandidates#generateNewCandidates(de.uka.ipd.sdq.dsexplore.analysis.IAnalysisResult)
-
applyChange
public void applyChange(org.palladiosimulator.pcm.core.composition.AssemblyContext changedAssemblyContext, org.palladiosimulator.pcm.repository.RepositoryComponent newComponent) Set the givenRepositoryComponent
as the encapsulated component of the givenAssemblyContext
Fixes assembly connectors and delegation connectors that point to the changed assembly so that they point to the new required and provided roles. To do so, the right previously build component replacer is retrieved fromalternativeMap
and replace is invoked, which applies the change.- Parameters:
changedAssemblyContext
-newComponent
-currentComponent
-
-