Public Member Functions | |
MetricVarMap () | |
MetricVarMap (Experiment exp) | |
MetricVarMap (Scope s, Experiment exp) | |
MetricVarMap (boolean caseSensitive) | |
void | setExperiment (Experiment exp) |
void | setScope (Scope s) |
set the current scope which contains metric values | |
double | getValue (String varName) |
Overloaded method: a callback to retrieve the value of a variable (or a metric) If the variable is a normal variable, it will call the parent method. | |
void | setValue (String varName, double val) |
Assigns the value to the specified variable name. | |
boolean | isCaseSensitive () |
Returns true if the case of the variable names is considered. | |
String[] | getVariableNames () |
Returns an array of exact length of the variable names stored in this map. | |
double[] | getValues () |
Returns an array of exact length of the values stored in this map. | |
void | remove (String varName) |
Removes the variable-name from the map. | |
Static Public Member Functions | |
static void | main (String[] args) |
Unit test for MetricVarMap. | |
Private Attributes | |
Experiment | experiment |
Scope | scope |
Definition at line 20 of file MetricVarMap.java.
edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap | ( | ) |
Definition at line 28 of file MetricVarMap.java.
Referenced by edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.main().
edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap | ( | Experiment | exp | ) |
Definition at line 33 of file MetricVarMap.java.
References edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.experiment.
edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap | ( | Scope | s, | |
Experiment | exp | |||
) |
Definition at line 38 of file MetricVarMap.java.
References edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.experiment, and edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.scope.
edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap | ( | boolean | caseSensitive | ) |
caseSensitive |
Definition at line 47 of file MetricVarMap.java.
double edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.getValue | ( | String | varName | ) |
Overloaded method: a callback to retrieve the value of a variable (or a metric) If the variable is a normal variable, it will call the parent method.
Reimplemented from com.graphbuilder.math.VarMap.
Reimplemented in edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.
Definition at line 70 of file MetricVarMap.java.
References edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.experiment, edu.rice.cs.hpc.data.experiment.BaseExperimentWithMetrics.getMetric(), edu.rice.cs.hpc.data.experiment.BaseExperiment.getRootScopeChildren(), edu.rice.cs.hpc.data.experiment.metric.MetricValue.getValue(), edu.rice.cs.hpc.data.experiment.metric.BaseMetric.getValue(), edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.scope, and com.graphbuilder.math.VarMap.value.
double [] com.graphbuilder.math.VarMap.getValues | ( | ) | [inherited] |
Returns an array of exact length of the values stored in this map.
The returned array corresponds to the order of the names returned by getVariableNames.
Definition at line 97 of file VarMap.java.
References com.graphbuilder.math.VarMap.numVars, and com.graphbuilder.math.VarMap.value.
String [] com.graphbuilder.math.VarMap.getVariableNames | ( | ) | [inherited] |
Returns an array of exact length of the variable names stored in this map.
Definition at line 84 of file VarMap.java.
References com.graphbuilder.math.VarMap.name, and com.graphbuilder.math.VarMap.numVars.
boolean com.graphbuilder.math.VarMap.isCaseSensitive | ( | ) | [inherited] |
Returns true if the case of the variable names is considered.
Definition at line 77 of file VarMap.java.
References com.graphbuilder.math.VarMap.caseSensitive.
static void edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.main | ( | String[] | args | ) | [static] |
Unit test for MetricVarMap.
args |
Definition at line 113 of file MetricVarMap.java.
References com.graphbuilder.math.Expression.eval(), com.graphbuilder.math.FuncMap.getFunctions(), com.graphbuilder.math.FuncMap.loadDefaultFunctions(), edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap(), and com.graphbuilder.math.VarMap.setValue().
void com.graphbuilder.math.VarMap.remove | ( | String | varName | ) | [inherited] |
Removes the variable-name from the map.
Does nothing if the variable-name is not found.
Definition at line 109 of file VarMap.java.
References com.graphbuilder.math.VarMap.caseSensitive, com.graphbuilder.math.VarMap.name, com.graphbuilder.math.VarMap.numVars, and com.graphbuilder.math.VarMap.value.
void edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.setExperiment | ( | Experiment | exp | ) |
Definition at line 54 of file MetricVarMap.java.
References edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.experiment.
Referenced by edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.init().
void edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.setScope | ( | Scope | s | ) |
set the current scope which contains metric values
s,: | the scope of node |
Definition at line 62 of file MetricVarMap.java.
References edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.scope.
Referenced by edu.rice.cs.hpc.viewer.metric.ExpressionVerification.check(), edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.finalize(), and edu.rice.cs.hpc.data.experiment.metric.DerivedMetric.getDoubleValue().
void com.graphbuilder.math.VarMap.setValue | ( | String | varName, | |
double | val | |||
) | [inherited] |
Assigns the value to the specified variable name.
IllegalArgumentException | If the variable name is null. |
Definition at line 45 of file VarMap.java.
References com.graphbuilder.math.VarMap.caseSensitive, com.graphbuilder.math.VarMap.name, com.graphbuilder.math.VarMap.numVars, and com.graphbuilder.math.VarMap.value.
Referenced by edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.main(), and com.graphbuilder.test.MathTest.main().
Definition at line 23 of file MetricVarMap.java.
Referenced by edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.getValue(), edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap(), and edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.setScope().