Public Member Functions | |
CombineAggregateMetricVarMap () | |
void | setScopes (Scope s_source, Scope s_target) |
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 | setExperiment (Experiment exp) |
void | setScope (Scope s) |
set the current scope which contains metric values | |
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 | |
Scope | scopes [] |
int | iCounter |
Definition at line 5 of file CombineAggregateMetricVarMap.java.
edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.CombineAggregateMetricVarMap | ( | ) |
Definition at line 10 of file CombineAggregateMetricVarMap.java.
References edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.iCounter, and edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.scopes.
double edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.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 edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.
Definition at line 25 of file CombineAggregateMetricVarMap.java.
References edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.iCounter, and edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.scopes.
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, inherited] |
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 | ) | [inherited] |
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 | ) | [inherited] |
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 edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.setScopes | ( | Scope | s_source, | |
Scope | s_target | |||
) |
Definition at line 15 of file CombineAggregateMetricVarMap.java.
References edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.iCounter, and edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.scopes.
Referenced by edu.rice.cs.hpc.data.experiment.metric.AggregateMetric.combine().
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 7 of file CombineAggregateMetricVarMap.java.
Referenced by edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.CombineAggregateMetricVarMap(), edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.getValue(), and edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.setScopes().
Definition at line 6 of file CombineAggregateMetricVarMap.java.
Referenced by edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.CombineAggregateMetricVarMap(), edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.getValue(), and edu.rice.cs.hpc.data.experiment.metric.CombineAggregateMetricVarMap.setScopes().