Class VariableUsageHelper


  • public class VariableUsageHelper
    extends Object
    • Field Detail

      • logger

        protected static org.apache.log4j.Logger logger
    • Constructor Detail

      • VariableUsageHelper

        public VariableUsageHelper()
    • Method Detail

      • copySolvedVariableUsageToUsageContext

        public static void copySolvedVariableUsageToUsageContext​(ContextWrapper ctxWrp,
                                                                 org.palladiosimulator.pcm.parameter.VariableUsage oldUsage)
      • copySolvedVariableUsageToInput

        public static void copySolvedVariableUsageToInput​(Input input,
                                                          ContextWrapper oldContextWrapper,
                                                          Collection<org.palladiosimulator.pcm.parameter.VariableUsage> variableUsages)
        Create new VariableUsages, fill it with the solved values of the passed VariableUsages and add it to the input parameter. This method assumes that it is called last with the variables with the highest priority, because if a variable name is already defined in the input, it deletes the old definition and uses the new ones from the parameter variableUsages.
      • copySolvedVariableUsageToOutput

        public static void copySolvedVariableUsageToOutput​(ContextWrapper contextWrapper,
                                                           org.palladiosimulator.pcm.parameter.VariableUsage vu)
      • copySolvedVariableUsageToExternalCallInput

        public static void copySolvedVariableUsageToExternalCallInput​(ContextWrapper contextWrapper,
                                                                      ExternalCallInput eci,
                                                                      org.palladiosimulator.pcm.parameter.VariableUsage vu)
      • copySolvedVariableUsageToExternalCallOutput

        public static void copySolvedVariableUsageToExternalCallOutput​(ContextWrapper contextWrapper,
                                                                       ExternalCallOutput eco,
                                                                       org.palladiosimulator.pcm.parameter.VariableUsage vu)
        Adds the usage information from VariableUsage vu to the ExternalCallOutput eco.
        Parameters:
        contextWrapper -
        eco -
        vu -
      • getReferenceCopy

        public static de.uka.ipd.sdq.stoex.AbstractNamedReference getReferenceCopy​(de.uka.ipd.sdq.stoex.AbstractNamedReference anr)
      • copyVariableUsageToInput

        public static void copyVariableUsageToInput​(Input input,
                                                    org.palladiosimulator.pcm.parameter.VariableUsage vu)
      • getCommonCharacterisationsFromFirst

        public static List<org.palladiosimulator.pcm.parameter.VariableCharacterisation> getCommonCharacterisationsFromFirst​(org.palladiosimulator.pcm.parameter.VariableUsage vu1,
                                                                                                                             org.palladiosimulator.pcm.parameter.VariableUsage vu2)
        Returns all characterisation from the first argument that are also specified in the second argument.
        Parameters:
        vu1 -
        vu2 -
        Returns:
        A list that is not null, but may be empty.
      • copyVariableUsageList

        public static Collection<org.palladiosimulator.pcm.parameter.VariableUsage> copyVariableUsageList​(List<org.palladiosimulator.pcm.parameter.VariableUsage> originalVariableUsages)
        Copies the passed list using the EcoreUtils class.
        Parameters:
        originalVariableUsages - . A list containing VariableUsage
        Returns:
        A copy of the list.
      • copyVariableCharacterisations

        public static Collection<org.palladiosimulator.pcm.parameter.VariableCharacterisation> copyVariableCharacterisations​(List<org.palladiosimulator.pcm.parameter.VariableCharacterisation> variableCharacterisations)
        Copies the passed list using the EcoreUtils class.
        Parameters:
        variableCharacterisations - . A list containing VariableCharacterisation
        Returns:
        A copy of the list.