Class FCCWeaver
- java.lang.Object
-
- edu.kit.ipd.are.dsexplore.featurecompletions.weaver.FCCWeaver
-
public final class FCCWeaver extends Object
This class represents the entry point for weaving feature completions into PCM models. All further actions are delegated to the corresponding weaving strategy (depending on the inclusion mechanism).
-
-
Field Summary
Fields Modifier and Type Field Description static StringADAPTER_NAMEstatic StringCONCERN_REPOSITORY_NAMEstatic StringCONCERN_REPSITORY_DESCRIPTION
-
Constructor Summary
Constructors Constructor Description FCCWeaver(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard, List<org.palladiosimulator.pcm.repository.Repository> solutions, CostRepository costModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Choice>getConvertedFCCClassChoices()Returns the actual choices for FCC allocation.InclusionMechanismgetInclusionMechanism()org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartitiongetInitialPartition()org.palladiosimulator.pcm.system.SystemgetInitialSystem()List<org.palladiosimulator.pcm.repository.Repository>getSolutionRepositories()org.palladiosimulator.solver.models.PCMInstancegetWeavedInstance(org.palladiosimulator.solver.models.PCMInstance pcmToAdopt)Returns the weaved PCM instance according to the extracted choices and set inclusion mechanism.voidgrabChoices(List<Choice> notTransformedChoices)Extracts feature completion specific choices for solution and allocation from dofs.voidnextDecodeStart()Resets choices and weaving strategy for next weaving iteration.
-
-
-
Field Detail
-
ADAPTER_NAME
public static final String ADAPTER_NAME
- See Also:
- Constant Field Values
-
CONCERN_REPOSITORY_NAME
public static final String CONCERN_REPOSITORY_NAME
- See Also:
- Constant Field Values
-
CONCERN_REPSITORY_DESCRIPTION
public static final String CONCERN_REPSITORY_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FCCWeaver
public FCCWeaver(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard, List<org.palladiosimulator.pcm.repository.Repository> solutions, CostRepository costModel)
-
-
Method Detail
-
nextDecodeStart
public void nextDecodeStart()
Resets choices and weaving strategy for next weaving iteration.
-
grabChoices
public void grabChoices(List<Choice> notTransformedChoices)
Extracts feature completion specific choices for solution and allocation from dofs. Delegates all further choices to corresponding weaving strategy.- Parameters:
notTransformedChoices- all choices.
-
getWeavedInstance
public org.palladiosimulator.solver.models.PCMInstance getWeavedInstance(org.palladiosimulator.solver.models.PCMInstance pcmToAdopt)
Returns the weaved PCM instance according to the extracted choices and set inclusion mechanism.- Parameters:
pcmToAdopt- the PCM instance to be adopted.- Returns:
- the weaved PCM instance.
-
getConvertedFCCClassChoices
public List<Choice> getConvertedFCCClassChoices()
Returns the actual choices for FCC allocation. This can be done after the FCCs have been waved.- Returns:
- the actual choices for FCC allocation.
-
getSolutionRepositories
public List<org.palladiosimulator.pcm.repository.Repository> getSolutionRepositories()
-
getInclusionMechanism
public InclusionMechanism getInclusionMechanism()
-
getInitialSystem
public org.palladiosimulator.pcm.system.System getInitialSystem()
-
getInitialPartition
public org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition getInitialPartition()
-
-