Class SourceRoleCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.system.structure.SystemEntity
-
- org.palladiosimulator.generator.fluent.system.structure.role.SourceRoleCreator
-
public class SourceRoleCreator extends SystemEntity
This class constructs anSourceRole
.- See Also:
SourceRole
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.system.structure.SystemEntity
system
-
-
Constructor Summary
Constructors Constructor Description SourceRoleCreator(SystemCreator systemCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.repository.SourceRole
build()
Turns the entity in the making into the finished entity.SourceRoleCreator
withEventGroup(String name)
Defines theEventGroup
this role requires.SourceRoleCreator
withEventGroup(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Defines theEventGroup
this role requires.SourceRoleCreator
withName(String name)
Defines the unique name of this current entity.
-
-
-
Constructor Detail
-
SourceRoleCreator
public SourceRoleCreator(SystemCreator systemCreator)
-
-
Method Detail
-
withEventGroup
public SourceRoleCreator withEventGroup(org.palladiosimulator.pcm.repository.EventGroup eventGroup)
Defines theEventGroup
this role requires.- Parameters:
eventGroup
-- Returns:
- this role creator
- See Also:
EventGroup
-
withEventGroup
public SourceRoleCreator withEventGroup(String name) throws NoSuchElementException
Defines theEventGroup
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:
EventGroup
-
build
public org.palladiosimulator.pcm.repository.SourceRole build()
Description copied from class:Entity
Turns the entity in the making into the finished entity.
-
withName
public SourceRoleCreator 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.
-
-