CombineMetricUsingCopy.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.data.experiment.metric;
00002 
00003 import edu.rice.cs.hpc.data.experiment.scope.Scope;
00004 import edu.rice.cs.hpc.data.experiment.scope.filters.MetricValuePropagationFilter;
00005 
00006 public class CombineMetricUsingCopy extends AbstractCombineMetric {
00007 
00008 
00009     public void combine(Scope target, Scope source,
00010             MetricValuePropagationFilter inclusiveOnly,
00011             MetricValuePropagationFilter exclusiveOnly) {
00012 
00013         Scope copy = source.duplicate();
00014         copy.setMetricValues( source.getCombinedValues() );
00015         
00016         if (inclusiveOnly != null) {
00017             target.safeCombine(copy, inclusiveOnly);
00018         }
00019         if (exclusiveOnly != null)
00020             target.combine(copy, exclusiveOnly);
00021 
00022         //super.combine_internal(target, copy, inclusiveOnly, exclusiveOnly);
00023         
00024     }
00025 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1