Class AllocationRegistry
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.system.staticstructure.AllocationRegistry
-
public class AllocationRegistry extends Object
This class serves as a registry for resource allocations, i.e. for the deployment ofAssemblyContextonSimulatedResourceContainers.Use
allocate()to add an allocation. Existing allocations can be returned by using thegetResourceContainer()method.- See Also:
BuildResourceAllocation
-
-
Constructor Summary
Constructors Constructor Description AllocationRegistry()Constructs an empty registry for resource allocations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallocate(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyCtx, SimulatedResourceContainer resourceContainer)Allocates the given AssemblyContext to the specified resource container.SimulatedResourceContainergetResourceContainer(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyCtx)Returns the resource container that has been allocated to the specified AssemblyContext.
-
-
-
Method Detail
-
allocate
public void allocate(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyCtx, SimulatedResourceContainer resourceContainer)Allocates the given AssemblyContext to the specified resource container.- Parameters:
assemblyCtx- the AssemblyContextresourceContainer- the resource container
-
getResourceContainer
public SimulatedResourceContainer getResourceContainer(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyCtx)
Returns the resource container that has been allocated to the specified AssemblyContext.- Parameters:
assemblyCtx- the AssemblyContext- Returns:
- the resource container on which the given AssemblyContext is deployed
-
-