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 ISystemaddRepository(org.palladiosimulator.pcm.repository.Repository repository)Adds a repository to the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(AssemblyContextCreator context)Adds anAssemblyContextto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(AbstractConnectorCreator connector)Adds aConnectorto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(ResourceRequiredDelegationConnectorCreator connector)Adds aResourceRequiredDelegationConnectorto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(EventChannelCreator eventChannel)Adds anEventChannelto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(QoSAnnotationsCreator annotations)AddsQoSAnnotationsto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(InfrastructureProvidedRoleCreator role)Adds anInfrastructureProvidedRoleto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(InfrastructureRequiredRoleCreator role)Adds anInfrastructureRequiredRoleto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(OperationProvidedRoleCreator role)Adds anOperationProvidedRoleto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(OperationRequiredRoleCreator role)Adds anOperationRequiredRoleto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(ResourceRequiredRoleCreator role)Adds aResourceRequiredRoleto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(SinkRoleCreator role)Adds aSinkRoleto the org.palladiosimulator.generator.fluent.system.ISystemAdditionaddToSystem(SourceRoleCreator role)Adds aSourceRoleto the org.palladiosimulator.generator.fluent.system.protected org.palladiosimulator.pcm.system.Systembuild()Turns the entity in the making into the finished entity.org.palladiosimulator.pcm.system.SystemcreateSystemNow()Completes the org.palladiosimulator.generator.fluent.system creation.org.palladiosimulator.pcm.core.composition.AssemblyContextgetAssemblyContextByName(String name)Searches theAssemblyContexts added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.core.composition.EventChannelgetEventChannelByName(String name)Searches theEventChannels added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.InterfacegetInterfaceByName(String name)Searches the repositories added to the org.palladiosimulator.generator.fluent.system for anInterfacethat matches the given name.org.palladiosimulator.pcm.repository.RepositoryComponentgetRepositoryComponentByName(String name)Searches the repositories added to the org.palladiosimulator.generator.fluent.system for anRepositoryComponentthat matches the given name.org.palladiosimulator.pcm.resourcetype.ResourceInterfacegetResourceInterface(ResourceInterface resource)Fetches theResourceInterfacematching the given resource.org.palladiosimulator.pcm.core.entity.ResourceRequiredRolegetResourceRequiredRoleByName(String name)Searches theResourceRequiredRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.InfrastructureProvidedRolegetSystemInfrastructureProvidedRoleByName(String name)Searches theInfrastructureProvidedRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.InfrastructureRequiredRolegetSystemInfrastructureRequiredRoleByName(String name)Searches theInfrastructureRequiredRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.OperationProvidedRolegetSystemOperationProvidedRoleByName(String name)Searches theOperationProvidedRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.OperationRequiredRolegetSystemOperationRequiredRoleByName(String name)Searches theOperationRequiredRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.core.entity.ResourceRequiredRolegetSystemResourceRequiredRoleByName(String name)Searches theResourceRequiredRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.SinkRolegetSystemSinkRoleByName(String name)Searches theSinkRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.org.palladiosimulator.pcm.repository.SourceRolegetSystemSourceRoleByName(String name)Searches theSourceRoles added to the org.palladiosimulator.generator.fluent.system for one that matches the given name.SystemCreatorwithName(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: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.
-
build
protected org.palladiosimulator.pcm.system.System build()
Description copied from class:EntityTurns the entity in the making into the finished entity.
-
createSystemNow
public org.palladiosimulator.pcm.system.System createSystemNow()
Description copied from interface:ISystemAdditionCompletes the org.palladiosimulator.generator.fluent.system creation.- Specified by:
createSystemNowin interfaceISystemAddition- Returns:
- the final org.palladiosimulator.generator.fluent.system object
- See Also:
System
-
addToSystem
public ISystemAddition addToSystem(AssemblyContextCreator context)
Description copied from interface:ISystemAdditionAdds anAssemblyContextto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished AssemblyContext.- Specified by:
addToSystemin 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:ISystemAdditionAdds 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:
addRepositoryin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
Repository
-
addToSystem
public ISystemAddition addToSystem(AbstractConnectorCreator connector)
Description copied from interface:ISystemAdditionAdds aConnectorto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
Connector
-
addToSystem
public ISystemAddition addToSystem(OperationRequiredRoleCreator role)
Description copied from interface:ISystemAdditionAdds anOperationRequiredRoleto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
OperationRequiredRole
-
addToSystem
public ISystemAddition addToSystem(OperationProvidedRoleCreator role)
Description copied from interface:ISystemAdditionAdds anOperationProvidedRoleto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
OperationProvidedRole
-
addToSystem
public ISystemAddition addToSystem(EventChannelCreator eventChannel)
Description copied from interface:ISystemAdditionAdds anEventChannelto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
EventChannel
-
addToSystem
public ISystemAddition addToSystem(SinkRoleCreator role)
Description copied from interface:ISystemAdditionAdds aSinkRoleto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
SinkRole
-
addToSystem
public ISystemAddition addToSystem(SourceRoleCreator role)
Description copied from interface:ISystemAdditionAdds aSourceRoleto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
-
addToSystem
public ISystemAddition addToSystem(InfrastructureRequiredRoleCreator role)
Description copied from interface:ISystemAdditionAdds anInfrastructureRequiredRoleto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
InfrastructureRequiredRole
-
addToSystem
public ISystemAddition addToSystem(InfrastructureProvidedRoleCreator role)
Description copied from interface:ISystemAdditionAdds anInfrastructureProvidedRoleto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
InfrastructureProvidedRole
-
addToSystem
public ISystemAddition addToSystem(QoSAnnotationsCreator annotations)
Description copied from interface:ISystemAdditionAddsQoSAnnotationsto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
QoSAnnotations
-
addToSystem
public ISystemAddition addToSystem(ResourceRequiredRoleCreator role)
Description copied from interface:ISystemAdditionAdds aResourceRequiredRoleto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin interfaceISystemAddition- Returns:
- this org.palladiosimulator.generator.fluent.system
- See Also:
ResourceRequiredRole
-
addToSystem
public ISystemAddition addToSystem(ResourceRequiredDelegationConnectorCreator connector)
Description copied from interface:ISystemAdditionAdds aResourceRequiredDelegationConnectorto the org.palladiosimulator.generator.fluent.system. The creator will be turned into the finished connector.- Specified by:
addToSystemin 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 anInterfacethat 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 anRepositoryComponentthat 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 theAssemblyContexts 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 theResourceRequiredRoles 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 theOperationRequiredRoles 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 theOperationProvidedRoles 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 theSinkRoles 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 theInfrastructureRequiredRoles 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 theInfrastructureProvidedRoles 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 theSourceRoles 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 theResourceRequiredRoles 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 theEventChannels 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 theResourceInterfacematching the given resource.- Parameters:
resource-- Returns:
- the matching resource interface
- See Also:
ResourceInterface
-
-