Class SimuComContext

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ForkContext

public abstract class SimuComContext extends Context
Context of each thread in SimuCom simulation. This class contains the functionality previously contained in Context which only works for SimuCom simulations.
See Also:
  • Constructor Details

    • SimuComContext

      public SimuComContext(SimuComModel myModel, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
  • Method Details

    • linkAssemblyContextAndResourceContainer

      protected void linkAssemblyContextAndResourceContainer(String assemblyContextID, String resourceContainerID)
      Create a deployment relationship between the given assembly context and the given resource container
      Parameters:
      assemblyContextID - ID of the assembly context to allocate
      resourceContainerID - ID of the resource container on which the assembly context is allocated
    • getPassiveRessourceInContext

      public de.uka.ipd.sdq.scheduler.IPassiveResource getPassiveRessourceInContext(String resourceURI, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext, AbstractSimulatedResourceContainer resourceContainer, long capacity)
      This method is used by SimuCom simulation code to look up simulated instances of passive resources based on the assembly context
    • initialiseAssemblyContextLookup

      protected abstract void initialiseAssemblyContextLookup()
      Template method to be filled in by the generator. Calles linkAssemblyContextAndResourceContainer to create the deployment specified in the allocation model
    • getAssemblyAllocationLookup

      public IAssemblyAllocationLookup<AbstractSimulatedResourceContainer> getAssemblyAllocationLookup()
      Description copied from class: Context
      The lookup allows to find the suitable simulation entity of the ResourceContainer to which an AssemblyContext is deployed to. Subclasses need to provide the concrete implementation of the lookup mechanism.
      Specified by:
      getAssemblyAllocationLookup in class Context
      Returns:
      the AssemblyContext allocation lookup