1 |
|
|
2 |
|
|
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 |
0 |
public AminoAcids() { |
48 |
0 |
} |
49 |
|
|
50 |
|
public AminoAcids(Food f) { |
51 |
0 |
super(f); |
52 |
0 |
} |
53 |
|
|
54 |
|
public void addFood(Serving food) { |
55 |
0 |
double weight = food.getGrams() / 100.0; |
56 |
0 |
addFood(food.getFood().getAminoAcids(), weight); |
57 |
0 |
} |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
protected String doGetTableName() { |
65 |
0 |
return "aminoacids"; |
66 |
|
} |
67 |
|
|
68 |
|
} |