Class CompleteComponentTypeCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
-
- org.palladiosimulator.generator.fluent.repository.structure.components.Component
-
- org.palladiosimulator.generator.fluent.repository.structure.components.CompleteComponentTypeCreator
-
public class CompleteComponentTypeCreator extends Component
This class constructs aCompleteComponentType
. It is used to create the 'CompleteComponentType' object step-by-step, i.e. 'CompleteComponentTypeCreator' objects are of intermediate state.- See Also:
CompleteComponentType
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.Component
providedRoles, requiredRoles, resourceRequiredRoles
-
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
repository
-
-
Constructor Summary
Constructors Constructor Description CompleteComponentTypeCreator(RepositoryCreator repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.repository.CompleteComponentType
build()
Turns the entity in the making into the finished entity.CompleteComponentTypeCreator
conforms(ProvidesComponentTypeCreator providesComponentType)
Creates a conforming (parental) connection to theprovidesComponentType
and adds it to the complete component type.CompleteComponentTypeCreator
conforms(org.palladiosimulator.pcm.repository.ProvidesComponentType providesComponentType)
Creates a conforming (parental) connection to theprovidesComponentType
and adds it to the complete component type.CompleteComponentTypeCreator
emits(EventGroupCreator eventGroup)
Creates aSourceRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.CompleteComponentTypeCreator
emits(EventGroupCreator eventGroup, String name)
Creates aSourceRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component.CompleteComponentTypeCreator
emits(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Creates aSourceRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.CompleteComponentTypeCreator
emits(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)
Creates aSourceRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component.CompleteComponentTypeCreator
handles(EventGroupCreator eventGroup)
Creates aSinkRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.CompleteComponentTypeCreator
handles(EventGroupCreator eventGroup, String name)
Creates aSinkRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component.CompleteComponentTypeCreator
handles(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Creates aSinkRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.CompleteComponentTypeCreator
handles(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)
Creates aSinkRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component.CompleteComponentTypeCreator
provides(OperationInterfaceCreator interfce)
Creates anOperationProvidedRole
connection between the component and theOperationInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
provides(OperationInterfaceCreator interfce, String name)
Creates anOperationProvidedRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
provides(org.palladiosimulator.pcm.repository.OperationInterface interfce)
Creates anOperationProvidedRole
connection between the component and theOperationInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
provides(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)
Creates anOperationProvidedRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
providesInfrastructure(InfrastructureInterfaceCreator interfce)
Creates anInfrastructureProvidedRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
providesInfrastructure(InfrastructureInterfaceCreator interfce, String name)
Creates anInfrastructureProvidedRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
providesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
Creates anInfrastructureProvidedRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
providesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)
Creates anInfrastructureProvidedRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
requires(OperationInterfaceCreator interfce)
Creates anOperationRequiredRole
connection between the component and theOperationInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
requires(OperationInterfaceCreator interfce, String name)
Creates anOperationRequiredRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
requires(org.palladiosimulator.pcm.repository.OperationInterface interfce)
Creates anOperationRequiredRole
connection between the component and theOperationInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
requires(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)
Creates anOperationRequiredRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
requiresInfrastructure(InfrastructureInterfaceCreator interfce)
Creates anInfrastructureRequiredRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
requiresInfrastructure(InfrastructureInterfaceCreator interfce, String name)
Creates anInfrastructureRequiredRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
requiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
Creates anInfrastructureRequiredRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
requiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)
Creates anInfrastructureRequiredRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component.CompleteComponentTypeCreator
requiresResource(ResourceInterface resourceInterface)
Creates aResourceRequiredRole
connection between the component and theResourceInterface
resourceInterface
and adds it to the component.CompleteComponentTypeCreator
requiresResource(ResourceInterface resourceInterface, String name)
Creates aResourceRequiredRole
connection with the namename
between the component and theResourceInterface
resourceInterface
and adds it to the component.CompleteComponentTypeCreator
withName(String name)
Defines the unique name of this current entity.
-
-
-
Constructor Detail
-
CompleteComponentTypeCreator
public CompleteComponentTypeCreator(RepositoryCreator repo)
-
-
Method Detail
-
withName
public CompleteComponentTypeCreator 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.
-
provides
public CompleteComponentTypeCreator provides(OperationInterfaceCreator interfce)
Description copied from class:Component
Creates anOperationProvidedRole
connection between the component and theOperationInterface
interfce
and adds it to the component.Create a new operation interface by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newOperationInterface()
.- Overrides:
provides
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
provides
public CompleteComponentTypeCreator provides(OperationInterfaceCreator interfce, String name)
Description copied from class:Component
Creates anOperationProvidedRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.Create a new operation interface by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newOperationInterface()
.- Overrides:
provides
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
provides
public CompleteComponentTypeCreator provides(org.palladiosimulator.pcm.repository.OperationInterface interfce)
Description copied from class:Component
Creates anOperationProvidedRole
connection between the component and theOperationInterface
interfce
and adds it to the component.An existing
interfce
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfOperationInterface(name)
.- Overrides:
provides
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
provides
public CompleteComponentTypeCreator provides(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)
Description copied from class:Component
Creates anOperationProvidedRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
interfce
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfOperationInterface(name)
.- Overrides:
provides
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
providesInfrastructure
public CompleteComponentTypeCreator providesInfrastructure(InfrastructureInterfaceCreator interfce)
Description copied from class:Component
Creates anInfrastructureProvidedRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.Create a new infrastructure interface by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newInfrastructureInterface()
.- Overrides:
providesInfrastructure
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
providesInfrastructure
public CompleteComponentTypeCreator providesInfrastructure(InfrastructureInterfaceCreator interfce, String name)
Description copied from class:Component
Creates anInfrastructureProvidedRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.Create a new infrastructure interface by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newInfrastructureInterface()
.- Overrides:
providesInfrastructure
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
providesInfrastructure
public CompleteComponentTypeCreator providesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
Description copied from class:Component
Creates anInfrastructureProvidedRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.An existing
interfce
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfInfrastructureInterface(name)
.- Overrides:
providesInfrastructure
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
providesInfrastructure
public CompleteComponentTypeCreator providesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)
Description copied from class:Component
Creates anInfrastructureProvidedRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
interfce
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfInfrastructureInterface(name)
.- Overrides:
providesInfrastructure
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
handles
public CompleteComponentTypeCreator handles(EventGroupCreator eventGroup)
Description copied from class:Component
Creates aSinkRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.Create a new event group by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newEventGroup()
.- Overrides:
handles
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
handles
public CompleteComponentTypeCreator handles(EventGroupCreator eventGroup, String name)
Description copied from class:Component
Creates aSinkRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.Create a new event group by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newEventGroup()
.- Overrides:
handles
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
handles
public CompleteComponentTypeCreator handles(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Description copied from class:Component
Creates aSinkRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.An existing
eventGroup
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfEventGroup(name)
.- Overrides:
handles
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
handles
public CompleteComponentTypeCreator handles(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)
Description copied from class:Component
Creates aSinkRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
eventGroup
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfEventGroup(name)
.- Overrides:
handles
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
requires
public CompleteComponentTypeCreator requires(OperationInterfaceCreator interfce)
Description copied from class:Component
Creates anOperationRequiredRole
connection between the component and theOperationInterface
interfce
and adds it to the component.Create a new operation interface by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newOperationInterface()
.- Overrides:
requires
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
requires
public CompleteComponentTypeCreator requires(OperationInterfaceCreator interfce, String name)
Description copied from class:Component
Creates anOperationRequiredRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.Create a new operation interface by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newOperationInterface()
.- Overrides:
requires
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
requires
public CompleteComponentTypeCreator requires(org.palladiosimulator.pcm.repository.OperationInterface interfce)
Description copied from class:Component
Creates anOperationRequiredRole
connection between the component and theOperationInterface
interfce
and adds it to the component.An existing
interfce
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfOperationInterface(name)
.- Overrides:
requires
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
requires
public CompleteComponentTypeCreator requires(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)
Description copied from class:Component
Creates anOperationRequiredRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
interfce
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfOperationInterface(name)
.- Overrides:
requires
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
requiresInfrastructure
public CompleteComponentTypeCreator requiresInfrastructure(InfrastructureInterfaceCreator interfce)
Description copied from class:Component
Creates anInfrastructureRequiredRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.Create a new infrastructure interface by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newInfrastructureInterface()
.- Overrides:
requiresInfrastructure
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
requiresInfrastructure
public CompleteComponentTypeCreator requiresInfrastructure(InfrastructureInterfaceCreator interfce, String name)
Description copied from class:Component
Creates anInfrastructureRequiredRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.Create a new infrastructure interface by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newInfrastructureInterface()
.- Overrides:
requiresInfrastructure
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
requiresInfrastructure
public CompleteComponentTypeCreator requiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
Description copied from class:Component
Creates anInfrastructureRequiredRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.An existing
interfce
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfInfrastructureInterface(name)
.- Overrides:
requiresInfrastructure
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
requiresInfrastructure
public CompleteComponentTypeCreator requiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)
Description copied from class:Component
Creates anInfrastructureRequiredRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
interfce
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfInfrastructureInterface(name)
.- Overrides:
requiresInfrastructure
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
emits
public CompleteComponentTypeCreator emits(EventGroupCreator eventGroup)
Description copied from class:Component
Creates aSourceRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.Create a new event group by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newEventGroup()
.- Overrides:
emits
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
emits
public CompleteComponentTypeCreator emits(EventGroupCreator eventGroup, String name)
Description copied from class:Component
Creates aSourceRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.Create a new event group by using the org.palladiosimulator.generator.fluent.component.factory, i.e.
create.newEventGroup()
.- Overrides:
emits
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
emits
public CompleteComponentTypeCreator emits(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Description copied from class:Component
Creates aSourceRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.An existing
eventGroup
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfEventGroup(name)
.- Overrides:
emits
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
emits
public CompleteComponentTypeCreator emits(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)
Description copied from class:Component
Creates aSourceRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
eventGroup
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfEventGroup(name)
.- Overrides:
emits
in classComponent
- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
requiresResource
public CompleteComponentTypeCreator requiresResource(ResourceInterface resourceInterface)
Description copied from class:Component
Creates aResourceRequiredRole
connection between the component and theResourceInterface
resourceInterface
and adds it to the component.An existing
resourceInterface
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfResourceInterface(name)
.- Overrides:
requiresResource
in classComponent
- Returns:
- this component
- See Also:
org.palladiosimulator.generator.fluent.repository.factory.FluentRepositoryFactory#fetchOfResourceInterface(String)
-
requiresResource
public CompleteComponentTypeCreator requiresResource(ResourceInterface resourceInterface, String name)
Description copied from class:Component
Creates aResourceRequiredRole
connection with the namename
between the component and theResourceInterface
resourceInterface
and adds it to the component. Setting thename
is important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
resourceInterface
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfResourceInterface(name)
.- Overrides:
requiresResource
in classComponent
- Returns:
- this component
- See Also:
org.palladiosimulator.generator.fluent.repository.factory.FluentRepositoryFactory#fetchOfResourceInterface(String)
-
conforms
public CompleteComponentTypeCreator conforms(ProvidesComponentTypeCreator providesComponentType)
Creates a conforming (parental) connection to theprovidesComponentType
and adds it to the complete component type.Provided (Component) Types abstract a component to its provided interfaces, leaving its requirements and implementation details open. So, provided types subsume components which offer the same functionality, but with different implementations.
The
providesComponentType
can be created using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.newProvidesComponentType()
.- Parameters:
providesComponentType
-- Returns:
- the complete component type in the making
- See Also:
FluentRepositoryFactory.newProvidesComponentType()
,CompleteComponentType.getParentProvidesComponentTypes()
,ProvidesComponentType
-
conforms
public CompleteComponentTypeCreator conforms(org.palladiosimulator.pcm.repository.ProvidesComponentType providesComponentType)
Creates a conforming (parental) connection to theprovidesComponentType
and adds it to the complete component type.Provided (Component) Types abstract a component to its provided interfaces, leaving its requirements and implementation details open. So, provided types subsume components which offer the same functionality, but with different implementations.
An existing
providesComponentType
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfProvidesComponentType(name)
.- Parameters:
providesComponentType
-- Returns:
- the complete component type in the making
- See Also:
FluentRepositoryFactory.fetchOfProvidesComponentType(String)
,CompleteComponentType.getParentProvidesComponentTypes()
,ProvidesComponentType
-
-