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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAlgorithmImplName(eu.qualimaster.coordination.INameMapping mapping, String algorithmName) Returns the implementation/component name of the given algorithm from a given name mapping.static StringgetImplementationName(String pipelineName, String pipelineNodeName) Returns the implementation/component name of the given pipeline node.static eu.qualimaster.coordination.INameMappinggetNameMapping(String pipelineName) Returns the name mapping forpipelineName.static StringgetPipelineElementImplName(eu.qualimaster.coordination.INameMapping mapping, String pipelineElementName) Returns the implementation/component name of the given pipeline node from a give name mapping.static StringmapAlgorithmName(eu.qualimaster.coordination.INameMapping mapping, String algorithmName) Returns the configured name of the given pipeline node from a give name mapping.static StringmapPipelineElementName(eu.qualimaster.coordination.INameMapping mapping, String pipelineElementName) Returns the configured name of the given pipeline node from a give name mapping.
-
Constructor Details
-
NameMappingHelper
public NameMappingHelper()
-
-
Method Details
-
getImplementationName
Returns the implementation/component name of the given pipeline node.- Parameters:
pipelineName- the name of the pipelinepipelineNodeName- the (configured/implementation) name of the pipeline node- Returns:
- the mapped name or
pipelineNodeName
-
getNameMapping
Returns the name mapping forpipelineName.- 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
-