Class OperationProvidedRoleSelector<T>

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

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

      • OperationProvidedRoleSelector

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

      • withOperationProvidedRole

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

        public T withOperationProvidedRole​(String name)
                                    throws NoSuchElementException
        Defines the OperationProvidedRole provided by the AssemblyContext. The provided 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:
        OperationProvidedRole, AssemblyContext