LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AnalyzerUtils.cs (line 57)
Useful library of methods which do logic for analyzer components.
Members
Private static functions
Function TryConvertName
- input: The input name.
- varInfo: The analyzer variable info (mandatory).
- conversion: The conversion to perform.
- output: The output name.
- string input
- IAnalyzerVariableInfo varInfo
- AnalyzerExpressionConversion conversion
- out string output
Function TryGetActualName
- input: The input name.
- varInfo: The analyzer variable info, which may be null.
- conversion: The conversion to perform.
- allowConstant: Whether to allow constants.
- output: The output name.
- string input
- IAnalyzerVariableInfo varInfo
- AnalyzerExpressionConversion conversion
- bool allowConstant
- out string output
Function TryConvertExpression
- input: The input expression.
- varInfo: The variable info, or null if none. If null or no analyzer variables, copies input to output and returns true.
- conversion: The type of conversion.
- output: The converted expression.
- string input
- IAnalyzerVariableInfo varInfo
- AnalyzerExpressionConversion conversion
- out string output
Public static functions
Function IsValidFormula
- formula: The formula to check.
- varInfo: The analyzer variable info, or null if none.
- conversion: The type of conversion to try to perform.
- expressionType: The type of expression to expect.
- allowEmpty: Whether to allow an empty or null string.
- string formula
- IAnalyzerVariableInfo varInfo
- AnalyzerExpressionConversion conversion
- AnalyzerExpressionType expressionType
- bool allowEmpty
Function TryConvertFormula
- inputFormula: The formula to convert.
- varInfo: The analyzer variable info, or null if none.
- conversion: The type of conversion to perform.
- expressionType: The type of expression to expect.
- allowEmpty: Whether to allow an empty or null string.
- outputFormula: The converted formula.
- string inputFormula
- IAnalyzerVariableInfo varInfo
- AnalyzerExpressionConversion conversion
- AnalyzerExpressionType expressionType
- bool allowEmpty
- out string outputFormula