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 -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringCutsprefixfromname.static net.ssehub.easy.varModel.confModel.IDecisionVariablefindPipelineElement(net.ssehub.easy.varModel.confModel.Configuration config, String variableName) Obtains a pipeline element.static net.ssehub.easy.instantiation.core.model.vilTypes.configuration.DecisionVariableobtainPipelineElement(net.ssehub.easy.instantiation.core.model.vilTypes.configuration.Configuration config, String variableName) Obtains a pipeline element.private static net.ssehub.easy.varModel.confModel.IDecisionVariableobtainPipelineElement(net.ssehub.easy.varModel.confModel.IDecisionVariable pip, String variableName) Obtains a pipeline element.
-
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 configurationvariableName- 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 pipelinevariableName- 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 configurationvariableName- the name of the (element) variable- Returns:
- the element or null if it does not exist for some reason
-
cutPrefix
Cutsprefixfromname.- Parameters:
name- the nameprefix- the prefix to remove from- Returns:
nameornamewithout prefix
-