Class EmitEventActionCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
-
- org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
-
- org.palladiosimulator.generator.fluent.repository.structure.components.seff.EmitEventActionCreator
-
public class EmitEventActionCreator extends SeffAction
This class constructs anEmitEventAction
. It is used to create the 'EmitEventAction' object step-by-step, i.e. 'EmitEventActionCreator' objects are of intermediate state.- See Also:
EmitEventAction
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
seff
-
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
repository
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EmitEventActionCreator(SeffCreator seff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.palladiosimulator.pcm.seff.EmitEventAction
build()
Turns the entity in the making into the finished entity.EmitEventActionCreator
withEventType(org.palladiosimulator.pcm.repository.EventType eventType)
Specifies theeventType
that is emitted by this action.EmitEventActionCreator
withInputVariableUsage(VariableUsageCreator variableUsage)
Adds thevariableUsage
to this action's list of input variable usages.EmitEventActionCreator
withName(String name)
Defines the unique name of this current entity.EmitEventActionCreator
withSourceRole(org.palladiosimulator.pcm.repository.SourceRole sourceRole)
Specifies thesourceRole
that is triggered by this action.-
Methods inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
followedBy
-
-
-
-
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.
-
withEventType
public EmitEventActionCreator withEventType(org.palladiosimulator.pcm.repository.EventType eventType)
Specifies theeventType
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 thesourceRole
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)
-
withInputVariableUsage
public EmitEventActionCreator withInputVariableUsage(VariableUsageCreator variableUsage)
Adds thevariableUsage
to this action's list of input variable usages.- Parameters:
variableUsage
-- Returns:
- this emit event action in the making
- See Also:
FluentRepositoryFactory.newVariableUsage()
-
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 classSeffAction
- Returns:
- the finished entity
-
-