package com.cmput301.t05.habilect;

import java.util.List;

/**
 * Created by ioltuszy on 10/19/17.
 */

public class HabitPlan {
    public HabitPlan(HabitType habitType, int[] targetFrequency, boolean[] targetDays, List<HabitEvent> history) {

    }
}

@@ -127,123 +127,1467 @@
 n %7B%0A
-    public HabitPlan(HabitType habitType, int%5B%5D targetFrequency, boolean%5B%5D targetDays, List%3CHabitEvent%3E history) %7B%0A
+%0A    private HabitType habitType;%0A    private int%5B%5D targetFrequency;%0A    boolean%5B%5D targetDays;%0A    List%3CHabitEvent%3E history;%0A%0A    public HabitPlan(HabitType habitType, int%5B%5D targetFrequency, boolean%5B%5D targetDays, List%3CHabitEvent%3E history) %7B%0A        this.setHabitType(habitType);%0A        this.setTargetFrequency(targetFrequency);%0A        this.setTargetDays(targetDays);%0A        this.setHistory(history);%0A    %7D%0A%0A    public HabitType getHabitType()%7B%0A        return this.habitType;%0A    %7D%0A%0A    public int%5B%5D getTargetFrequency()%7B%0A        return this.targetFrequency;%0A    %7D%0A%0A    public boolean%5B%5D getTargetDays()%7B%0A        return this.targetDays;%0A    %7D%0A%0A    public List%3CHabitEvent%3E getHistory()%7B%0A        return this.history;%0A    %7D%0A%0A    public void setHabitType(HabitType habitType)%7B%0A        if(habitType == null)%7B%0A            throw new IllegalArgumentException();%0A        %7Delse%7B%0A            this.habitType = habitType;%0A        %7D%0A    %7D%0A%0A    public void setTargetFrequency(int%5B%5D targetFrequency)%7B%0A        if(targetFrequency.length != 7)%7B%0A            throw new IllegalArgumentException();%0A        %7Delse%7B%0A            this.targetFrequency = targetFrequency;%0A        %7D%0A    %7D%0A%0A    public void setTargetDays(boolean%5B%5D targetDays)%7B%0A        if(targetDays.length != 7)%7B%0A            throw new IllegalArgumentException();%0A        %7Delse%7B%0A            this.targetDays = targetDays;%0A        %7D%0A    %7D%0A%0A    public void setHistory(List%3CHabitEvent%3E history)%7B%0A        this.history = history;
 %0A   

Add getters and setters for HabitPlan