Public Member Functions | |
ExtFuncMap () | |
ExtFuncMap (boolean caseSensitive) | |
ExtFuncMap (BaseMetric[]metrics) | |
void | init (BaseMetric[]metrics) |
void | loadDefaultFunctions () |
Adds the mappings for many common functions. | |
Function | getFunction (String funcName, int numParam) |
Returns a function based on the name and the specified number of parameters. | |
void | setFunction (String funcName, Function f) |
Assigns the name to map to the specified function. | |
boolean | isCaseSensitive () |
Returns true if the case of the function names is considered. | |
String[] | getFunctionNames () |
Returns an array of exact length of the function names stored in this map. | |
Function[] | getFunctions () |
Returns an array of exact length of the functions stored in this map. | |
void | remove (String funcName) |
Removes the function-name and the associated function from the map. |
Definition at line 12 of file ExtFuncMap.java.
edu.rice.cs.hpc.data.experiment.metric.ExtFuncMap.ExtFuncMap | ( | ) |
Definition at line 17 of file ExtFuncMap.java.
edu.rice.cs.hpc.data.experiment.metric.ExtFuncMap.ExtFuncMap | ( | boolean | caseSensitive | ) |
caseSensitive |
Definition at line 25 of file ExtFuncMap.java.
edu.rice.cs.hpc.data.experiment.metric.ExtFuncMap.ExtFuncMap | ( | BaseMetric[] | metrics | ) |
Definition at line 34 of file ExtFuncMap.java.
References edu.rice.cs.hpc.data.experiment.metric.ExtFuncMap.init().
Function com.graphbuilder.math.FuncMap.getFunction | ( | String | funcName, | |
int | numParam | |||
) | [inherited] |
Returns a function based on the name and the specified number of parameters.
RuntimeException | If no supporting function can be found. |
Definition at line 152 of file FuncMap.java.
References com.graphbuilder.math.FuncMap.caseSensitive, com.graphbuilder.math.FuncMap.func, com.graphbuilder.math.FuncMap.name, and com.graphbuilder.math.FuncMap.numFunc.
Referenced by com.graphbuilder.math.FuncNode.eval().
String [] com.graphbuilder.math.FuncMap.getFunctionNames | ( | ) | [inherited] |
Returns an array of exact length of the function names stored in this map.
Definition at line 208 of file FuncMap.java.
References com.graphbuilder.math.FuncMap.name, and com.graphbuilder.math.FuncMap.numFunc.
Referenced by edu.rice.cs.hpc.viewer.metric.ExtDerivedMetricDlg.createDialogArea().
Function [] com.graphbuilder.math.FuncMap.getFunctions | ( | ) | [inherited] |
Returns an array of exact length of the functions stored in this map.
The returned array corresponds to the order of the names returned by getFunctionNames.
Definition at line 221 of file FuncMap.java.
References com.graphbuilder.math.FuncMap.func, and com.graphbuilder.math.FuncMap.numFunc.
Referenced by edu.rice.cs.hpc.viewer.metric.ExtDerivedMetricDlg.createDialogArea(), and edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.main().
void edu.rice.cs.hpc.data.experiment.metric.ExtFuncMap.init | ( | BaseMetric[] | metrics | ) |
Definition at line 39 of file ExtFuncMap.java.
References com.graphbuilder.math.FuncMap.loadDefaultFunctions(), and com.graphbuilder.math.FuncMap.setFunction().
Referenced by edu.rice.cs.hpc.data.experiment.metric.DerivedMetric.DerivedMetric(), and edu.rice.cs.hpc.data.experiment.metric.ExtFuncMap.ExtFuncMap().
boolean com.graphbuilder.math.FuncMap.isCaseSensitive | ( | ) | [inherited] |
Returns true if the case of the function names is considered.
Definition at line 201 of file FuncMap.java.
References com.graphbuilder.math.FuncMap.caseSensitive.
void com.graphbuilder.math.FuncMap.loadDefaultFunctions | ( | ) | [inherited] |
Adds the mappings for many common functions.
The names are specified in all lowercase letters.
Definition at line 97 of file FuncMap.java.
References com.graphbuilder.math.FuncMap.setFunction().
Referenced by edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.AggregateMetric(), edu.rice.cs.hpc.viewer.metric.ExtDerivedMetricDlg.createDialogArea(), edu.rice.cs.hpc.data.experiment.metric.ExtFuncMap.init(), edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.main(), and com.graphbuilder.test.MathTest.main().
void com.graphbuilder.math.FuncMap.remove | ( | String | funcName | ) | [inherited] |
Removes the function-name and the associated function from the map.
Does nothing if the function-name is not found.
Definition at line 234 of file FuncMap.java.
References com.graphbuilder.math.FuncMap.caseSensitive, com.graphbuilder.math.FuncMap.func, com.graphbuilder.math.FuncMap.name, and com.graphbuilder.math.FuncMap.numFunc.
void com.graphbuilder.math.FuncMap.setFunction | ( | String | funcName, | |
Function | f | |||
) | [inherited] |
Assigns the name to map to the specified function.
IllegalArgumentException | If any of the parameters are null. |
Definition at line 166 of file FuncMap.java.
References com.graphbuilder.math.FuncMap.caseSensitive, com.graphbuilder.math.FuncMap.func, com.graphbuilder.math.FuncMap.name, and com.graphbuilder.math.FuncMap.numFunc.
Referenced by edu.rice.cs.hpc.data.experiment.metric.ExtFuncMap.init(), and com.graphbuilder.math.FuncMap.loadDefaultFunctions().