Class InfrastructureRequiredRoleSelector<T>

  • Type Parameters:
    T - The ConnectorCreator, creating this selector.

    public class InfrastructureRequiredRoleSelector<T>
    extends Object
    This class ensures, that a Role is only selected after an AssemblyContext.
    • Constructor Detail

      • InfrastructureRequiredRoleSelector

        public InfrastructureRequiredRoleSelector​(IContextRoleCombinator<org.palladiosimulator.pcm.repository.InfrastructureRequiredRole,​T> combinator,
                                                  org.palladiosimulator.pcm.core.composition.AssemblyContext context)
    • Method Detail

      • withInfrastructureRequiredRole

        public T withInfrastructureRequiredRole​(org.palladiosimulator.pcm.repository.InfrastructureRequiredRole role)
        Defines the InfrastructureRequiredRole required by the AssemblyContext.
        Parameters:
        role -
        Returns:
        the assembly connector
        See Also:
        InfrastructureRequiredRole, AssemblyContext
      • withInfrastructureRequiredRole

        public T withInfrastructureRequiredRole​(String name)
                                         throws NoSuchElementException
        Defines the InfrastructureRequiredRole required by the AssemblyContext. The required roles of the context are searched for a role matching the given name.
        Parameters:
        name -
        Returns:
        the assembly connector
        Throws:
        NoSuchElementException - Thrown if no role matches the given name.
        See Also:
        InfrastructureRequiredRole, AssemblyContext