Class Component
- 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
-
- Direct Known Subclasses:
BasicComponentCreator
,CompleteComponentTypeCreator
,ComplexComponent
,ProvidesComponentTypeCreator
public abstract class Component extends RepositoryEntity
This class provides the general infrastructure of a component, i.e. BasicComponent CompositeComponent, SubSystem, CompleteComponentTypea and ProvidesComponentType. It provides the implementation of the methods for creating role connections (ProvidedRole, RequiredRole, ResourceRequiredRole).
-
-
Field Summary
Fields Modifier and Type Field Description protected List<org.palladiosimulator.pcm.repository.ProvidedRole>
providedRoles
protected List<org.palladiosimulator.pcm.repository.RequiredRole>
requiredRoles
protected List<org.palladiosimulator.pcm.core.entity.ResourceRequiredRole>
resourceRequiredRoles
-
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
repository
-
-
Constructor Summary
Constructors Constructor Description Component()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.palladiosimulator.pcm.repository.RepositoryComponent
build()
Turns the entity in the making into the finished entity.Component
emits(EventGroupCreator eventGroup)
Creates aSourceRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.Component
emits(EventGroupCreator eventGroup, String name)
Creates aSourceRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component.Component
emits(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Creates aSourceRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.Component
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.Component
handles(EventGroupCreator eventGroup)
Creates aSinkRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.Component
handles(EventGroupCreator eventGroup, String name)
Creates aSinkRole
connection with the namename
between the component and theEventGroup
eventGroup
and adds it to the component.Component
handles(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Creates aSinkRole
connection between the component and theEventGroup
eventGroup
and adds it to the component.Component
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.Component
provides(OperationInterfaceCreator interfce)
Creates anOperationProvidedRole
connection between the component and theOperationInterface
interfce
and adds it to the component.Component
provides(OperationInterfaceCreator interfce, String name)
Creates anOperationProvidedRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component.Component
provides(org.palladiosimulator.pcm.repository.OperationInterface interfce)
Creates anOperationProvidedRole
connection between the component and theOperationInterface
interfce
and adds it to the component.Component
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.Component
providesInfrastructure(InfrastructureInterfaceCreator interfce)
Creates anInfrastructureProvidedRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.Component
providesInfrastructure(InfrastructureInterfaceCreator interfce, String name)
Creates anInfrastructureProvidedRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component.Component
providesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
Creates anInfrastructureProvidedRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.Component
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.Component
requires(OperationInterfaceCreator interfce)
Creates anOperationRequiredRole
connection between the component and theOperationInterface
interfce
and adds it to the component.Component
requires(OperationInterfaceCreator interfce, String name)
Creates anOperationRequiredRole
connection with the namename
between the component and theOperationInterface
interfce
and adds it to the component.Component
requires(org.palladiosimulator.pcm.repository.OperationInterface interfce)
Creates anOperationRequiredRole
connection between the component and theOperationInterface
interfce
and adds it to the component.Component
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.Component
requiresInfrastructure(InfrastructureInterfaceCreator interfce)
Creates anInfrastructureRequiredRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.Component
requiresInfrastructure(InfrastructureInterfaceCreator interfce, String name)
Creates anInfrastructureRequiredRole
connection with the namename
between the component and theInfrastructureInterface
interfce
and adds it to the component.Component
requiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
Creates anInfrastructureRequiredRole
connection between the component and theInfrastructureInterface
interfce
and adds it to the component.Component
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.Component
requiresResource(ResourceInterface resourceInterface)
Creates aResourceRequiredRole
connection between the component and theResourceInterface
resourceInterface
and adds it to the component.Component
requiresResource(ResourceInterface resourceInterface, String name)
Creates aResourceRequiredRole
connection with the namename
between the component and theResourceInterface
resourceInterface
and adds it to the component.
-
-
-
Field Detail
-
providedRoles
protected List<org.palladiosimulator.pcm.repository.ProvidedRole> providedRoles
-
requiredRoles
protected List<org.palladiosimulator.pcm.repository.RequiredRole> requiredRoles
-
resourceRequiredRoles
protected List<org.palladiosimulator.pcm.core.entity.ResourceRequiredRole> resourceRequiredRoles
-
-
Method Detail
-
build
public abstract org.palladiosimulator.pcm.repository.RepositoryComponent build()
Description copied from class:Entity
Turns the entity in the making into the finished entity.
-
provides
public Component provides(OperationInterfaceCreator interfce)
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()
.- Parameters:
interfce
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
provides
public Component provides(OperationInterfaceCreator interfce, String name)
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()
.- Parameters:
interfce
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
provides
public Component provides(org.palladiosimulator.pcm.repository.OperationInterface interfce)
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)
.- Parameters:
interfce
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
provides
public Component 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. 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)
.- Parameters:
interfce
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
providesInfrastructure
public Component providesInfrastructure(InfrastructureInterfaceCreator interfce)
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()
.- Parameters:
interfce
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
providesInfrastructure
public Component providesInfrastructure(InfrastructureInterfaceCreator interfce, String name)
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()
.- Parameters:
interfce
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
providesInfrastructure
public Component providesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
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)
.- Parameters:
interfce
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
providesInfrastructure
public Component 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. 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)
.- Parameters:
interfce
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
handles
public Component handles(EventGroupCreator eventGroup)
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()
.- Parameters:
eventGroup
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
handles
public Component handles(EventGroupCreator eventGroup, String name)
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()
.- Parameters:
eventGroup
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
handles
public Component handles(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
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)
.- Parameters:
eventGroup
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
handles
public Component 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. 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)
.- Parameters:
eventGroup
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
requires
public Component requires(OperationInterfaceCreator interfce)
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()
.- Parameters:
interfce
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
requires
public Component requires(OperationInterfaceCreator interfce, String name)
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()
.- Parameters:
interfce
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
requires
public Component requires(org.palladiosimulator.pcm.repository.OperationInterface interfce)
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)
.- Parameters:
interfce
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
requires
public Component 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. 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)
.- Parameters:
interfce
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
requiresInfrastructure
public Component requiresInfrastructure(InfrastructureInterfaceCreator interfce)
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()
.- Parameters:
interfce
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
requiresInfrastructure
public Component requiresInfrastructure(InfrastructureInterfaceCreator interfce, String name)
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()
.- Parameters:
interfce
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
requiresInfrastructure
public Component requiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
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)
.- Parameters:
interfce
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
requiresInfrastructure
public Component 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. 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)
.- Parameters:
interfce
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
emits
public Component emits(EventGroupCreator eventGroup)
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()
.- Parameters:
eventGroup
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
emits
public Component emits(EventGroupCreator eventGroup, String name)
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()
.- Parameters:
eventGroup
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
emits
public Component emits(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
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)
.- Parameters:
eventGroup
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
emits
public Component 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. 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)
.- Parameters:
eventGroup
-name
-- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
requiresResource
public Component requiresResource(ResourceInterface resourceInterface)
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)
.- Parameters:
resourceInterface
-name
-- Returns:
- this component
- See Also:
org.palladiosimulator.generator.fluent.repository.factory.FluentRepositoryFactory#fetchOfResourceInterface(String)
-
requiresResource
public Component requiresResource(ResourceInterface resourceInterface, String name)
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)
.- Parameters:
resourceInterface
-name
-- Returns:
- this component
- See Also:
org.palladiosimulator.generator.fluent.repository.factory.FluentRepositoryFactory#fetchOfResourceInterface(String)
-
-