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 TypeMethodDescriptionvoidapplyChange(org.palladiosimulator.pcm.core.composition.AssemblyContext changedAssemblyContext, org.palladiosimulator.pcm.repository.RepositoryComponent newComponent) Set the givenRepositoryComponentas the encapsulated component of the givenAssemblyContextFixes 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.core.models.PCMInstance pcmInstance) static AlternativeComponent
-
Method Details
-
getInstance
-
generateDesignDecisions
public List<AssembledComponentDegree> generateDesignDecisions(org.palladiosimulator.solver.core.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 givenRepositoryComponentas the encapsulated component of the givenAssemblyContextFixes 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 fromalternativeMapand replace is invoked, which applies the change.- Parameters:
changedAssemblyContext-newComponent-currentComponent-
-