public class CMLSymbolMapper
extends java.lang.Object
| Constructor and Description |
|---|
CMLSymbolMapper() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
getExpVarValues(ExpCalculator.Rec[] recList,
AbstractAnnotateController controller)
Compute variable values for the expression elements
|
static double |
getValue(CMLVarEnum type,
java.lang.String fieldName,
AbstractAnnotateController controller)
Get runtime variable value
|
static double[] |
getVarValues(java.util.List<CMLVarRec> recList,
AbstractAnnotateController controller)
Compute variable values for the var rec list
|
static double[][] |
getVarValues2D(java.util.List<ExpCalculator> expList,
AbstractAnnotateController controller)
Compute variable values for the expression list
|
static void |
mapExpressionSymbolStr2Type(ExpCalculator.Rec[] recList)
Map expression symbol strings to type
|
static void |
mapFieldInputStr2Type(FunctionFieldAnWrapper<?> field)
Map the input strings of the FunctionField to their CML Var type
|
static CMLVarEnum |
mapSymbolStr2Type(java.lang.String str)
Map symbol string (mach.vt) to variable type
|
static ICMLStaticBlock.StaticBlockType |
mapTypeStr2BlockType(java.lang.String str)
Map block type string to block type
|
public static void mapFieldInputStr2Type(FunctionFieldAnWrapper<?> field) throws java.lang.Exception
field - the fieldjava.lang.Exceptionpublic static void mapExpressionSymbolStr2Type(ExpCalculator.Rec[] recList) throws InterpssException
recList - expression element rec listjava.lang.ExceptionInterpssExceptionpublic static double[] getExpVarValues(ExpCalculator.Rec[] recList, AbstractAnnotateController controller) throws InterpssException
recList - expression element rec listcontroller - parent controller objectInterpssExceptionpublic static double[] getVarValues(java.util.List<CMLVarRec> recList, AbstractAnnotateController controller) throws InterpssException
recList - var rec listcontroller - parent controller objectInterpssExceptionpublic static double[][] getVarValues2D(java.util.List<ExpCalculator> expList, AbstractAnnotateController controller) throws InterpssException
expList - expression listcontroller - parent controller objectInterpssExceptionpublic static double getValue(CMLVarEnum type, java.lang.String fieldName, AbstractAnnotateController controller) throws InterpssException
type - var typefieldName - for certain var type, fieldName (this.delayBlock.y) for find the var valuecontroller - java.lang.ExceptionInterpssExceptionpublic static CMLVarEnum mapSymbolStr2Type(java.lang.String str) throws InterpssException
str - symbol stringjava.lang.ExceptionInterpssExceptionpublic static ICMLStaticBlock.StaticBlockType mapTypeStr2BlockType(java.lang.String str) throws InterpssException
str - block type stringjava.lang.ExceptionInterpssException