Class BasicProvidedRoleBuilder
java.lang.Object
org.somox.analyzer.simplemodelanalyzer.builder.AbstractBuilder
org.somox.analyzer.simplemodelanalyzer.builder.BasicProvidedRoleBuilder
- All Implemented Interfaces:
IRoleBuilderStrategy
Simple strategy for deriving provided interfaces. Creates a new provided role
for all inner interfaces and updates the source code decorator accordingly.
-
Field Summary
Fields inherited from class org.somox.analyzer.simplemodelanalyzer.builder.AbstractBuilder
analysisResult, astModel, somoxConfiguration
-
Constructor Summary
ConstructorDescriptionBasicProvidedRoleBuilder
(Root astModel, SoMoXConfiguration somoxConfiguration, AnalysisResult analysisResult) -
Method Summary
Modifier and TypeMethodDescriptionList<org.palladiosimulator.pcm.repository.OperationProvidedRole>
Current strategy: create a new provided role for all inner interfaces.List<org.palladiosimulator.pcm.repository.OperationRequiredRole>
Creates interface requiring role(s) for the composite component passed as result.
-
Constructor Details
-
BasicProvidedRoleBuilder
public BasicProvidedRoleBuilder(Root astModel, SoMoXConfiguration somoxConfiguration, AnalysisResult analysisResult)
-
-
Method Details
-
buildProvidedRole
public List<org.palladiosimulator.pcm.repository.OperationProvidedRole> buildProvidedRole(ComponentImplementingClassesLink result) Current strategy: create a new provided role for all inner interfaces.- Specified by:
buildProvidedRole
in interfaceIRoleBuilderStrategy
- Parameters:
result
-compositeComponentSubgraph
-- Returns:
-
buildRequiredRole
public List<org.palladiosimulator.pcm.repository.OperationRequiredRole> buildRequiredRole(ComponentImplementingClassesLink result) Description copied from interface:IRoleBuilderStrategy
Creates interface requiring role(s) for the composite component passed as result.- Specified by:
buildRequiredRole
in interfaceIRoleBuilderStrategy
- Parameters:
result
- Composite component for which to create a provided role / roles.
-