Class RequiredResourceDelegationConnectorCreator
- 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.resource.RequiredResourceDelegationConnectorCreator
-
public class RequiredResourceDelegationConnectorCreator extends AbstractConnectorCreator
This class constructs aRequiredResourceDelegationConnector
.- See Also:
RequiredResourceDelegationConnector
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.system.structure.SystemEntity
system
-
-
Constructor Summary
Constructors Constructor Description RequiredResourceDelegationConnectorCreator(SystemCreator systemCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.core.composition.RequiredResourceDelegationConnector
build()
Turns the entity in the making into the finished entity.RequiredResourceDelegationConnectorCreator
withName(String name)
Defines the unique name of this current entity.RequiredResourceDelegationConnectorCreator
withOuterRequiredRole(String name)
Defines theResourceRequiredRole
of the org.palladiosimulator.generator.fluent.system, delegated to an AssemblyContext.RequiredResourceDelegationConnectorCreator
withOuterRequiredRole(org.palladiosimulator.pcm.core.entity.ResourceRequiredRole role)
Defines theResourceRequiredRole
of the org.palladiosimulator.generator.fluent.system, delegated to an AssemblyContext.ResourceRequiredRoleSelector
withRequiringContext(String name)
Defines theAssemblyContext
with the required role.ResourceRequiredRoleSelector
withRequiringContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
Defines theAssemblyContext
with the required role.
-
-
-
Constructor Detail
-
RequiredResourceDelegationConnectorCreator
public RequiredResourceDelegationConnectorCreator(SystemCreator systemCreator)
-
-
Method Detail
-
withOuterRequiredRole
public RequiredResourceDelegationConnectorCreator withOuterRequiredRole(org.palladiosimulator.pcm.core.entity.ResourceRequiredRole role)
Defines theResourceRequiredRole
of the org.palladiosimulator.generator.fluent.system, delegated to an AssemblyContext.- Parameters:
role
-- Returns:
- this connector
- See Also:
ResourceRequiredRole
-
withOuterRequiredRole
public RequiredResourceDelegationConnectorCreator withOuterRequiredRole(String name) throws NoSuchElementException
Defines theResourceRequiredRole
of the org.palladiosimulator.generator.fluent.system, delegated to an AssemblyContext. The required 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:
ResourceRequiredRole
-
withRequiringContext
public ResourceRequiredRoleSelector withRequiringContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
Defines theAssemblyContext
with the required role.- Parameters:
context
-- Returns:
- this connector
- See Also:
AssemblyContext
,ResourceRequiredRole
-
withRequiringContext
public ResourceRequiredRoleSelector withRequiringContext(String name)
Defines theAssemblyContext
with the required 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
,ResourceRequiredRole
-
build
public org.palladiosimulator.pcm.core.composition.RequiredResourceDelegationConnector 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 RequiredResourceDelegationConnectorCreator 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.
-
-