Class SourceDelegationConnectorCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.system.structure.SystemEntity
-
- org.palladiosimulator.generator.fluent.system.structure.connector.AbstractConnectorCreator
-
- org.palladiosimulator.generator.fluent.system.structure.connector.event.SourceDelegationConnectorCreator
-
public class SourceDelegationConnectorCreator extends AbstractConnectorCreator
This class constructs aSourceDelegationConnector.- See Also:
SourceDelegationConnector
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.system.structure.SystemEntity
system
-
-
Constructor Summary
Constructors Constructor Description SourceDelegationConnectorCreator(SystemCreator systemCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.core.composition.SourceDelegationConnectorbuild()Turns the entity in the making into the finished entity.SourceRoleSelector<SourceDelegationConnectorCreator>withAssemblyContext(String name)Defines theAssemblyContextwith the source role.SourceRoleSelector<SourceDelegationConnectorCreator>withAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)Defines theAssemblyContextwith the source role.SourceDelegationConnectorCreatorwithName(String name)Defines the unique name of this current entity.SourceDelegationConnectorCreatorwithOuterSourceRole(String name)Defines theSourceRoleof the org.palladiosimulator.generator.fluent.system, delegated to an AssemblyContext.SourceDelegationConnectorCreatorwithOuterSourceRole(org.palladiosimulator.pcm.repository.SourceRole role)Defines theSourceRoleof the org.palladiosimulator.generator.fluent.system, delegated to an AssemblyContext.
-
-
-
Constructor Detail
-
SourceDelegationConnectorCreator
public SourceDelegationConnectorCreator(SystemCreator systemCreator)
-
-
Method Detail
-
withOuterSourceRole
public SourceDelegationConnectorCreator withOuterSourceRole(org.palladiosimulator.pcm.repository.SourceRole role)
Defines theSourceRoleof the org.palladiosimulator.generator.fluent.system, delegated to an AssemblyContext.- Parameters:
role-- Returns:
- this connector
- See Also:
SourceRole
-
withOuterSourceRole
public SourceDelegationConnectorCreator withOuterSourceRole(String name) throws NoSuchElementException
Defines theSourceRoleof the org.palladiosimulator.generator.fluent.system, delegated to an AssemblyContext. The source roles added to the org.palladiosimulator.generator.fluent.system are searched for one that matches the given name.- Parameters:
role-- Returns:
- this connector
- Throws:
NoSuchElementException- Thrown if no element matches the given name.- See Also:
SourceRole
-
withAssemblyContext
public SourceRoleSelector<SourceDelegationConnectorCreator> withAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
Defines theAssemblyContextwith the source role.- Parameters:
context-- Returns:
- this connector
- See Also:
AssemblyContext,SourceRole
-
withAssemblyContext
public SourceRoleSelector<SourceDelegationConnectorCreator> withAssemblyContext(String name)
Defines theAssemblyContextwith the source role. The assembly contexts added to the org.palladiosimulator.generator.fluent.system are searched for one that matches the given name.- Parameters:
name-- Returns:
- this connector
- Throws:
NoSuchElementException- Thrown if no element matches the given name.- See Also:
AssemblyContext,SourceRole
-
build
public org.palladiosimulator.pcm.core.composition.SourceDelegationConnector build()
Description copied from class:EntityTurns the entity in the making into the finished entity.- Specified by:
buildin classAbstractConnectorCreator- Returns:
- the finished entity
-
withName
public SourceDelegationConnectorCreator withName(String name)
Description copied from class:EntityDefines the unique name of this current entity. Once created entities are referenced by this name. Only entities with a unique name can be fetched from the model.
-
-