Class PipelineElementHelper

java.lang.Object
eu.qualimaster.easy.extension.internal.PipelineElementHelper
All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType

public class PipelineElementHelper extends Object implements net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
Helper functions on pipeline element level.
Author:
Holger Eichelberger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static String
    cutPrefix(String name, String prefix)
    Cuts prefix from name.
    static net.ssehub.easy.varModel.confModel.IDecisionVariable
    findPipelineElement(net.ssehub.easy.varModel.confModel.Configuration config, String variableName)
    Obtains a pipeline element.
    static net.ssehub.easy.instantiation.core.model.vilTypes.configuration.DecisionVariable
    obtainPipelineElement(net.ssehub.easy.instantiation.core.model.vilTypes.configuration.Configuration config, String variableName)
    Obtains a pipeline element.
    private static net.ssehub.easy.varModel.confModel.IDecisionVariable
    obtainPipelineElement(net.ssehub.easy.varModel.confModel.IDecisionVariable pip, String variableName)
    Obtains a pipeline element.

    Methods inherited from class java.lang.Object

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

    • PipelineElementHelper

      public PipelineElementHelper()
  • Method Details

    • obtainPipelineElement

      public static net.ssehub.easy.instantiation.core.model.vilTypes.configuration.DecisionVariable obtainPipelineElement(net.ssehub.easy.instantiation.core.model.vilTypes.configuration.Configuration config, String variableName) throws net.ssehub.easy.instantiation.core.model.common.VilException
      Obtains a pipeline element.
      Parameters:
      config - the configuration
      variableName - the name of the (element) variable
      Returns:
      the element or null if it does not exist for some reason
      Throws:
      net.ssehub.easy.instantiation.core.model.common.VilException - in case of resolution problems
    • obtainPipelineElement

      private static net.ssehub.easy.varModel.confModel.IDecisionVariable obtainPipelineElement(net.ssehub.easy.varModel.confModel.IDecisionVariable pip, String variableName)
      Obtains a pipeline element.
      Parameters:
      pip - the pipeline
      variableName - the name of the (element) variable
      Returns:
      the element or null if it does not exist for some reason
    • findPipelineElement

      public static net.ssehub.easy.varModel.confModel.IDecisionVariable findPipelineElement(net.ssehub.easy.varModel.confModel.Configuration config, String variableName)
      Obtains a pipeline element.
      Parameters:
      config - the configuration
      variableName - the name of the (element) variable
      Returns:
      the element or null if it does not exist for some reason
    • cutPrefix

      private static String cutPrefix(String name, String prefix)
      Cuts prefix from name.
      Parameters:
      name - the name
      prefix - the prefix to remove from
      Returns:
      name or name without prefix