Class NameMappingHelper

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

public class NameMappingHelper extends Object implements net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
Accesses names from the pipeline mapping. Please use only during adaptation.
Author:
Holger Eichelberger
  • Constructor Details

    • NameMappingHelper

      public NameMappingHelper()
  • Method Details

    • getImplementationName

      public static String getImplementationName(String pipelineName, String pipelineNodeName)
      Returns the implementation/component name of the given pipeline node.
      Parameters:
      pipelineName - the name of the pipeline
      pipelineNodeName - the (configured/implementation) name of the pipeline node
      Returns:
      the mapped name or pipelineNodeName
    • getNameMapping

      public static eu.qualimaster.coordination.INameMapping getNameMapping(String pipelineName)
      Returns the name mapping for pipelineName.
      Parameters:
      pipelineName - the pipeline name
      Returns:
      the name mapping
    • getPipelineElementImplName

      public static String getPipelineElementImplName(eu.qualimaster.coordination.INameMapping mapping, String pipelineElementName)
      Returns the implementation/component name of the given pipeline node from a give name mapping.
      Parameters:
      mapping - the name mapping to use (may be null but then no mapping takes place)
      pipelineElementName - the (configured/implementation) name of the pipeline node
      Returns:
      the implementation name or pipelineNodeName
    • getAlgorithmImplName

      public static String getAlgorithmImplName(eu.qualimaster.coordination.INameMapping mapping, String algorithmName)
      Returns the implementation/component name of the given algorithm from a given name mapping.
      Parameters:
      mapping - the name mapping to use (may be null but then no mapping takes place)
      algorithmName - the configured name of the algorithm
      Returns:
      the implementation name or algorithmName
    • mapPipelineElementName

      public static String mapPipelineElementName(eu.qualimaster.coordination.INameMapping mapping, String pipelineElementName)
      Returns the configured name of the given pipeline node from a give name mapping.
      Parameters:
      mapping - the name mapping to use (may be null but then no mapping takes place)
      pipelineElementName - the (configured/implementation) name of the pipeline node
      Returns:
      the mapped name or pipelineNodeName
    • mapAlgorithmName

      public static String mapAlgorithmName(eu.qualimaster.coordination.INameMapping mapping, String algorithmName)
      Returns the configured name of the given pipeline node from a give name mapping.
      Parameters:
      mapping - the name mapping to use (may be null but then no mapping takes place)
      algorithmName - the (configured/implementation) name of the algorithm
      Returns:
      the mapped name or pipelineNodeName