Class OperationRequiredRoleSelector<T>

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

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

      • OperationRequiredRoleSelector

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

      • withOperationRequiredRole

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

        public T withOperationRequiredRole​(String name)
        Defines the OperationRequiredRole required 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:
        OperationRequiredRole, AssemblyContext