Class PCMSystemBuilder

java.lang.Object
org.somox.analyzer.simplemodelanalyzer.builder.AbstractBuilder
org.somox.analyzer.simplemodelanalyzer.builder.PCMSystemBuilder

public class PCMSystemBuilder extends AbstractBuilder
Builder for SAMM system + architecture model structures. Additionally creates default allocation.
  • 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 code
      somoxConfiguration - SoMoX configuration object
      analysisResult - 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)