Class OperationProvidedRoleSelector<T>
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.system.structure.connector.operation.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 Summary
Constructors Constructor Description OperationProvidedRoleSelector(IContextRoleCombinator<org.palladiosimulator.pcm.repository.OperationProvidedRole,T> combinator, org.palladiosimulator.pcm.core.composition.AssemblyContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TwithOperationProvidedRole(String name)Defines theOperationProvidedRoleprovided by theAssemblyContext.TwithOperationProvidedRole(org.palladiosimulator.pcm.repository.OperationProvidedRole role)Defines theOperationProvidedRoleprovided by theAssemblyContext.
-
-
-
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 theOperationProvidedRoleprovided by theAssemblyContext.- Parameters:
role-- Returns:
- the assembly connector
- See Also:
OperationProvidedRole,AssemblyContext
-
withOperationProvidedRole
public T withOperationProvidedRole(String name) throws NoSuchElementException
Defines theOperationProvidedRoleprovided by theAssemblyContext. 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
-
-