00001 package edu.rice.cs.hpc.data.experiment.scope.filters; 00002 00003 import edu.rice.cs.hpc.data.experiment.Experiment; 00004 import edu.rice.cs.hpc.data.experiment.metric.BaseMetric; 00005 import edu.rice.cs.hpc.data.experiment.metric.MetricType; 00006 import edu.rice.cs.hpc.data.experiment.scope.Scope; 00007 00008 //only propagagate exclusive metrics 00009 public class ExclusiveOnlyMetricPropagationFilter implements MetricValuePropagationFilter { 00011 protected Experiment _experiment; 00012 00013 public ExclusiveOnlyMetricPropagationFilter(Experiment experiment) { 00014 this._experiment = experiment; 00015 } 00016 00017 public boolean doPropagation(Scope source, Scope target, int src_idx, int targ_idx) { 00018 BaseMetric m = this._experiment.getMetric(src_idx); 00019 MetricType objType = m.getMetricType(); 00020 00021 return ( objType == MetricType.EXCLUSIVE ); 00022 } 00023 }