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