Class AlternativeComponent
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.designdecisions.alternativecomponents.AlternativeComponent
-
public class AlternativeComponent extends Object
TODO: Currently, components must have the same provided _and_ required roles, otherwise, an erroneous system is created.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.List<AssembledComponentDegree>
generateDesignDecisions(org.palladiosimulator.solver.models.PCMInstance pcmInstance)
static AlternativeComponent
getInstance()
-
-
-
Method Detail
-
getInstance
public static AlternativeComponent 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
-
-
-