org.jscience.arts.cooking
Class Ingredient

java.lang.Object
  extended by org.jscience.economics.PotentialResource
      extended by org.jscience.arts.cooking.Ingredient
All Implemented Interfaces:
java.io.Serializable, Named

public class Ingredient
extends PotentialResource

A class representing something that can be eaten (by humans).

See Also:
Serialized Form

Constructor Summary
Ingredient(java.lang.String name, java.lang.String description, Amount amount)
          Creates a new Ingredient object.
 
Method Summary
 float getAsh()
          DOCUMENT ME!
 float getCalories()
          DOCUMENT ME!
 float getCarbohydrates()
          DOCUMENT ME!
 float getFat()
          DOCUMENT ME!
 float getFibers()
          DOCUMENT ME!
 float getProteins()
          DOCUMENT ME!
 float getWater()
          DOCUMENT ME!
 void setAsh(float ash)
          DOCUMENT ME!
 void setCalories(float calories)
          DOCUMENT ME!
 void setCarbohydrates(float carbohydrate)
          DOCUMENT ME!
 void setFat(float fat)
          DOCUMENT ME!
 void setFibers(float fiber)
          DOCUMENT ME!
 void setProteins(float protein)
          DOCUMENT ME!
 void setWater(float water)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.economics.PotentialResource
equals, getAmount, getDecayTime, getDescription, getKind, getName, setDecayTime, setKind, setQuantity
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ingredient

public Ingredient(java.lang.String name,
                  java.lang.String description,
                  Amount amount)
Creates a new Ingredient object.

Parameters:
name - DOCUMENT ME!
description - DOCUMENT ME!
amount - DOCUMENT ME!
Method Detail

getWater

public float getWater()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setWater

public void setWater(float water)
DOCUMENT ME!

Parameters:
water - DOCUMENT ME!

getProteins

public float getProteins()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setProteins

public void setProteins(float protein)
DOCUMENT ME!

Parameters:
protein - DOCUMENT ME!

getFat

public float getFat()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setFat

public void setFat(float fat)
DOCUMENT ME!

Parameters:
fat - DOCUMENT ME!

getCarbohydrates

public float getCarbohydrates()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setCarbohydrates

public void setCarbohydrates(float carbohydrate)
DOCUMENT ME!

Parameters:
carbohydrate - DOCUMENT ME!

getFibers

public float getFibers()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setFibers

public void setFibers(float fiber)
DOCUMENT ME!

Parameters:
fiber - DOCUMENT ME!

getAsh

public float getAsh()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setAsh

public void setAsh(float ash)
DOCUMENT ME!

Parameters:
ash - DOCUMENT ME!

getCalories

public float getCalories()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setCalories

public void setCalories(float calories)
DOCUMENT ME!

Parameters:
calories - DOCUMENT ME!