Class InterpreterDefaultContext

  • All Implemented Interfaces:
    Serializable

    public class InterpreterDefaultContext
    extends de.uka.ipd.sdq.simucomframework.Context
    Default context for the pcm interpreter.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class de.uka.ipd.sdq.simucomframework.variables.StackContext

        stack
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FQComponentID computeFQComponentID()  
      static InterpreterDefaultContext createChildContext​(InterpreterDefaultContext parentContext, de.uka.ipd.sdq.simucomframework.SimuComSimProcess simProcess)
      Create interpreter default context from the given default context (model, sim process and stack are set according to the given default context).
      static InterpreterDefaultContext createRootContext​(de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel, PCMPartitionManager partitionManager, de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>> assemblyAllocationLookup, de.uka.ipd.sdq.simucomframework.resources.ISimulatedModelEntityAccess<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,​de.uka.ipd.sdq.simucomframework.resources.AbstractSimulatedResourceContainer> simRCAccess, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)  
      de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<de.uka.ipd.sdq.simucomframework.resources.AbstractSimulatedResourceContainer> getAssemblyAllocationLookup()  
      Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> getAssemblyContextStack()  
      de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> getCurrentResultFrame()  
      org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition getLocalPCMModelAtContextCreation()  
      Deque<de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object>> getResultFrameStack()  
      • Methods inherited from class de.uka.ipd.sdq.simucomframework.Context

        findLinkingResource, findResource, getModel, getResourceTableManager, getSessionId, getSimulatedResourceContainerAccess, getThread, setSimProcess
      • Methods inherited from class de.uka.ipd.sdq.simucomframework.variables.StackContext

        evaluate, evaluate, evaluate, evaluateInner, evaluateStatic, evaluateStatic, evaluateStatic, evaluateStatic, evaluateStatic, evaluateStatic, getEvaluationMode, getStack, setEvaluationMode
    • Method Detail

      • getAssemblyContextStack

        public Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> getAssemblyContextStack()
      • getLocalPCMModelAtContextCreation

        public org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition getLocalPCMModelAtContextCreation()
      • getAssemblyAllocationLookup

        public de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<de.uka.ipd.sdq.simucomframework.resources.AbstractSimulatedResourceContainer> getAssemblyAllocationLookup()
        Specified by:
        getAssemblyAllocationLookup in class de.uka.ipd.sdq.simucomframework.Context
      • computeFQComponentID

        public FQComponentID computeFQComponentID()
      • getResultFrameStack

        public Deque<de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object>> getResultFrameStack()
      • getCurrentResultFrame

        public de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> getCurrentResultFrame()
      • createRootContext

        public static InterpreterDefaultContext createRootContext​(de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel,
                                                                  PCMPartitionManager partitionManager,
                                                                  de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>> assemblyAllocationLookup,
                                                                  de.uka.ipd.sdq.simucomframework.resources.ISimulatedModelEntityAccess<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,​de.uka.ipd.sdq.simucomframework.resources.AbstractSimulatedResourceContainer> simRCAccess,
                                                                  de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
      • createChildContext

        public static InterpreterDefaultContext createChildContext​(InterpreterDefaultContext parentContext,
                                                                   de.uka.ipd.sdq.simucomframework.SimuComSimProcess simProcess)
        Create interpreter default context from the given default context (model, sim process and stack are set according to the given default context). The contents of the stack will be copied.
        Parameters:
        context - the default context from which the new default context should be created.
        thread -