Class EventChannelSourceConnectorCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.system.structure.SystemEntity
-
- org.palladiosimulator.generator.fluent.system.structure.connector.AbstractConnectorCreator
-
- org.palladiosimulator.generator.fluent.system.structure.connector.event.EventChannelSourceConnectorCreator
-
public class EventChannelSourceConnectorCreator extends AbstractConnectorCreator
This class constructs anEventChannelSourceConnector
.- See Also:
EventChannelSourceConnector
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.system.structure.SystemEntity
system
-
-
Constructor Summary
Constructors Constructor Description EventChannelSourceConnectorCreator(SystemCreator systemCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.core.composition.EventChannelSourceConnector
build()
Turns the entity in the making into the finished entity.SourceRoleSelector<EventChannelSourceConnectorCreator>
withAssemblyContext(String name)
Defines theAssemblyContext
with the source role.SourceRoleSelector<EventChannelSourceConnectorCreator>
withAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext)
Defines theAssemblyContext
with the source role.EventChannelSourceConnectorCreator
withEventChannel(String name)
Defines theEventChannel
the source role is connected to.EventChannelSourceConnectorCreator
withEventChannel(org.palladiosimulator.pcm.core.composition.EventChannel eventChannel)
Defines theEventChannel
the source role is connected to.EventChannelSourceConnectorCreator
withName(String name)
Defines the unique name of this current entity.
-
-
-
Constructor Detail
-
EventChannelSourceConnectorCreator
public EventChannelSourceConnectorCreator(SystemCreator systemCreator)
-
-
Method Detail
-
withEventChannel
public EventChannelSourceConnectorCreator withEventChannel(org.palladiosimulator.pcm.core.composition.EventChannel eventChannel)
Defines theEventChannel
the source role is connected to.- Parameters:
eventChannel
-- Returns:
- this connector
- See Also:
EventChannel
,SourceRole
-
withEventChannel
public EventChannelSourceConnectorCreator withEventChannel(String name) throws NoSuchElementException
Defines theEventChannel
the source role is connected to. The event channels added to the org.palladiosimulator.generator.fluent.system are searched for one that matches the given name.- Parameters:
name
-- Returns:
- this connector
- Throws:
NoSuchElementException
- Thrown if no element matches the given name- See Also:
EventChannel
,SourceRole
-
withAssemblyContext
public SourceRoleSelector<EventChannelSourceConnectorCreator> withAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext)
Defines theAssemblyContext
with the source role.- Parameters:
context
-- Returns:
- this connector
- See Also:
AssemblyContext
,SourceRole
-
withAssemblyContext
public SourceRoleSelector<EventChannelSourceConnectorCreator> withAssemblyContext(String name)
Defines theAssemblyContext
with the source role. The assembly contexts added to the org.palladiosimulator.generator.fluent.system are searched for one that matches the given name.- Parameters:
name
-- Returns:
- this connector
- Throws:
NoSuchElementException
- Thrown if no element matches the given name.- See Also:
AssemblyContext
,SourceRole
-
build
public org.palladiosimulator.pcm.core.composition.EventChannelSourceConnector build()
Description copied from class:Entity
Turns the entity in the making into the finished entity.- Specified by:
build
in classAbstractConnectorCreator
- Returns:
- the finished entity
-
withName
public EventChannelSourceConnectorCreator 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.
-
-