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
public class SystemCreator extends SystemEntity implements ISystem
This class constructs aSystem
.- See Also:
System
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.system.structure.SystemEntity
system
-
-
Constructor Summary
Constructors Constructor Description SystemCreator(org.palladiosimulator.pcm.resourcetype.ResourceRepository resources, IModelValidator validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISystem
addRepository(org.palladiosimulator.pcm.repository.Repository repository)
Adds a repository to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(AssemblyContextCreator context)
Adds anAssemblyContext
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(AbstractConnectorCreator connector)
Adds aConnector
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(ResourceRequiredDelegationConnectorCreator connector)
Adds aResourceRequiredDelegationConnector
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(EventChannelCreator eventChannel)
Adds anEventChannel
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(QoSAnnotationsCreator annotations)
AddsQoSAnnotations
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(InfrastructureProvidedRoleCreator role)
Adds anInfrastructureProvidedRole
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(InfrastructureRequiredRoleCreator role)
Adds anInfrastructureRequiredRole
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(OperationProvidedRoleCreator role)
Adds anOperationProvidedRole
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(OperationRequiredRoleCreator role)
Adds anOperationRequiredRole
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(ResourceRequiredRoleCreator role)
Adds aResourceRequiredRole
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
addToSystem(SinkRoleCreator role)
Adds aSinkRole
to the org.palladiosimulator.generator.fluent.system.ISystemAddition
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
createSystemNow()
Completes the org.palladiosimulator.generator.fluent.system creation.org.palladiosimulator.pcm.core.composition.AssemblyContext
getAssemblyContextByName(String name)
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
getRepositoryComponentByName(String name)
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
getResourceRequiredRoleByName(String name)
Searches theResourceRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.InfrastructureProvidedRole
getSystemInfrastructureProvidedRoleByName(String name)
Searches theInfrastructureProvidedRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.InfrastructureRequiredRole
getSystemInfrastructureRequiredRoleByName(String name)
Searches theInfrastructureRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.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.org.palladiosimulator.pcm.repository.OperationRequiredRole
getSystemOperationRequiredRoleByName(String name)
Searches theOperationRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.core.entity.ResourceRequiredRole
getSystemResourceRequiredRoleByName(String name)
Searches theResourceRequiredRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.SinkRole
getSystemSinkRoleByName(String name)
Searches theSinkRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.SourceRole
getSystemSourceRoleByName(String name)
Searches theSourceRole
s added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.SystemCreator
withName(String name)
Defines the unique name of this current entity.
-
-
-
Constructor Detail
-
SystemCreator
public SystemCreator(org.palladiosimulator.pcm.resourcetype.ResourceRepository resources, IModelValidator validator)
-
-
Method Detail
-
withName
public SystemCreator 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.
-
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
public ISystemAddition addToSystem(AssemblyContextCreator context)
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
public ISystem addRepository(org.palladiosimulator.pcm.repository.Repository repository)
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
public ISystemAddition addToSystem(AbstractConnectorCreator connector)
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
public ISystemAddition addToSystem(OperationRequiredRoleCreator role)
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
public ISystemAddition addToSystem(OperationProvidedRoleCreator role)
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
public ISystemAddition addToSystem(EventChannelCreator eventChannel)
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
public ISystemAddition addToSystem(SinkRoleCreator role)
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
public ISystemAddition addToSystem(SourceRoleCreator role)
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
public ISystemAddition addToSystem(InfrastructureRequiredRoleCreator role)
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
public ISystemAddition addToSystem(InfrastructureProvidedRoleCreator role)
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
public ISystemAddition addToSystem(QoSAnnotationsCreator annotations)
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
public ISystemAddition addToSystem(ResourceRequiredRoleCreator role)
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
public ISystemAddition addToSystem(ResourceRequiredDelegationConnectorCreator connector)
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
-
getResourceInterface
public org.palladiosimulator.pcm.resourcetype.ResourceInterface getResourceInterface(ResourceInterface resource)
Fetches theResourceInterface
matching the given resource.- Parameters:
resource
-- Returns:
- the matching resource interface
- See Also:
ResourceInterface
-
-