Class AssemblyContextCreator


  • public class AssemblyContextCreator
    extends SystemEntity
    This class constructs an AssemblyContext.
    See Also:
    AssemblyContext
    • Constructor Detail

      • AssemblyContextCreator

        public AssemblyContextCreator​(SystemCreator systemCreator)
    • Method Detail

      • withEncapsulatedComponent

        public AssemblyContextCreator withEncapsulatedComponent​(org.palladiosimulator.pcm.repository.RepositoryComponent component)
        Defines the RepositoryComponent encapsulated by this assembly context.
        Parameters:
        component -
        Returns:
        this assembly context
        See Also:
        RepositoryComponent
      • withEncapsulatedComponent

        public AssemblyContextCreator withEncapsulatedComponent​(String name)
                                                         throws NoSuchElementException
        Defines the RepositoryComponent encapsulated by this assembly context. The repositories added to the org.palladiosimulator.generator.fluent.system are searched for a component that matches the given name.
        Parameters:
        component -
        Returns:
        this assembly context
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        RepositoryComponent
      • build

        public org.palladiosimulator.pcm.core.composition.AssemblyContext build()
        Description copied from class: Entity
        Turns the entity in the making into the finished entity.
        Specified by:
        build in class Entity
        Returns:
        the finished entity
      • withName

        public AssemblyContextCreator withName​(String name)
        Description copied from class: Entity
        Defines the unique name of this current entity. Once created entities are referenced by this name. Only entities with a unique name can be fetched from the model.
        Overrides:
        withName in class Entity
        Returns:
        this current entity in the making