Class AssemblyEventConnectorCreator


  • public class AssemblyEventConnectorCreator
    extends AbstractConnectorCreator
    This class constructs an AssemblyEventConnector.
    See Also:
    AssemblyEventConnector
    • Constructor Detail

      • AssemblyEventConnectorCreator

        public AssemblyEventConnectorCreator​(SystemCreator systemCreator)
    • Method Detail

      • withSourceAssemblyContext

        public SourceRoleSelector<AssemblyEventConnectorCreator> withSourceAssemblyContext​(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
        Defines the AssemblyContext with the source role.
        Parameters:
        context -
        Returns:
        this connector
        See Also:
        AssemblyContext, SourceRole
      • withSourceAssemblyContext

        public SourceRoleSelector<AssemblyEventConnectorCreator> withSourceAssemblyContext​(String name)
                                                                                    throws NoSuchElementException
        Defines the AssemblyContext with the source role. The assembly contexts added to the org.palladiosimulator.generator.fluent.system are searched for one that matches the given name.
        Parameters:
        name -
        Returns:
        this connector
        Throws:
        NoSuchElementException - Thrown if no element matches the given name.
        See Also:
        AssemblyContext, SourceRole
      • withSinkAssemblyContext

        public SinkRoleSelector<AssemblyEventConnectorCreator> withSinkAssemblyContext​(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
        Defines the AssemblyContext with the sink role.
        Parameters:
        context -
        Returns:
        this connector
        See Also:
        AssemblyContext, SinkRole
      • withSinkAssemblyContext

        public SinkRoleSelector<AssemblyEventConnectorCreator> withSinkAssemblyContext​(String name)
        Defines the AssemblyContext with the sink role. The assembly contexts added to the org.palladiosimulator.generator.fluent.system are searched for one that matches the given name.
        Parameters:
        name -
        Returns:
        this connector
        Throws:
        NoSuchElementException - Thrown if no element matches the given name.
        See Also:
        AssemblyContext, SinkRole
      • build

        public org.palladiosimulator.pcm.core.composition.AssemblyEventConnector build()
        Description copied from class: Entity
        Turns the entity in the making into the finished entity.
        Specified by:
        build in class AbstractConnectorCreator
        Returns:
        the finished entity
      • withName

        public AssemblyEventConnectorCreator 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.
        Overrides:
        withName in class Entity
        Returns:
        this current entity in the making