Class SystemCreator
java.lang.Object
org.palladiosimulator.generator.fluent.shared.structure.Entity
org.palladiosimulator.generator.fluent.system.structure.SystemEntity
org.palladiosimulator.generator.fluent.system.structure.SystemCreator
- All Implemented Interfaces:
ISystem
,ISystemAddition
This class constructs a
System
.- See Also:
-
System
-
Field Summary
Fields inherited from class org.palladiosimulator.generator.fluent.system.structure.SystemEntity
system
-
Constructor Summary
ConstructorDescriptionSystemCreator
(org.palladiosimulator.pcm.resourcetype.ResourceRepository resources, IModelValidator validator) -
Method Summary
Modifier and TypeMethodDescriptionaddRepository
(org.palladiosimulator.pcm.repository.Repository repository) Adds a repository to the org.palladiosimulator.generator.fluent.system.addToSystem
(AssemblyContextCreator context) Adds anAssemblyContext
to the org.palladiosimulator.generator.fluent.system.addToSystem
(AbstractConnectorCreator connector) Adds aConnector
to the org.palladiosimulator.generator.fluent.system.Adds aResourceRequiredDelegationConnector
to the org.palladiosimulator.generator.fluent.system.addToSystem
(EventChannelCreator eventChannel) Adds anEventChannel
to the org.palladiosimulator.generator.fluent.system.addToSystem
(QoSAnnotationsCreator annotations) AddsQoSAnnotations
to the org.palladiosimulator.generator.fluent.system.Adds anInfrastructureProvidedRole
to the org.palladiosimulator.generator.fluent.system.Adds anInfrastructureRequiredRole
to the org.palladiosimulator.generator.fluent.system.Adds anOperationProvidedRole
to the org.palladiosimulator.generator.fluent.system.Adds anOperationRequiredRole
to the org.palladiosimulator.generator.fluent.system.Adds aResourceRequiredRole
to the org.palladiosimulator.generator.fluent.system.addToSystem
(SinkRoleCreator role) Adds aSinkRole
to the org.palladiosimulator.generator.fluent.system.addToSystem
(SourceRoleCreator role) Adds aSourceRole
to the org.palladiosimulator.generator.fluent.system.protected org.palladiosimulator.pcm.system.System
build()
Turns the entity in the making into the finished entity.org.palladiosimulator.pcm.system.System
Completes the org.palladiosimulator.generator.fluent.system creation.org.palladiosimulator.pcm.core.composition.AssemblyContext
Searches theAssemblyContext
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.core.composition.EventChannel
getEventChannelByName
(String name) Searches theEventChannel
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.Interface
getInterfaceByName
(String name) Searches the repositories added to the org.palladiosimulator.generator.fluent.system for anInterface
that matches the given name.org.palladiosimulator.pcm.repository.RepositoryComponent
Searches the repositories added to the org.palladiosimulator.generator.fluent.system for anRepositoryComponent
that matches the given name.org.palladiosimulator.pcm.resourcetype.ResourceInterface
getResourceInterface
(ResourceInterface resource) Fetches theResourceInterface
matching the given resource.org.palladiosimulator.pcm.core.entity.ResourceRequiredRole
Searches theResourceRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.InfrastructureProvidedRole
Searches theInfrastructureProvidedRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.InfrastructureRequiredRole
Searches theInfrastructureRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.OperationProvidedRole
Searches theOperationProvidedRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.OperationRequiredRole
Searches theOperationRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.core.entity.ResourceRequiredRole
Searches theResourceRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.SinkRole
Searches theSinkRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.SourceRole
Searches theSourceRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.Defines the unique name of this current entity.
-
Constructor Details
-
Method Details
-
withName
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. -
build
protected org.palladiosimulator.pcm.system.System build()Description copied from class:Entity
Turns the entity in the making into the finished entity. -
createSystemNow
public org.palladiosimulator.pcm.system.System createSystemNow()Description copied from interface:ISystemAddition
Completes the org.palladiosimulator.generator.fluent.system creation.- Specified by:
createSystemNow
in interfaceISystemAddition
- Returns:
- the final org.palladiosimulator.generator.fluent.system object
- See Also:
-
System
-
addToSystem
Description copied from interface:ISystemAddition
Adds anAssemblyContext
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished AssemblyContext.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
AssemblyContext
-
addRepository
Description copied from interface:ISystemAddition
Adds a repository to the org.palladiosimulator.generator.fluent.system. Components from added repositories can be added to the org.palladiosimulator.generator.fluent.system by name.- Specified by:
addRepository
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
Repository
-
addToSystem
Description copied from interface:ISystemAddition
Adds aConnector
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
Connector
-
addToSystem
Description copied from interface:ISystemAddition
Adds anOperationRequiredRole
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
OperationRequiredRole
-
addToSystem
Description copied from interface:ISystemAddition
Adds anOperationProvidedRole
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
OperationProvidedRole
-
addToSystem
Description copied from interface:ISystemAddition
Adds anEventChannel
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
EventChannel
-
addToSystem
Description copied from interface:ISystemAddition
Adds aSinkRole
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
SinkRole
-
addToSystem
Description copied from interface:ISystemAddition
Adds aSourceRole
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
-
addToSystem
Description copied from interface:ISystemAddition
Adds anInfrastructureRequiredRole
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
InfrastructureRequiredRole
-
addToSystem
Description copied from interface:ISystemAddition
Adds anInfrastructureProvidedRole
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
InfrastructureProvidedRole
-
addToSystem
Description copied from interface:ISystemAddition
AddsQoSAnnotations
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
QoSAnnotations
-
addToSystem
Description copied from interface:ISystemAddition
Adds aResourceRequiredRole
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
ResourceRequiredRole
-
addToSystem
Description copied from interface:ISystemAddition
Adds aResourceRequiredDelegationConnector
to the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystem
in interfaceISystemAddition
- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
-
ResourceRequiredDelegationConnector
-
getInterfaceByName
public org.palladiosimulator.pcm.repository.Interface getInterfaceByName(String name) throws NoSuchElementException Searches the repositories added to the org.palladiosimulator.generator.fluent.system for anInterface
that matches the given name.- Parameters:
name
-- Returns:
- the matching interface
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
Interface
-
getRepositoryComponentByName
public org.palladiosimulator.pcm.repository.RepositoryComponent getRepositoryComponentByName(String name) throws NoSuchElementException Searches the repositories added to the org.palladiosimulator.generator.fluent.system for anRepositoryComponent
that matches the given name.- Parameters:
name
-- Returns:
- the matching component
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
RepositoryComponent
-
getAssemblyContextByName
public org.palladiosimulator.pcm.core.composition.AssemblyContext getAssemblyContextByName(String name) throws NoSuchElementException Searches theAssemblyContext
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching context
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
AssemblyContext
-
getResourceRequiredRoleByName
public org.palladiosimulator.pcm.core.entity.ResourceRequiredRole getResourceRequiredRoleByName(String name) throws NoSuchElementException Searches theResourceRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching role
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
ResourceRequiredRole
-
getSystemOperationRequiredRoleByName
public org.palladiosimulator.pcm.repository.OperationRequiredRole getSystemOperationRequiredRoleByName(String name) throws NoSuchElementException Searches theOperationRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching role
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
OperationRequiredRole
-
getSystemOperationProvidedRoleByName
public org.palladiosimulator.pcm.repository.OperationProvidedRole getSystemOperationProvidedRoleByName(String name) Searches theOperationProvidedRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching role
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
OperationProvidedRole
-
getSystemSinkRoleByName
public org.palladiosimulator.pcm.repository.SinkRole getSystemSinkRoleByName(String name) throws NoSuchElementException Searches theSinkRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching role
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
SinkRole
-
getSystemInfrastructureRequiredRoleByName
public org.palladiosimulator.pcm.repository.InfrastructureRequiredRole getSystemInfrastructureRequiredRoleByName(String name) throws NoSuchElementException Searches theInfrastructureRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching role
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
InfrastructureRequiredRole
-
getSystemInfrastructureProvidedRoleByName
public org.palladiosimulator.pcm.repository.InfrastructureProvidedRole getSystemInfrastructureProvidedRoleByName(String name) throws NoSuchElementException Searches theInfrastructureProvidedRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching role
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
InfrastructureProvidedRole
-
getSystemSourceRoleByName
public org.palladiosimulator.pcm.repository.SourceRole getSystemSourceRoleByName(String name) throws NoSuchElementException Searches theSourceRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching role
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
SourceRole
-
getSystemResourceRequiredRoleByName
public org.palladiosimulator.pcm.core.entity.ResourceRequiredRole getSystemResourceRequiredRoleByName(String name) throws NoSuchElementException Searches theResourceRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching role
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
ResourceRequiredRole
-
getEventChannelByName
public org.palladiosimulator.pcm.core.composition.EventChannel getEventChannelByName(String name) throws NoSuchElementException Searches theEventChannel
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.- Parameters:
name
-- Returns:
- the matching event channel
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
-
org.palladiosimulator.pcm.repository.EventChannel
-