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:
    Serialized Form
    • Constructor Detail

      • SimuComContext

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

      • 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