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