Class SourceRoleSelector<T>
java.lang.Object
org.palladiosimulator.generator.fluent.system.structure.connector.event.SourceRoleSelector<T>
- Type Parameters:
T
- The ConnectorCreator, creating this selector.
This class ensures, that a Role is only selected after an AssemblyContext.
-
Constructor Summary
ConstructorDescriptionSourceRoleSelector
(IContextRoleCombinator<org.palladiosimulator.pcm.repository.SourceRole, T> combinator, org.palladiosimulator.pcm.core.composition.AssemblyContext context) -
Method Summary
Modifier and TypeMethodDescriptionwithSourceRole
(String name) Defines theSourceRole
required by theAssemblyContext
.withSourceRole
(org.palladiosimulator.pcm.repository.SourceRole role) Defines theSourceRole
required by theAssemblyContext
.
-
Constructor Details
-
SourceRoleSelector
public SourceRoleSelector(IContextRoleCombinator<org.palladiosimulator.pcm.repository.SourceRole, T> combinator, org.palladiosimulator.pcm.core.composition.AssemblyContext context)
-
-
Method Details
-
withSourceRole
Defines theSourceRole
required by theAssemblyContext
.- Parameters:
role
-- Returns:
- the assembly connector
- See Also:
-
SourceRole
AssemblyContext
-
withSourceRole
Defines theSourceRole
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:
-
SourceRole
AssemblyContext
-