예제 #1
0
 public double getMinAttrib(Project.Attribute attr) {
   double min = Double.MAX_VALUE;
   double value;
   for (Project p : refProjects) {
     value = p.getAttribute(attr);
     if (value < min) {
       min = value;
     }
   }
   return min;
 }
예제 #2
0
 public double getMaxAttrib(Project.Attribute attr) {
   double max = 0;
   double value;
   for (Project p : refProjects) {
     value = p.getAttribute(attr);
     if (value > max) {
       max = value;
     }
   }
   return max;
 }