Class ProvidesComponentTypeCreator
- 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.ProvidesComponentTypeCreator
-
public class ProvidesComponentTypeCreator extends Component
This class constructs aProvidesComponentType. It is used to create the 'ProvidesComponentType' object step-by-step, i.e. 'ProvidesComponentTypeCreator' objects are of intermediate state.- See Also:
ProvidesComponentType
-
-
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 ProvidesComponentTypeCreator(RepositoryCreator repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.repository.ProvidesComponentTypebuild()Turns the entity in the making into the finished entity.ProvidesComponentTypeCreatoremits(EventGroupCreator eventGroup)Creates aSourceRoleconnection between the component and theEventGroupeventGroupand adds it to the component.ProvidesComponentTypeCreatoremits(EventGroupCreator eventGroup, String name)Creates aSourceRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component.ProvidesComponentTypeCreatoremits(org.palladiosimulator.pcm.repository.EventGroup eventGroup)Creates aSourceRoleconnection between the component and theEventGroupeventGroupand adds it to the component.ProvidesComponentTypeCreatoremits(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)Creates aSourceRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component.ProvidesComponentTypeCreatorhandles(EventGroupCreator eventGroup)Creates aSinkRoleconnection between the component and theEventGroupeventGroupand adds it to the component.ProvidesComponentTypeCreatorhandles(EventGroupCreator eventGroup, String name)Creates aSinkRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component.ProvidesComponentTypeCreatorhandles(org.palladiosimulator.pcm.repository.EventGroup eventGroup)Creates aSinkRoleconnection between the component and theEventGroupeventGroupand adds it to the component.ProvidesComponentTypeCreatorhandles(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)Creates aSinkRoleconnection with the namenamebetween the component and theEventGroupeventGroupand adds it to the component.ProvidesComponentTypeCreatorprovides(OperationInterfaceCreator interfce)Creates anOperationProvidedRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorprovides(OperationInterfaceCreator interfce, String name)Creates anOperationProvidedRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorprovides(org.palladiosimulator.pcm.repository.OperationInterface interfce)Creates anOperationProvidedRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorprovides(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)Creates anOperationProvidedRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorprovidesInfrastructure(InfrastructureInterfaceCreator interfce)Creates anInfrastructureProvidedRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorprovidesInfrastructure(InfrastructureInterfaceCreator interfce, String name)Creates anInfrastructureProvidedRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorprovidesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)Creates anInfrastructureProvidedRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorprovidesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)Creates anInfrastructureProvidedRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorrequires(OperationInterfaceCreator interfce)Creates anOperationRequiredRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorrequires(OperationInterfaceCreator interfce, String name)Creates anOperationRequiredRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorrequires(org.palladiosimulator.pcm.repository.OperationInterface interfce)Creates anOperationRequiredRoleconnection between the component and theOperationInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorrequires(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)Creates anOperationRequiredRoleconnection with the namenamebetween the component and theOperationInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorrequiresInfrastructure(InfrastructureInterfaceCreator interfce)Creates anInfrastructureRequiredRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorrequiresInfrastructure(InfrastructureInterfaceCreator interfce, String name)Creates anInfrastructureRequiredRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorrequiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)Creates anInfrastructureRequiredRoleconnection between the component and theInfrastructureInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorrequiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)Creates anInfrastructureRequiredRoleconnection with the namenamebetween the component and theInfrastructureInterfaceinterfceand adds it to the component.ProvidesComponentTypeCreatorrequiresResource(ResourceInterface resourceInterface)Creates aResourceRequiredRoleconnection between the component and theResourceInterfaceresourceInterfaceand adds it to the component.ProvidesComponentTypeCreatorrequiresResource(ResourceInterface resourceInterface, String name)Creates aResourceRequiredRoleconnection with the namenamebetween the component and theResourceInterfaceresourceInterfaceand adds it to the component.ProvidesComponentTypeCreatorwithName(String name)Defines the unique name of this current entity.
-
-
-
Constructor Detail
-
ProvidesComponentTypeCreator
public ProvidesComponentTypeCreator(RepositoryCreator repo)
-
-
Method Detail
-
withName
public ProvidesComponentTypeCreator 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.
-
provides
public ProvidesComponentTypeCreator provides(OperationInterfaceCreator interfce)
Description copied from class:ComponentCreates 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().- Overrides:
providesin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
provides
public ProvidesComponentTypeCreator provides(OperationInterfaceCreator interfce, String name)
Description copied from class:ComponentCreates 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().- Overrides:
providesin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
provides
public ProvidesComponentTypeCreator provides(org.palladiosimulator.pcm.repository.OperationInterface interfce)
Description copied from class:ComponentCreates 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).- Overrides:
providesin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
provides
public ProvidesComponentTypeCreator provides(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)
Description copied from class:ComponentCreates 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).- Overrides:
providesin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
providesInfrastructure
public ProvidesComponentTypeCreator providesInfrastructure(InfrastructureInterfaceCreator interfce)
Description copied from class:ComponentCreates 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().- Overrides:
providesInfrastructurein classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
providesInfrastructure
public ProvidesComponentTypeCreator providesInfrastructure(InfrastructureInterfaceCreator interfce, String name)
Description copied from class:ComponentCreates 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().- Overrides:
providesInfrastructurein classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
providesInfrastructure
public ProvidesComponentTypeCreator providesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
Description copied from class:ComponentCreates 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).- Overrides:
providesInfrastructurein classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
providesInfrastructure
public ProvidesComponentTypeCreator providesInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)
Description copied from class:ComponentCreates 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).- Overrides:
providesInfrastructurein classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
handles
public ProvidesComponentTypeCreator handles(EventGroupCreator eventGroup)
Description copied from class:ComponentCreates 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().- Overrides:
handlesin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
handles
public ProvidesComponentTypeCreator handles(EventGroupCreator eventGroup, String name)
Description copied from class:ComponentCreates 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().- Overrides:
handlesin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
handles
public ProvidesComponentTypeCreator handles(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Description copied from class:ComponentCreates 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).- Overrides:
handlesin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
handles
public ProvidesComponentTypeCreator handles(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)
Description copied from class:ComponentCreates 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).- Overrides:
handlesin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
requires
public ProvidesComponentTypeCreator requires(OperationInterfaceCreator interfce)
Description copied from class:ComponentCreates 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().- Overrides:
requiresin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
requires
public ProvidesComponentTypeCreator requires(OperationInterfaceCreator interfce, String name)
Description copied from class:ComponentCreates 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().- Overrides:
requiresin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newOperationInterface()
-
requires
public ProvidesComponentTypeCreator requires(org.palladiosimulator.pcm.repository.OperationInterface interfce)
Description copied from class:ComponentCreates 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).- Overrides:
requiresin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
requires
public ProvidesComponentTypeCreator requires(org.palladiosimulator.pcm.repository.OperationInterface interfce, String name)
Description copied from class:ComponentCreates 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).- Overrides:
requiresin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfOperationInterface(String)
-
requiresInfrastructure
public ProvidesComponentTypeCreator requiresInfrastructure(InfrastructureInterfaceCreator interfce)
Description copied from class:ComponentCreates 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().- Overrides:
requiresInfrastructurein classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
requiresInfrastructure
public ProvidesComponentTypeCreator requiresInfrastructure(InfrastructureInterfaceCreator interfce, String name)
Description copied from class:ComponentCreates 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().- Overrides:
requiresInfrastructurein classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newInfrastructureInterface()
-
requiresInfrastructure
public ProvidesComponentTypeCreator requiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce)
Description copied from class:ComponentCreates 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).- Overrides:
requiresInfrastructurein classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
requiresInfrastructure
public ProvidesComponentTypeCreator requiresInfrastructure(org.palladiosimulator.pcm.repository.InfrastructureInterface interfce, String name)
Description copied from class:ComponentCreates 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).- Overrides:
requiresInfrastructurein classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfInfrastructureInterface(String)
-
emits
public ProvidesComponentTypeCreator emits(EventGroupCreator eventGroup)
Description copied from class:ComponentCreates 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().- Overrides:
emitsin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
emits
public ProvidesComponentTypeCreator emits(EventGroupCreator eventGroup, String name)
Description copied from class:ComponentCreates 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().- Overrides:
emitsin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.newEventGroup()
-
emits
public ProvidesComponentTypeCreator emits(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Description copied from class:ComponentCreates 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).- Overrides:
emitsin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
emits
public ProvidesComponentTypeCreator emits(org.palladiosimulator.pcm.repository.EventGroup eventGroup, String name)
Description copied from class:ComponentCreates 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).- Overrides:
emitsin classComponent- Returns:
- this component
- See Also:
FluentRepositoryFactory.fetchOfEventGroup(String)
-
requiresResource
public ProvidesComponentTypeCreator requiresResource(ResourceInterface resourceInterface)
Description copied from class:ComponentCreates 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).- Overrides:
requiresResourcein classComponent- Returns:
- this component
- See Also:
org.palladiosimulator.generator.fluent.repository.factory.FluentRepositoryFactory#fetchOfResourceInterface(String)
-
requiresResource
public ProvidesComponentTypeCreator requiresResource(ResourceInterface resourceInterface, String name)
Description copied from class:ComponentCreates 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).- Overrides:
requiresResourcein classComponent- Returns:
- this component
- See Also:
org.palladiosimulator.generator.fluent.repository.factory.FluentRepositoryFactory#fetchOfResourceInterface(String)
-
-