Class AssemblyAllocationManager

java.lang.Object
org.palladiosimulator.simulizar.runtimestate.AssemblyAllocationManager
All Implemented Interfaces:
de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>>, Extension, RuntimeStateEntityManager

public class AssemblyAllocationManager extends Object implements de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>>, RuntimeStateEntityManager
  • Constructor Details

    • AssemblyAllocationManager

      @Inject public AssemblyAllocationManager()
  • Method Details

    • getAllocatedEntity

      public EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> getAllocatedEntity(String assemblyContextId)
      Returns the simulated resource container to which the provided assembly is allocated to. If the assembly is not allocated directly, but through a hierarchy of CompositeComponents, the lookup needs to be done using the string representation of the FQComponentID.
      Specified by:
      getAllocatedEntity in interface de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>>
      Returns:
      the simulated resource container
    • allocateAssembly

      public void allocateAssembly(String fqid, EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> rcRef)
    • deallocateAssembly

      public void deallocateAssembly(String fqid)
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface RuntimeStateEntityManager