1
2
3
4 package ca.spaz.cron.database;
5
6 public class Lipids extends NutrientTable {
7
8 public double saturated;
9 public double monounsaturated;
10 public double polyunsaturated;
11 public double transfats;
12 public double cholesterol;
13 public double phytosterol;
14 public double omega3;
15 public double omega6;
16
17 public Lipids() {
18 }
19
20 public Lipids(Food f) {
21 super(f);
22 }
23
24 public void addFood(Serving food) {
25 double weight = food.getGrams() / 100.0;
26 super.addFood(food.getFood().getLipids(), weight);
27 }
28
29 protected String doGetTableName() {
30 return "lipids";
31 }
32 }