Class AllocationContextCreator
java.lang.Object
org.palladiosimulator.generator.fluent.shared.structure.Entity
org.palladiosimulator.generator.fluent.allocation.structure.AllocationEntity
org.palladiosimulator.generator.fluent.allocation.structure.AllocationContextCreator
This class constructs an
AllocationContext
. Either an AssemblyContext
or an EventChannel
is allocated to a
ResourceContainer
.- See Also:
-
AllocationContext
-
Field Summary
Fields inherited from class org.palladiosimulator.generator.fluent.allocation.structure.AllocationEntity
allocationCreator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.palladiosimulator.pcm.allocation.AllocationContext
build()
Turns the entity in the making into the finished entity.withAssemblyContext
(String name) Defines theAssemblyContext
that is allocated to theResourceContainer
.withAssemblyContext
(org.palladiosimulator.pcm.core.composition.AssemblyContext context) Defines theAssemblyContext
that is allocated to theResourceContainer
.withEventChannel
(String name) Defines theEventChannel
that is allocated to theResourceContainer
.withEventChannel
(org.palladiosimulator.pcm.core.composition.EventChannel channel) Defines theEventChannel
that is allocated to theResourceContainer
.Defines the unique name of this current entity.withResourceContainer
(String name) Defines theResourceContainer
, theAssemblyContext
orEventChannel
is allocated to.withResourceContainer
(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container) Defines theResourceContainer
, theAssemblyContext
orEventChannel
is allocated to.
-
Constructor Details
-
AllocationContextCreator
-
-
Method Details
-
withAssemblyContext
public AllocationContextCreator withAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context) Defines theAssemblyContext
that is allocated to theResourceContainer
.- Parameters:
context
-- Returns:
- this
AllocationContext
- See Also:
-
AssemblyContext
-
withAssemblyContext
Defines theAssemblyContext
that is allocated to theResourceContainer
. TheSystem
used for the org.palladiosimulator.generator.fluent.allocation is searched for anAssemblyContext
with the given name.- Parameters:
name
-- Returns:
- this
AllocationContext
- Throws:
IllegalArgumentException
- Thrown if no AssemblyContext with the given name exists- See Also:
-
AssemblyContext
-
withEventChannel
public AllocationContextCreator withEventChannel(org.palladiosimulator.pcm.core.composition.EventChannel channel) Defines theEventChannel
that is allocated to theResourceContainer
.- Parameters:
context
-- Returns:
- this
AllocationContext
- See Also:
-
EventChannel
-
withEventChannel
Defines theEventChannel
that is allocated to theResourceContainer
. TheSystem
used for the org.palladiosimulator.generator.fluent.allocation is searched for anEventChannel
with the given name.- Parameters:
name
-- Returns:
- this
AllocationContext
- Throws:
IllegalArgumentException
- Thrown if no EventChannel with the given name exists- See Also:
-
EventChannel
-
withResourceContainer
public AllocationContextCreator withResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container) Defines theResourceContainer
, theAssemblyContext
orEventChannel
is allocated to.- Parameters:
container
-- Returns:
- this
AllocationContext
- See Also:
-
ResourceContainer
-
withResourceContainer
Defines theResourceContainer
, theAssemblyContext
orEventChannel
is allocated to. TheResourceEnvironment
used for the org.palladiosimulator.generator.fluent.allocation is searched for aResourceContainer
with the given name.- Parameters:
container
-- Returns:
- this
AllocationContext
- Throws:
IllegalArgumentException
- Thrown if no ResourceContainer with the given name exists- See Also:
-
ResourceContainer
-
build
protected org.palladiosimulator.pcm.allocation.AllocationContext build()Description copied from class:Entity
Turns the entity in the making into the finished entity. -
withName
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.
-