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>providedRolesprotected List<org.palladiosimulator.pcm.repository.RequiredRole>requiredRolesprotected 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.RepositoryComponentbuild()Turns the entity in the making into the finished entity.Componentemits(EventGroupCreator eventGroup)Creates aSourceRoleconnection between the component and theEventGroupeventGroupand adds it to the component.Componentemits(EventGroupCreator eventGroup, String name)Creates aSourceRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component.Componentemits(org.palladiosimulator.pcm.repository.EventGroup eventGroup)Creates aSourceRoleconnection between the component and theEventGroupeventGroupand adds it to the component.Componentemits(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)Creates aSourceRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component.Componenthandles(EventGroupCreator eventGroup)Creates aSinkRoleconnection between the component and theEventGroupeventGroupand adds it to the component.Componenthandles(EventGroupCreator eventGroup, String name)Creates aSinkRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component.Componenthandles(org.palladiosimulator.pcm.repository.EventGroup eventGroup)Creates aSinkRoleconnection between the component and theEventGroupeventGroupand adds it to the component.Componenthandles(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)Creates aSinkRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component.Componentprovides(OperationInterfaceCreator interfce)Creates anOperationProvidedRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.Componentprovides(OperationInterfaceCreator interfce, String name)Creates anOperationProvidedRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component.Componentprovides(org.palladiosimulator.pcm.repository.OperationInterface interfce)Creates anOperationProvidedRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.Componentprovides(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)Creates anOperationProvidedRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component.ComponentprovidesInfrastructure(InfrastructureInterfaceCreator interfce)Creates anInfrastructureProvidedRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.ComponentprovidesInfrastructure(InfrastructureInterfaceCreator interfce, String name)Creates anInfrastructureProvidedRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component.ComponentprovidesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)Creates anInfrastructureProvidedRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.ComponentprovidesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)Creates anInfrastructureProvidedRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component.Componentrequires(OperationInterfaceCreator interfce)Creates anOperationRequiredRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.Componentrequires(OperationInterfaceCreator interfce, String name)Creates anOperationRequiredRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component.Componentrequires(org.palladiosimulator.pcm.repository.OperationInterface interfce)Creates anOperationRequiredRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.Componentrequires(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)Creates anOperationRequiredRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component.ComponentrequiresInfrastructure(InfrastructureInterfaceCreator interfce)Creates anInfrastructureRequiredRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.ComponentrequiresInfrastructure(InfrastructureInterfaceCreator interfce, String name)Creates anInfrastructureRequiredRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component.ComponentrequiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)Creates anInfrastructureRequiredRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.ComponentrequiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)Creates anInfrastructureRequiredRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component.ComponentrequiresResource(ResourceInterface resourceInterface)Creates aResourceRequiredRoleconnection between the component and theResourceInterfaceresourceInterfaceand adds it to the component.ComponentrequiresResource(ResourceInterface resourceInterface, String name)Creates aResourceRequiredRoleconnection with the namenamebetween the component and theResourceInterfaceresourceInterfaceand 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:EntityTurns the entity in the making into the finished entity.
-
provides
public Component provides(OperationInterfaceCreator interfce)
Creates anOperationProvidedRoleconnection between the component and theOperationInterfaceinterfceand 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 anOperationProvidedRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component. Setting thenameis 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 anOperationProvidedRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.An existing
interfcecan 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 anOperationProvidedRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component. Setting thenameis important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
interfcecan 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 anInfrastructureProvidedRoleconnection between the component and theInfrastructureInterfaceinterfceand 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 anInfrastructureProvidedRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component. Setting thenameis 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 anInfrastructureProvidedRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.An existing
interfcecan 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 anInfrastructureProvidedRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component. Setting thenameis important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
interfcecan 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 aSinkRoleconnection between the component and theEventGroupeventGroupand 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 aSinkRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component. Setting thenameis 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 aSinkRoleconnection between the component and theEventGroupeventGroupand adds it to the component.An existing
eventGroupcan 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 aSinkRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component. Setting thenameis important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
eventGroupcan 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 anOperationRequiredRoleconnection between the component and theOperationInterfaceinterfceand 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 anOperationRequiredRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component. Setting thenameis 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 anOperationRequiredRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.An existing
interfcecan 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 anOperationRequiredRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component. Setting thenameis important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
interfcecan 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 anInfrastructureRequiredRoleconnection between the component and theInfrastructureInterfaceinterfceand 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 anInfrastructureRequiredRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component. Setting thenameis 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 anInfrastructureRequiredRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.An existing
interfcecan 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 anInfrastructureRequiredRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component. Setting thenameis important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
interfcecan 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 aSourceRoleconnection between the component and theEventGroupeventGroupand 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 aSourceRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component. Setting thenameis 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 aSourceRoleconnection between the component and theEventGroupeventGroupand adds it to the component.An existing
eventGroupcan 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 aSourceRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component. Setting thenameis important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
eventGroupcan 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 aResourceRequiredRoleconnection between the component and theResourceInterfaceresourceInterfaceand adds it to the component.An existing
resourceInterfacecan 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 aResourceRequiredRoleconnection with the namenamebetween the component and theResourceInterfaceresourceInterfaceand adds it to the component. Setting thenameis important for referencing if the role is used in a connector of a composite component and/or subsystem later on.An existing
resourceInterfacecan 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)
-
-