org.jscience.arts.cooking
Class Recipe

java.lang.Object
  extended by org.jscience.economics.PotentialResource
      extended by org.jscience.economics.Resource
          extended by org.jscience.economics.MaterialResource
              extended by org.jscience.economics.resources.Artifact
                  extended by org.jscience.arts.Artwork
                      extended by org.jscience.arts.cooking.Recipe
All Implemented Interfaces:
java.io.Serializable, Property, Commented, Named, Positioned

public class Recipe
extends Artwork
implements Commented

A class representing the needed step to cook a dish.

See Also:
Serialized Form

Constructor Summary
Recipe(java.lang.String name, java.lang.String description, Community producer, java.util.Date productionDate, Identification identification, java.util.Set authors, java.lang.String category, int servingSize, int preparationTime, int cookingTime, java.util.Map ingredients, java.util.Vector steps)
          Creates a new Recipe object.
 
Method Summary
 java.lang.String getCategory()
          DOCUMENT ME!
 java.lang.String getComments()
          DOCUMENT ME!
 int getCookingTime()
          DOCUMENT ME!
 java.util.Map getIngredients()
          DOCUMENT ME!
 int getPreparationTime()
          DOCUMENT ME!
 int getServingSize()
          DOCUMENT ME!
 java.util.Vector getSteps()
          DOCUMENT ME!
 void setComments(java.lang.String comments)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.arts.Artwork
addAnalysis, addRestoration, equals, getAnalysis, getArt, getAuthors, getRestorations, removeAnalysis, removeRestoration, setAnalysis, setAuthors, setRestorations
 
Methods inherited from class org.jscience.economics.resources.Artifact
getGroup, isBroken, setGroup, setIsBroken
 
Methods inherited from class org.jscience.economics.MaterialResource
getIdentification, getValue, setValue
 
Methods inherited from class org.jscience.economics.Resource
addOwner, getOwners, getPosition, getProducer, getProductionDate, getProductionPlace, removeOwner, setOwners, setPosition
 
Methods inherited from class org.jscience.economics.PotentialResource
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
 
Methods inherited from interface org.jscience.economics.Property
getOwners
 

Constructor Detail

Recipe

public Recipe(java.lang.String name,
              java.lang.String description,
              Community producer,
              java.util.Date productionDate,
              Identification identification,
              java.util.Set authors,
              java.lang.String category,
              int servingSize,
              int preparationTime,
              int cookingTime,
              java.util.Map ingredients,
              java.util.Vector steps)
Creates a new Recipe object.

Parameters:
name - DOCUMENT ME!
description - DOCUMENT ME!
producer - DOCUMENT ME!
productionDate - DOCUMENT ME!
identification - DOCUMENT ME!
authors - DOCUMENT ME!
category - DOCUMENT ME!
servingSize - DOCUMENT ME!
preparationTime - DOCUMENT ME!
cookingTime - DOCUMENT ME!
ingredients - DOCUMENT ME!
steps - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getCategory

public java.lang.String getCategory()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getServingSize

public int getServingSize()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPreparationTime

public int getPreparationTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCookingTime

public int getCookingTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getIngredients

public java.util.Map getIngredients()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSteps

public java.util.Vector getSteps()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getComments

public java.lang.String getComments()
DOCUMENT ME!

Specified by:
getComments in interface Commented
Returns:
DOCUMENT ME!

setComments

public void setComments(java.lang.String comments)
DOCUMENT ME!

Parameters:
comments - DOCUMENT ME!