ca.spaz.cron.database
Class MacroNutrients

java.lang.Object
  extended by ca.spaz.cron.database.NutrientTable
      extended by ca.spaz.cron.database.MacroNutrients

public class MacroNutrients
extends NutrientTable

Author:
davidson

Field Summary
 double ash
           
 double carbs
           
 double fiber
           
 double kcals
           
 double kj
           
 double lipid
           
 double protein
           
 double starch
           
 double sugar
           
 double water
           
 
Constructor Summary
MacroNutrients()
           
MacroNutrients(Food f)
           
 
Method Summary
 void addFood(Serving food)
           
protected  java.lang.String doGetTableName()
          Subclasses must implement this in order to supply their table name.
 
Methods inherited from class ca.spaz.cron.database.NutrientTable
addFood, getAmountByTag, getTableName, setAmountByTag, updateDatabase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kcals

public double kcals

kj

public double kj

water

public double water

protein

public double protein

lipid

public double lipid

ash

public double ash

carbs

public double carbs

fiber

public double fiber

sugar

public double sugar

starch

public double starch
Constructor Detail

MacroNutrients

public MacroNutrients()

MacroNutrients

public MacroNutrients(Food f)
Method Detail

addFood

public void addFood(Serving food)

doGetTableName

protected java.lang.String doGetTableName()
Description copied from class: NutrientTable
Subclasses must implement this in order to supply their table name.

Specified by:
doGetTableName in class NutrientTable
Returns:
the table name to perform lookups on.


Copyright © 2005 Spaz. All Rights Reserved.