Class PCMSystemBuilder
java.lang.Object
org.somox.analyzer.simplemodelanalyzer.builder.AbstractBuilder
org.somox.analyzer.simplemodelanalyzer.builder.PCMSystemBuilder
Builder for SAMM system + architecture model structures. Additionally creates
default allocation.
-
Field Summary
Fields inherited from class org.somox.analyzer.simplemodelanalyzer.builder.AbstractBuilder
analysisResult, astModel, somoxConfiguration
-
Constructor Summary
ConstructorDescriptionPCMSystemBuilder
(Root gastModel, SoMoXConfiguration somoxConfiguration, AnalysisResult analysisResult, ComponentBuilder componentBuilder) Main builder used to create model elements of the SAMM during component detection with SoMoX. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Replicates roles of inner components and establishes delegation connectors for them.static org.palladiosimulator.pcm.core.composition.ProvidedDelegationConnector
createSystemProvidedRoleAndDelegationConnector
(org.palladiosimulator.pcm.system.System pcmSystem, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext, org.palladiosimulator.pcm.repository.OperationProvidedRole innerProvidedRole, String name)
-
Constructor Details
-
PCMSystemBuilder
public PCMSystemBuilder(Root gastModel, SoMoXConfiguration somoxConfiguration, AnalysisResult analysisResult, ComponentBuilder componentBuilder) Main builder used to create model elements of the SAMM during component detection with SoMoX.- Parameters:
gastModel
- The GAST model containing the analyzed source codesomoxConfiguration
- SoMoX configuration objectanalysisResult
- Object holding the root elements of the models to create
-
-
Method Details
-
buildSystemModel
public void buildSystemModel()Replicates roles of inner components and establishes delegation connectors for them. Updates the PCM system. Creates a PCM for the last composite component of the repository model. Creates a default allocation with to a default target environment. -
createSystemProvidedRoleAndDelegationConnector
public static org.palladiosimulator.pcm.core.composition.ProvidedDelegationConnector createSystemProvidedRoleAndDelegationConnector(org.palladiosimulator.pcm.system.System pcmSystem, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext, org.palladiosimulator.pcm.repository.OperationProvidedRole innerProvidedRole, String name)
-