package foodprofile.model;


import java.util.ArrayList;
import java.util.Date;
import java.util.GregorianCalendar;

public class FoodProfileModel {
    private int id;
    private String name;
    private ArrayList<String> foodCategories;
    private GregorianCalendar time;
    
    /**
     * Default constructor for FoodProfileModel
     */
    public FoodProfileModel(){
        
    }
    
    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the foodCategories
     */
    public ArrayList<String> getFoodCategories() {
        return foodCategories;
    }

    /**
     * This method sets the categories this food belongs to. A food item may belong to multiple categories.
     * @param foodCategories the foodCategories to set
     */
    public void setFoodCategories(ArrayList<String> foodCategories) {
        this.foodCategories = foodCategories;
    }
    
    /**
     * This method adds a food category to a food profile
     * @param foodCategory to add
     */
    public void addFoodCategory(String foodCategory){
        
    }
    
    /**
     * Gets the time of the Food as a GregorianCalendar
     * @return 
     */
    public GregorianCalendar getTime() {
        return this.time;
    }
    
    /**
     * Sets the time equal to the Provided GregorianCalendar
     * @param time 
     */
    public void setTime(GregorianCalendar time) {
        this.time = time;
    }


}

@@ -265,24 +265,62 @@
 endar time;%0A
+    private ArrayList%3CInteger%3E moods;%0A
     %0A    /**
@@ -1817,12 +1817,777 @@
 ;%0A    %7D%0A
+    %0A        /**%0A     * This method retrieves all moods this food is linked to%0A     * @return the moods%0A     */%0A    public ArrayList%3CInteger%3E getMoods() %7B%0A        return moods;%0A    %7D%0A%0A    /**%0A     * This method adds linked moods to this food%0A     * @param moods the moods to set%0A     */%0A    public void setMoods(ArrayList%3CInteger%3E moods) %7B%0A        this.moods = moods;%0A    %7D%0A        %0A    /**%0A     * This method deletes a mood linked to this food%0A     * @param toDelete %0A     */%0A    public void deleteMood(int toDelete)%7B%0A        %0A    %7D%0A    %0A    /**%0A     * This method returns a mood linked to this food, given its index in the ArrayList of moodIDs%0A     * @param index%0A     * @return %0A     */%0A    public int getMood(int index)%7B%0A        return moods.get(index);%0A    %7D%0A%0A
 %0A%0A%7D%0A

Update FoodProfileModel.java