Class NonDuplicatingInterfacePortBuilder
java.lang.Object
org.somox.analyzer.simplemodelanalyzer.builder.AbstractBuilder
org.somox.analyzer.simplemodelanalyzer.builder.NonDuplicatingInterfacePortBuilder
- All Implemented Interfaces:
IRoleBuilderStrategy
public class NonDuplicatingInterfacePortBuilder
extends AbstractBuilder
implements IRoleBuilderStrategy
Idea: All interfaces which are not required by internal interfaces (and
consequently captured in assembly connectors) are exposed as provided
interfaces (interface ports) of the composite component.
Additionally creates provided and required delegation connectors.
Additionally creates provided and required delegation connectors.
-
Field Summary
Fields inherited from class org.somox.analyzer.simplemodelanalyzer.builder.AbstractBuilder
analysisResult, astModel, somoxConfiguration
-
Constructor Summary
ConstructorDescriptionNonDuplicatingInterfacePortBuilder
(Root gastModel, SoMoXConfiguration somoxConfiguration, AnalysisResult analysisResult, ComponentAndTypeNaming componentTypeNaming) -
Method Summary
Modifier and TypeMethodDescriptionList<org.palladiosimulator.pcm.repository.OperationProvidedRole>
buildProvidedRole
(ComponentImplementingClassesLink componentLink) Strategy: Create a new provided role for all inner interfaces which are not associated in assembly connectors.List<org.palladiosimulator.pcm.repository.OperationRequiredRole>
buildRequiredRole
(ComponentImplementingClassesLink componentLink) Strategy: Create a new interface port for all inner interfaces which are not associated in assembly connectors.
-
Constructor Details
-
NonDuplicatingInterfacePortBuilder
public NonDuplicatingInterfacePortBuilder(Root gastModel, SoMoXConfiguration somoxConfiguration, AnalysisResult analysisResult, ComponentAndTypeNaming componentTypeNaming)
-
-
Method Details
-
buildProvidedRole
public List<org.palladiosimulator.pcm.repository.OperationProvidedRole> buildProvidedRole(ComponentImplementingClassesLink componentLink) Strategy: Create a new provided role for all inner interfaces which are not associated in assembly connectors. Additionally creates provided and required delegation connectors.- Specified by:
buildProvidedRole
in interfaceIRoleBuilderStrategy
- Parameters:
componentLink
- The composite component for which to build interface ports
-
buildRequiredRole
public List<org.palladiosimulator.pcm.repository.OperationRequiredRole> buildRequiredRole(ComponentImplementingClassesLink componentLink) Strategy: Create a new interface port for all inner interfaces which are not associated in assembly connectors. Additionally creates provided and required delegation connectors.- Specified by:
buildRequiredRole
in interfaceIRoleBuilderStrategy
- Parameters:
componentLink
- The composite component for which to build interface ports
-