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