package moodprofile.model;

import java.util.GregorianCalendar;

public class MoodProfileModel {
    private int id;
    private String name;
    private int moodScore;
    private GregorianCalendar time = new GregorianCalendar();

    
    /**
     * Default constructor for MoodProfileModel
     */
    public MoodProfileModel(){
        
    }
    
    /**
     * Get the id of the mood
     * @return the id
     */
    public int getId() {
        return id;
    }

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

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

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

    /**
     * Get the Mood Score associated with the mood
     * @return the moodScore
     */
    public int getMoodScore() {
        return moodScore;
    }

    /**
     * Set or change the Mood Score associated with the mood
     * @param moodScore the moodScore to set
     */
    public void setMoodScore(int moodScore) {
        this.moodScore = moodScore;
    }
    
    /**
     * Gets the time of the Mood as a GregorianCalendar
     * @return 
     */
    public GregorianCalendar getTime() {
        return this.time;
    }
    
    /**
     * Sets the time of the Mood equal to the provided GregorianCalendar
     * @param time 
     */
    public void setTime(GregorianCalendar time) {
        this.time = time;
    }
}

@@ -1640,10 +1640,830 @@
 ;%0A    %7D%0A
+    %0A    %0A    /**%0A     * returns all foods linked to this mood%0A     * @return the foodIDs%0A     */%0A    public ArrayList%3CInteger%3E getFoodIDs() %7B%0A        return foodIDs;%0A    %7D%0A    %0A    /**%0A     * returns a food linked to this mood given the index.%0A     * @param index%0A     * @return %0A     */%0A    public int getFood(int index)%7B%0A        return 1;%0A    %7D%0A%0A    /**%0A     * adds all moods linked to this food%0A     * @param foodIDs the foodIDs to set%0A     */%0A    public void setFoodIDs(ArrayList%3CInteger%3E foodIDs) %7B%0A        this.foodIDs = foodIDs;%0A    %7D%0A    %0A    /**%0A     * deletes a food linked to this mood%0A     * @param toDelete %0A     */%0A    public void deleteFood(int toDelete)%7B%0A        %0A    %7D%0A    %0A    /**%0A     * adds a food linkage to this mood%0A     * @param toAdd %0A     */%0A    public void addFood(int toAdd)%7B%0A        %0A    %7D%0A
 %7D%0A

Update MoodProfileModel.java