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
-
public class AllocationContextCreator extends AllocationEntity
This class constructs anAllocationContext. Either anAssemblyContextor anEventChannelis allocated to aResourceContainer.- See Also:
AllocationContext
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.allocation.structure.AllocationEntity
allocationCreator
-
-
Constructor Summary
Constructors Constructor Description AllocationContextCreator(AllocationCreator allocationCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.palladiosimulator.pcm.allocation.AllocationContextbuild()Turns the entity in the making into the finished entity.AllocationContextCreatorwithAssemblyContext(String name)Defines theAssemblyContextthat is allocated to theResourceContainer.AllocationContextCreatorwithAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)Defines theAssemblyContextthat is allocated to theResourceContainer.AllocationContextCreatorwithEventChannel(String name)Defines theEventChannelthat is allocated to theResourceContainer.AllocationContextCreatorwithEventChannel(org.palladiosimulator.pcm.core.composition.EventChannel channel)Defines theEventChannelthat is allocated to theResourceContainer.AllocationContextCreatorwithName(String name)Defines the unique name of this current entity.AllocationContextCreatorwithResourceContainer(String name)Defines theResourceContainer, theAssemblyContextorEventChannelis allocated to.AllocationContextCreatorwithResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)Defines theResourceContainer, theAssemblyContextorEventChannelis allocated to.
-
-
-
Constructor Detail
-
AllocationContextCreator
public AllocationContextCreator(AllocationCreator allocationCreator)
-
-
Method Detail
-
withAssemblyContext
public AllocationContextCreator withAssemblyContext(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
Defines theAssemblyContextthat is allocated to theResourceContainer.- Parameters:
context-- Returns:
- this
AllocationContext - See Also:
AssemblyContext
-
withAssemblyContext
public AllocationContextCreator withAssemblyContext(String name) throws IllegalArgumentException
Defines theAssemblyContextthat is allocated to theResourceContainer. TheSystemused for the org.palladiosimulator.generator.fluent.allocation is searched for anAssemblyContextwith 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 theEventChannelthat is allocated to theResourceContainer.- Parameters:
context-- Returns:
- this
AllocationContext - See Also:
EventChannel
-
withEventChannel
public AllocationContextCreator withEventChannel(String name) throws IllegalArgumentException
Defines theEventChannelthat is allocated to theResourceContainer. TheSystemused for the org.palladiosimulator.generator.fluent.allocation is searched for anEventChannelwith 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, theAssemblyContextorEventChannelis allocated to.- Parameters:
container-- Returns:
- this
AllocationContext - See Also:
ResourceContainer
-
withResourceContainer
public AllocationContextCreator withResourceContainer(String name) throws IllegalArgumentException
Defines theResourceContainer, theAssemblyContextorEventChannelis allocated to. TheResourceEnvironmentused for the org.palladiosimulator.generator.fluent.allocation is searched for aResourceContainerwith 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:EntityTurns the entity in the making into the finished entity.
-
withName
public AllocationContextCreator 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.
-
-