Class AssemblyConnectorCreator
- 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.operation.AssemblyConnectorCreator
-
public class AssemblyConnectorCreator extends AbstractConnectorCreator
This class constructs anAssemblyConnector
.- See Also:
AssemblyConnector
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.system.structure.SystemEntity
system
-
-
Constructor Summary
Constructors Constructor Description AssemblyConnectorCreator(SystemCreator systemCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.core.composition.AssemblyConnector
build()
Turns the entity in the making into the finished entity.AssemblyConnectorCreator
withName(String name)
Defines the unique name of this current entity.OperationProvidedRoleSelector<AssemblyConnectorCreator>
withProvidingAssemblyContext(String name)
Defines theAssemblyContext
that provides the role.OperationProvidedRoleSelector<AssemblyConnectorCreator>
withProvidingAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
Defines theAssemblyContext
that provides the role.OperationRequiredRoleSelector<AssemblyConnectorCreator>
withRequiringAssemblyContext(String name)
Defines theAssemblyContext
that requires the role.OperationRequiredRoleSelector<AssemblyConnectorCreator>
withRequiringAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
Defines theAssemblyContext
that requires the role.
-
-
-
Constructor Detail
-
AssemblyConnectorCreator
public AssemblyConnectorCreator(SystemCreator systemCreator)
-
-
Method Detail
-
withRequiringAssemblyContext
public OperationRequiredRoleSelector<AssemblyConnectorCreator> withRequiringAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
Defines theAssemblyContext
that requires the role.- Parameters:
context
-- Returns:
- this assembly connector
- See Also:
AssemblyContext
-
withRequiringAssemblyContext
public OperationRequiredRoleSelector<AssemblyConnectorCreator> withRequiringAssemblyContext(String name) throws NoSuchElementException
Defines theAssemblyContext
that requires the 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 assembly connector
- Throws:
NoSuchElementException
- Thrown if no element matches the given name.- See Also:
AssemblyContext
-
withProvidingAssemblyContext
public OperationProvidedRoleSelector<AssemblyConnectorCreator> withProvidingAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
Defines theAssemblyContext
that provides the role.- Parameters:
context
-- Returns:
- this assembly connector
- See Also:
AssemblyContext
-
withProvidingAssemblyContext
public OperationProvidedRoleSelector<AssemblyConnectorCreator> withProvidingAssemblyContext(String name) throws NoSuchElementException
Defines theAssemblyContext
that provides the 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 assembly connector
- Throws:
NoSuchElementException
- Thrown if no element matches the given name.
-
build
public org.palladiosimulator.pcm.core.composition.AssemblyConnector build()
Description copied from class:Entity
Turns the entity in the making into the finished entity.- Specified by:
build
in classAbstractConnectorCreator
- Returns:
- the finished entity
-
withName
public AssemblyConnectorCreator withName(String name)
Description copied from class:Entity
Defines 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.
-
-