Class InfrastructureProvidedRoleSelector<T>
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.system.structure.connector.infrastructure.InfrastructureProvidedRoleSelector<T>
-
- Type Parameters:
T
- The ConnectorCreator, creating this selector.
public class InfrastructureProvidedRoleSelector<T> extends Object
This class ensures, that a Role is only selected after an AssemblyContext.
-
-
Constructor Summary
Constructors Constructor Description InfrastructureProvidedRoleSelector(IContextRoleCombinator<org.palladiosimulator.pcm.repository.InfrastructureProvidedRole,T> combinator, org.palladiosimulator.pcm.core.composition.AssemblyContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
withInfrastructureProvidedRole(String name)
Defines theInfrastructureProvidedRole
provided by theAssemblyContext
.T
withInfrastructureProvidedRole(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole role)
Defines theInfrastructureProvidedRole
provided by theAssemblyContext
.
-
-
-
Constructor Detail
-
InfrastructureProvidedRoleSelector
public InfrastructureProvidedRoleSelector(IContextRoleCombinator<org.palladiosimulator.pcm.repository.InfrastructureProvidedRole,T> combinator, org.palladiosimulator.pcm.core.composition.AssemblyContext context)
-
-
Method Detail
-
withInfrastructureProvidedRole
public T withInfrastructureProvidedRole(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole role)
Defines theInfrastructureProvidedRole
provided by theAssemblyContext
.- Parameters:
role
-- Returns:
- the assembly connector
- See Also:
InfrastructureProvidedRole
,AssemblyContext
-
withInfrastructureProvidedRole
public T withInfrastructureProvidedRole(String name) throws NoSuchElementException
Defines theInfrastructureProvidedRole
provided 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:
InfrastructureProvidedRole
,AssemblyContext
-
-