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

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

List of all members.

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.

Detailed Description

Author:
laksonoadhianto

Definition at line 12 of file ExtFuncMap.java.


Constructor & Destructor Documentation

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  ) 
Parameters:
caseSensitive 

Definition at line 25 of file ExtFuncMap.java.

edu.rice.cs.hpc.data.experiment.metric.ExtFuncMap.ExtFuncMap ( BaseMetric[]  metrics  ) 

Member Function Documentation

Function com.graphbuilder.math.FuncMap.getFunction ( String  funcName,
int  numParam 
) [inherited]

Returns a function based on the name and the specified number of parameters.

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

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


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

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1