Class FCCStructureHandler
- java.lang.Object
-
- edu.kit.ipd.are.dsexplore.featurecompletions.weaver.strategy.handler.FCCStructureHandler
-
public class FCCStructureHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description FCCStructureHandler(CompletionComponent fcc, SolutionManager mergedRepoManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.palladiosimulator.pcm.repository.RepositoryComponent>
getAffectedComponents()
org.palladiosimulator.pcm.core.composition.AssemblyContext
getComponentsIntantiatingFCC(CompletionComponent fcc, List<org.palladiosimulator.pcm.core.composition.AssemblyContext> contexts)
List<CompletionComponent>
getFCCsRequiredBy(CompletionComponent fcc)
Determines all FCCs that are required by a specific FCC recursively.List<org.palladiosimulator.pcm.repository.RepositoryComponent>
getRequiredComplementa(List<org.palladiosimulator.pcm.repository.RepositoryComponent> realizingComponents)
Determines all complementa that are required by the specified components.<T> List<T>
getStructureOfFCCAndRequiredAccordingTo(Function<org.palladiosimulator.pcm.repository.RepositoryComponent,List<T>> resolvingFunction)
boolean
requiresComplementa(List<org.palladiosimulator.pcm.repository.RepositoryComponent> realizingComponents)
Checks if any of the specified FCCs requires an additional complementum.
-
-
-
Constructor Detail
-
FCCStructureHandler
public FCCStructureHandler(CompletionComponent fcc, SolutionManager mergedRepoManager)
-
-
Method Detail
-
getAffectedComponents
public List<org.palladiosimulator.pcm.repository.RepositoryComponent> getAffectedComponents()
-
getFCCsRequiredBy
public List<CompletionComponent> getFCCsRequiredBy(CompletionComponent fcc)
Determines all FCCs that are required by a specific FCC recursively.- Parameters:
fcc
- the FCC.- Returns:
- all FCCs that are required by the FCC.
-
getStructureOfFCCAndRequiredAccordingTo
public <T> List<T> getStructureOfFCCAndRequiredAccordingTo(Function<org.palladiosimulator.pcm.repository.RepositoryComponent,List<T>> resolvingFunction)
-
requiresComplementa
public boolean requiresComplementa(List<org.palladiosimulator.pcm.repository.RepositoryComponent> realizingComponents)
Checks if any of the specified FCCs requires an additional complementum.- Parameters:
realizingComponents
- the specified FCCs.- Returns:
- whether any of the specified FCCs requires a complementum.
-
getRequiredComplementa
public List<org.palladiosimulator.pcm.repository.RepositoryComponent> getRequiredComplementa(List<org.palladiosimulator.pcm.repository.RepositoryComponent> realizingComponents)
Determines all complementa that are required by the specified components.- Parameters:
realizingComponents
- the specified components.- Returns:
- all complementa that are required.
-
getComponentsIntantiatingFCC
public org.palladiosimulator.pcm.core.composition.AssemblyContext getComponentsIntantiatingFCC(CompletionComponent fcc, List<org.palladiosimulator.pcm.core.composition.AssemblyContext> contexts)
-
-