Class SystemCreator

    • Constructor Detail

      • SystemCreator

        public SystemCreator​(org.palladiosimulator.pcm.resourcetype.ResourceRepository resources,
                             IModelValidator validator)
    • Method Detail

      • withName

        public SystemCreator 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.
        Specified by:
        withName in interface ISystem
        Overrides:
        withName in class Entity
        Returns:
        this current entity in the making
      • build

        protected org.palladiosimulator.pcm.system.System 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
      • createSystemNow

        public org.palladiosimulator.pcm.system.System createSystemNow()
        Description copied from interface: ISystemAddition
        Completes the org.palladiosimulator.generator.fluent.system creation.
        Specified by:
        createSystemNow in interface ISystemAddition
        Returns:
        the final org.palladiosimulator.generator.fluent.system object
        See Also:
        System
      • addToSystem

        public ISystemAddition addToSystem​(AssemblyContextCreator context)
        Description copied from interface: ISystemAddition
        Adds an AssemblyContext to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished AssemblyContext.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        AssemblyContext
      • addRepository

        public ISystem addRepository​(org.palladiosimulator.pcm.repository.Repository repository)
        Description copied from interface: ISystemAddition
        Adds a repository to the org.palladiosimulator.generator.fluent.system. Components from added repositories can be added to the org.palladiosimulator.generator.fluent.system by name.
        Specified by:
        addRepository in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        Repository
      • addToSystem

        public ISystemAddition addToSystem​(AbstractConnectorCreator connector)
        Description copied from interface: ISystemAddition
        Adds a Connector to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        Connector
      • addToSystem

        public ISystemAddition addToSystem​(OperationRequiredRoleCreator role)
        Description copied from interface: ISystemAddition
        Adds an OperationRequiredRole to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        OperationRequiredRole
      • addToSystem

        public ISystemAddition addToSystem​(OperationProvidedRoleCreator role)
        Description copied from interface: ISystemAddition
        Adds an OperationProvidedRole to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        OperationProvidedRole
      • addToSystem

        public ISystemAddition addToSystem​(EventChannelCreator eventChannel)
        Description copied from interface: ISystemAddition
        Adds an EventChannel to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        EventChannel
      • addToSystem

        public ISystemAddition addToSystem​(SinkRoleCreator role)
        Description copied from interface: ISystemAddition
        Adds a SinkRole to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        SinkRole
      • addToSystem

        public ISystemAddition addToSystem​(SourceRoleCreator role)
        Description copied from interface: ISystemAddition
        Adds a SourceRole to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
      • addToSystem

        public ISystemAddition addToSystem​(InfrastructureRequiredRoleCreator role)
        Description copied from interface: ISystemAddition
        Adds an InfrastructureRequiredRole to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        InfrastructureRequiredRole
      • addToSystem

        public ISystemAddition addToSystem​(InfrastructureProvidedRoleCreator role)
        Description copied from interface: ISystemAddition
        Adds an InfrastructureProvidedRole to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        InfrastructureProvidedRole
      • addToSystem

        public ISystemAddition addToSystem​(QoSAnnotationsCreator annotations)
        Description copied from interface: ISystemAddition
        Adds QoSAnnotations to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        QoSAnnotations
      • addToSystem

        public ISystemAddition addToSystem​(ResourceRequiredRoleCreator role)
        Description copied from interface: ISystemAddition
        Adds a ResourceRequiredRole to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.
        Specified by:
        addToSystem in interface ISystemAddition
        Returns:
        this org.palladiosimulator.generator.fluent.system
        See Also:
        ResourceRequiredRole
      • getInterfaceByName

        public org.palladiosimulator.pcm.repository.Interface getInterfaceByName​(String name)
                                                                          throws NoSuchElementException
        Searches the repositories added to the org.palladiosimulator.generator.fluent.system for an Interface that matches the given name.
        Parameters:
        name -
        Returns:
        the matching interface
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        Interface
      • getRepositoryComponentByName

        public org.palladiosimulator.pcm.repository.RepositoryComponent getRepositoryComponentByName​(String name)
                                                                                              throws NoSuchElementException
        Searches the repositories added to the org.palladiosimulator.generator.fluent.system for an RepositoryComponent that matches the given name.
        Parameters:
        name -
        Returns:
        the matching component
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        RepositoryComponent
      • getAssemblyContextByName

        public org.palladiosimulator.pcm.core.composition.AssemblyContext getAssemblyContextByName​(String name)
                                                                                            throws NoSuchElementException
        Searches the AssemblyContexts added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching context
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        AssemblyContext
      • getResourceRequiredRoleByName

        public org.palladiosimulator.pcm.core.entity.ResourceRequiredRole getResourceRequiredRoleByName​(String name)
                                                                                                 throws NoSuchElementException
        Searches the ResourceRequiredRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching role
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        ResourceRequiredRole
      • getSystemOperationRequiredRoleByName

        public org.palladiosimulator.pcm.repository.OperationRequiredRole getSystemOperationRequiredRoleByName​(String name)
                                                                                                        throws NoSuchElementException
        Searches the OperationRequiredRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching role
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        OperationRequiredRole
      • getSystemOperationProvidedRoleByName

        public org.palladiosimulator.pcm.repository.OperationProvidedRole getSystemOperationProvidedRoleByName​(String name)
        Searches the OperationProvidedRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching role
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        OperationProvidedRole
      • getSystemSinkRoleByName

        public org.palladiosimulator.pcm.repository.SinkRole getSystemSinkRoleByName​(String name)
                                                                              throws NoSuchElementException
        Searches the SinkRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching role
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        SinkRole
      • getSystemInfrastructureRequiredRoleByName

        public org.palladiosimulator.pcm.repository.InfrastructureRequiredRole getSystemInfrastructureRequiredRoleByName​(String name)
                                                                                                                  throws NoSuchElementException
        Searches the InfrastructureRequiredRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching role
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        InfrastructureRequiredRole
      • getSystemInfrastructureProvidedRoleByName

        public org.palladiosimulator.pcm.repository.InfrastructureProvidedRole getSystemInfrastructureProvidedRoleByName​(String name)
                                                                                                                  throws NoSuchElementException
        Searches the InfrastructureProvidedRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching role
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        InfrastructureProvidedRole
      • getSystemSourceRoleByName

        public org.palladiosimulator.pcm.repository.SourceRole getSystemSourceRoleByName​(String name)
                                                                                  throws NoSuchElementException
        Searches the SourceRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching role
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        SourceRole
      • getSystemResourceRequiredRoleByName

        public org.palladiosimulator.pcm.core.entity.ResourceRequiredRole getSystemResourceRequiredRoleByName​(String name)
                                                                                                       throws NoSuchElementException
        Searches the ResourceRequiredRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching role
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        ResourceRequiredRole
      • getEventChannelByName

        public org.palladiosimulator.pcm.core.composition.EventChannel getEventChannelByName​(String name)
                                                                                      throws NoSuchElementException
        Searches the EventChannels added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.
        Parameters:
        name -
        Returns:
        the matching event channel
        Throws:
        NoSuchElementException - Thrown if no element matches the given name
        See Also:
        org.palladiosimulator.pcm.repository.EventChannel
      • getResourceInterface

        public org.palladiosimulator.pcm.resourcetype.ResourceInterface getResourceInterface​(ResourceInterface resource)
        Fetches the ResourceInterface matching the given resource.
        Parameters:
        resource -
        Returns:
        the matching resource interface
        See Also:
        ResourceInterface