Class EmitEventActionCreator


  • public class EmitEventActionCreator
    extends SeffAction
    This class constructs an EmitEventAction. It is used to create the 'EmitEventAction' object step-by-step, i.e. 'EmitEventActionCreator' objects are of intermediate state.
    See Also:
    EmitEventAction
    • Constructor Detail

      • EmitEventActionCreator

        protected EmitEventActionCreator​(SeffCreator seff)
    • Method Detail

      • withName

        public EmitEventActionCreator 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
      • withEventType

        public EmitEventActionCreator withEventType​(org.palladiosimulator.pcm.repository.EventType eventType)
        Specifies the eventType that is emitted by this action.

        An existing eventType can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e. create.fetchOfEventType(name).

        Parameters:
        eventType -
        Returns:
        this emit event action in the making
        See Also:
        FluentRepositoryFactory.fetchOfEventType(String)
      • withSourceRole

        public EmitEventActionCreator withSourceRole​(org.palladiosimulator.pcm.repository.SourceRole sourceRole)
        Specifies the sourceRole that is triggered by this action.

        An existing sourceRole can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e. create.fetchOfSourceRole(name).

        Parameters:
        sourceRole -
        Returns:
        this emit event action in the making
        See Also:
        FluentRepositoryFactory.fetchOfSourceRole(String)
      • build

        protected org.palladiosimulator.pcm.seff.EmitEventAction build()
        Description copied from class: Entity
        Turns the entity in the making into the finished entity.
        Specified by:
        build in class SeffAction
        Returns:
        the finished entity