package edu.umn.csci5801.model;

import java.util.List;

/**
 * Created by Justin on 12/2/2014.
 */
public class ProgressSummary {

    private Student student;
    private Department department;
    private Degree degree;
    private Term termBegan;
    private List<Professor> advisors;
    private List<Professor> committee;
    private List<GradReqCheck> reqCheckResult;
    private List<String> notes;
    private List<CourseTaken> coursesTaken;

    //Default Constructor
    public ProgressSummary() {}
    //Constructor
    public ProgressSummary(Student s, Department dep, Degree deg, Term tb,
                           List<Professor> a, List<Professor> c, List<String> n, List<CourseTaken> ct) {
        student = s;
        department = dep;
        degree = deg;
        termBegan = tb;
        advisors = a;
        committee = c;
        notes = n;
        coursesTaken = ct;
    }

    public void checkGradStatus() {
        GradRequirements gradRequirements = new GradRequirements(degree, reqCheckResult);
        reqCheckResult = gradRequirements.getReqChecks();
    }
}

package edu.umn.csci5801.model;

import java.util.List;

/**
 * Created by Justin on 12/2/2014.
 */
public class ProgressSummary {

    private Student student;
    private Department department;
    private Degree degree;
    private Term termBegan;
    private List<Professor> advisors;
    private List<Professor> committee;
    private List<GradReqCheck> reqCheckResult;
    private List<String> notes;
    private List<CourseTaken> coursesTaken;

    //Default Constructor
    public ProgressSummary() {}
    //Constructor
    public ProgressSummary(Student s, Department dep, Degree deg, Term tb,
                           List<Professor> a, List<Professor> c, List<String> n, List<CourseTaken> ct) {
        student = s;
        department = dep;
        degree = deg;
        termBegan = tb;
        advisors = a;
        committee = c;
        notes = n;
        coursesTaken = ct;
    }

    public void checkGradStatus(List<CompletedMilestone> completedMilestonesList) throws Exception {
        GradRequirements gradRequirements = new GradRequirements(degree);
        gradRequirements.testReqList(coursesTaken, completedMilestonesList);
        reqCheckResult = gradRequirements.getReqChecks();
    }
}

Revert ProgressSummary