View Javadoc

1   /*
2    * Created on 20-Mar-2005
3    */
4   package ca.spaz.cron.database;
5   
6   
7   public class AminoAcids extends NutrientTable {
8   
9       public double TRP;
10  
11      public double THR;
12  
13      public double ILE;
14  
15      public double LEU;
16  
17      public double LYS;
18  
19      public double MET;
20  
21      public double CYS;
22  
23      public double PHE;
24  
25      public double TYR;
26  
27      public double VAL;
28  
29      public double ARG;
30  
31      public double HIS;
32  
33      public double ALA;
34  
35      public double ASP;
36  
37      public double GLU;
38  
39      public double GLY;
40  
41      public double PRO;
42  
43      public double SER;
44  
45      public double HYP;
46  
47      public AminoAcids() {
48      }
49  
50      public AminoAcids(Food f) {
51          super(f);
52      }
53  
54      public void addFood(Serving food) {
55          double weight = food.getGrams() / 100.0;
56          addFood(food.getFood().getAminoAcids(), weight);
57      }
58  
59      /*
60       * (non-Javadoc)
61       * 
62       * @see ca.spaz.cron.database.NutrientTable#doGetTableName()
63       */
64      protected String doGetTableName() {
65          return "aminoacids";
66      }
67  
68  }