View Javadoc

1   /*
2    * Created on 12-Aug-2005
3    */
4   package ca.spaz.cron.user.impl;
5   
6   import ca.spaz.cron.user.Metric;
7   
8   public class WeightMetric implements Metric {
9      double val;
10     
11     public String getName() {
12        return "Weight";
13     }
14  
15     public Number getValue() {
16        return new Double(val);
17     }
18  
19     public void setValue(Number value) {
20        val = value.doubleValue();
21     }
22  
23  
24  }