Class InterpreterDefaultContext

java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.StackContext
de.uka.ipd.sdq.simucomframework.Context
org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InterpreterDefaultRootContext

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    This annotation is used as a Qualifier to identify an InterpreterDefaultContext as the root context of a simulation.
    static @interface 
    This annotation is used as a Qualifier to identify an InterpreterDefaultContext as the parent of a context of a simulation.
  • Field Summary

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

    stack
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    InterpreterDefaultContext(de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel, org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition localPartition, de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<de.uka.ipd.sdq.simucomframework.resources.AbstractSimulatedResourceContainer> assemblyAllocationLookup, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager, de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStack<Object> stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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).
    de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<de.uka.ipd.sdq.simucomframework.resources.AbstractSimulatedResourceContainer>
     
    Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext>
     
    de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object>
     
    org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition
    Returns the local pcm model, which should be used for interpretation in the current and child contexts.
    org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition
    Deprecated.
    use getLocalPCMModel(), which was renamed, as the context which should be used for interpretation, is not necessarily reflected by the model at context creation (e.
    Deque<de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object>>
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InterpreterDefaultContext

      protected InterpreterDefaultContext(de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel, org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition localPartition, de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<de.uka.ipd.sdq.simucomframework.resources.AbstractSimulatedResourceContainer> assemblyAllocationLookup, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager, de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStack<Object> stack)
  • Method Details

    • getAssemblyContextStack

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

      @Deprecated public org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition getLocalPCMModelAtContextCreation()
      Deprecated.
      use getLocalPCMModel(), which was renamed, as the context which should be used for interpretation, is not necessarily reflected by the model at context creation (e. g. in case of the root context)
      Returns the local pcm model which was valid once the context was created.
    • getLocalPCMModel

      public org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition getLocalPCMModel()
      Returns the local pcm model, which should be used for interpretation in the current and child contexts.
    • 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()
    • 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 -