Class AssemblyContextCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.system.structure.SystemEntity
-
- org.palladiosimulator.generator.fluent.system.structure.AssemblyContextCreator
-
public class AssemblyContextCreator extends SystemEntity
This class constructs anAssemblyContext.- See Also:
AssemblyContext
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.system.structure.SystemEntity
system
-
-
Constructor Summary
Constructors Constructor Description AssemblyContextCreator(SystemCreator systemCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.core.composition.AssemblyContextbuild()Turns the entity in the making into the finished entity.AssemblyContextCreatorwithEncapsulatedComponent(String name)Defines theRepositoryComponentencapsulated by this assembly context.AssemblyContextCreatorwithEncapsulatedComponent(org.palladiosimulator.pcm.repository.RepositoryComponent component)Defines theRepositoryComponentencapsulated by this assembly context.AssemblyContextCreatorwithName(String name)Defines the unique name of this current entity.
-
-
-
Constructor Detail
-
AssemblyContextCreator
public AssemblyContextCreator(SystemCreator systemCreator)
-
-
Method Detail
-
withEncapsulatedComponent
public AssemblyContextCreator withEncapsulatedComponent(org.palladiosimulator.pcm.repository.RepositoryComponent component)
Defines theRepositoryComponentencapsulated by this assembly context.- Parameters:
component-- Returns:
- this assembly context
- See Also:
RepositoryComponent
-
withEncapsulatedComponent
public AssemblyContextCreator withEncapsulatedComponent(String name) throws NoSuchElementException
Defines theRepositoryComponentencapsulated by this assembly context. The repositories added to the org.palladiosimulator.generator.fluent.system are searched for a component that matches the given name.- Parameters:
component-- Returns:
- this assembly context
- Throws:
NoSuchElementException- Thrown if no element matches the given name- See Also:
RepositoryComponent
-
build
public org.palladiosimulator.pcm.core.composition.AssemblyContext build()
Description copied from class:EntityTurns the entity in the making into the finished entity.
-
withName
public AssemblyContextCreator 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.
-
-