Interface IAssemblyAllocationLookup<AllocationType>

All Known Implementing Classes:
HashMapAssemblyAllocationLookup

public interface IAssemblyAllocationLookup<AllocationType>
Through the IAssemblyAllocationLookup interface it is possible to access the current allocations of assembly contexts to resource containers. The interface has been introduced to account for SimuLizar's dynamic nature with allocations being created or changed during simulation time. Furthermore, this interface allows for multiple contexts to share the same lookup information.
  • Method Summary

    Modifier and Type
    Method
    Description
    getAllocatedEntity(String assemblyContextId)
    Get the entity to which the assembly context identified by the provided ID is allocated to.
    getAllocatedEntity(List<org.palladiosimulator.pcm.core.composition.AssemblyContext> contextHierarchy)
    Get the entity to which the provided assembly context within its hierarchical context is allocated to.
    getAllocatedEntity(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
    Get the entity to which the provided assembly context is allocated to.
  • Method Details

    • getAllocatedEntity

      AllocationType getAllocatedEntity(String assemblyContextId)
      Get the entity to which the assembly context identified by the provided ID is allocated to.
      Parameters:
      assemblyContextId - The UUID of the assembly context
      Returns:
      the entity
    • getAllocatedEntity

      default AllocationType getAllocatedEntity(org.palladiosimulator.pcm.core.composition.AssemblyContext context)
      Get the entity to which the provided assembly context is allocated to.
      Parameters:
      context - the assembly context
      Returns:
      the entity
    • getAllocatedEntity

      default AllocationType getAllocatedEntity(List<org.palladiosimulator.pcm.core.composition.AssemblyContext> contextHierarchy)
      Get the entity to which the provided assembly context within its hierarchical context is allocated to.
      Parameters:
      contextHierarchy - the hierarchy of assembly contexts of component compositions
      Returns:
      the entity