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 protectedEmitEventActionCreator(SeffCreator seff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.palladiosimulator.pcm.seff.EmitEventActionbuild()Turns the entity in the making into the finished entity.EmitEventActionCreatorwithEventType(org.palladiosimulator.pcm.repository.EventType eventType)Specifies theeventTypethat is emitted by this action.EmitEventActionCreatorwithInputVariableUsage(VariableUsageCreator variableUsage)Adds thevariableUsageto this action's list of input variable usages.EmitEventActionCreatorwithName(String name)Defines the unique name of this current entity.EmitEventActionCreatorwithSourceRole(org.palladiosimulator.pcm.repository.SourceRole sourceRole)Specifies thesourceRolethat 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: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.
-
withEventType
public EmitEventActionCreator withEventType(org.palladiosimulator.pcm.repository.EventType eventType)
Specifies theeventTypethat is emitted by this action.An existing
eventTypecan 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 thesourceRolethat is triggered by this action.An existing
sourceRolecan 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 thevariableUsageto 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:EntityTurns the entity in the making into the finished entity.- Specified by:
buildin classSeffAction- Returns:
- the finished entity
-
-