Examples of AvgValue


Examples of edu.pku.sei.metric.analyzer.math.AvgValue

          if (m != null) {
            cols[1] = format(m.getValue());
          }
        }

        AvgValue avg = ms.getAverageValue(name);
        MaxValue max = ms.getMaxValue(name);
        if ((avg != null) || (max != null)) {
          TreeItem row = createNewRow();
          row.setForeground(getMetricForeground());
          row.setImage(Activator.getDefault().getImageRegistry().get(
              "metric"));
          cols[0] = name
              + " (avg/max per "
              + MetricUtility.transferLevel(descriptors[i]
                  .getLevel()) + ")";

          if (avg != null) {
            cols[2] = format(avg.getValue());
          }
          if (max != null) {
            cols[3] = format(max.getValue());
            String handle = max.getHandle();
            if (handle != null) {
View Full Code Here

Examples of edu.pku.sei.metric.analyzer.math.AvgValue

          child.setText(getElementName(children[i].getJavaElement()));
          child.setImage(getImage(children[i]));
          MetricValue val = children[i].getValue(metric);
          child.setText(1, (val != null) ? format(val.getValue())
              : "");
          AvgValue avg = children[i].getAverageValue(metric);
          MaxValue max = children[i].getMaxValue(metric);
          if ((avg != null) || (max != null)) {
            if (avg != null) {
              child.setText(2, format(avg.getValue()));
            }
            if (max != null) {
              child.setText(3, format(max.getValue()));
              String handle = max.getHandle();
              if (handle != null) {
View Full Code Here

Examples of edu.pku.sei.metric.analyzer.math.AvgValue

          pOut.print(format(m.getValue()));
          pOut.print("\"");
        }
      }

      AvgValue avg = root.getAverageValue(name);
      MaxValue max = root.getMaxValue(name);
      if ((avg != null) || (max != null)) {
        if (avg != null) {
          pOut.print(" avg = \"");
          pOut.print(format(avg.getValue()));
          pOut.print("\"");
        }
        if (max != null) {
          pOut.print(" max = \"");
          pOut.print(format(max.getValue()));
View Full Code Here

Examples of edu.pku.sei.metric.analyzer.math.AvgValue

          MetricValue val = children[i].getValue(metric);
          if (val != null) {
            pOut.print(" total = ");
            pOut.print("\"" + format(val.getValue()) + "\"");
          }
          AvgValue avg = children[i].getAverageValue(metric);
          MaxValue max = children[i].getMaxValue(metric);
          if ((avg != null) || (max != null)) {
            if (avg != null) {
              pOut.print(" avg = ");
              pOut.print("\"" + format(avg.getValue()) + "\"");
            }
            if (max != null) {
              pOut.print(" max = ");
              pOut.print("\"" + format(max.getValue()) + "\"");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.