Class ParameterHelper


  • public class ParameterHelper
    extends Object
    Provides helper methods for PCM parameters.
    • Constructor Summary

      Constructors 
      Constructor Description
      ParameterHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createEvaluationProxiesAndCopyToFrame​(List<org.palladiosimulator.pcm.parameter.VariableUsage> parameters, de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> targetFrame)
      Creates an EvaluationProxy for the passed parameters and copies them to the targetFrame.
      static void evaluateParametersAndCopyToFrame​(List<org.palladiosimulator.pcm.parameter.VariableUsage> parameters, de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> sourceFrame, de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> targetFrame)
      Evaluates the passed parameters in the context of the source frame and copies the results to the targetFrame.
      static String getVariableName​(de.uka.ipd.sdq.stoex.AbstractNamedReference reference)
      Returns the name for the specified named reference.
      static boolean isInnerReference​(de.uka.ipd.sdq.stoex.AbstractNamedReference reference)
      Returns whether the specified reference belongs to an INNER variable characterisation.
    • Constructor Detail

      • ParameterHelper

        public ParameterHelper()
    • Method Detail

      • isInnerReference

        public static boolean isInnerReference​(de.uka.ipd.sdq.stoex.AbstractNamedReference reference)
        Returns whether the specified reference belongs to an INNER variable characterisation.
        Parameters:
        reference - the named reference associated with a variable characterisation
        Returns:
        true, if the reference's name is "INNER"; false else.
      • getVariableName

        public static String getVariableName​(de.uka.ipd.sdq.stoex.AbstractNamedReference reference)
        Returns the name for the specified named reference.
        Parameters:
        reference - the named reference
        Returns:
        the name
      • evaluateParametersAndCopyToFrame

        public static void evaluateParametersAndCopyToFrame​(List<org.palladiosimulator.pcm.parameter.VariableUsage> parameters,
                                                            de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> sourceFrame,
                                                            de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> targetFrame)
        Evaluates the passed parameters in the context of the source frame and copies the results to the targetFrame. INNER characterisations are not evaluated directly, but are instead encapsulated in an EvaluationProxy which are being repeatedly evaluated on each access.
      • createEvaluationProxiesAndCopyToFrame

        public static void createEvaluationProxiesAndCopyToFrame​(List<org.palladiosimulator.pcm.parameter.VariableUsage> parameters,
                                                                 de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> targetFrame)
        Creates an EvaluationProxy for the passed parameters and copies them to the targetFrame. The proxy evaluates the passed parameters on each access.
        See Also:
        EvaluationProxy