Class OperationRequiredRoleCreator


  • public class OperationRequiredRoleCreator
    extends SystemEntity
    This class constructs an OperationRequiredRole.
    See Also:
    OperationRequiredRole
    • Constructor Detail

      • OperationRequiredRoleCreator

        public OperationRequiredRoleCreator​(SystemCreator systemCreator)
    • Method Detail

      • withRequiredInterface

        public OperationRequiredRoleCreator withRequiredInterface​(org.palladiosimulator.pcm.repository.OperationInterface operationInterface)
        Defines the OperationInterface this role requires.
        Parameters:
        operationInterface -
        Returns:
        this role creator
        See Also:
        OperationInterface
      • withRequiredInterface

        public OperationRequiredRoleCreator withRequiredInterface​(String name)
                                                           throws NoSuchElementException
        Defines the OperationInterface this role requires. Searches the repositories added to the org.palladiosimulator.generator.fluent.system for an interface that matches the given name.
        Parameters:
        name -
        Returns:
        this role creator
        Throws:
        NoSuchElementException - Thrown if no element matches the given name.
        See Also:
        OperationInterface
      • build

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

        public OperationRequiredRoleCreator 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