edu.rice.cs.hpc.data.experiment.metric.MetricVarMap Class Reference

Inheritance diagram for edu.rice.cs.hpc.data.experiment.metric.MetricVarMap:
Inheritance graph
[legend]
Collaboration diagram for edu.rice.cs.hpc.data.experiment.metric.MetricVarMap:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Author:
la5

Definition at line 20 of file MetricVarMap.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap (  ) 
edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap ( Experiment  exp  ) 
edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap ( Scope  s,
Experiment  exp 
)
edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.MetricVarMap ( boolean  caseSensitive  ) 
Parameters:
caseSensitive 

Definition at line 47 of file MetricVarMap.java.


Member Function Documentation

double edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.getValue ( String  varName  ) 
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]
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  ) 
void edu.rice.cs.hpc.data.experiment.metric.MetricVarMap.setScope ( Scope  s  ) 
void com.graphbuilder.math.VarMap.setValue ( String  varName,
double  val 
) [inherited]

Assigns the value to the specified variable name.

Exceptions:
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().


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1