package application.elements;

import java.util.List;
import java.util.ArrayList;

public class Course{

    private Subject subject;
    private String courseName;
    private int courseID;
    private int numOfSections;
    private int maxStudentAmount;
    private int minStudentAmount;
    public List<Section> sections;

    public Course(Subject subject, String courseName, int courseID,
		 int maxStudentAmount, int minStudentAmount){
	this.subject = subject;
	this.courseName = courseName;
	this.courseID = courseID;
        this.maxStudentAmount = maxStudentAmount;
	this.minStudentAmount = minStudentAmount;
	this.sections = new ArrayList<Section>();
    }

    public void setNumOfSections(int numOfStudents){ //maybe move to logic
	this.numOfSections = 1;
    }
    
    public int getMaxStudentAmount(){
        return this.getMaxStudentAmount();
    }

    @Override
    public String toString(){
	return "Subject: " + subject + ", Course Name: " + courseName + ", Course ID: " + courseID
	 	+ ", Number of Sections: " + numOfSections + ", Max Number of Students: " + maxStudentAmount
		+ ", Min Number of Students: " + minStudentAmount;
    }
}

@@ -101,159 +101,541 @@
 se%7B%0A
-%0A    private Subject subject;%0A    private String courseName;%0A    private int courseID;%0A    private int numOfSections;%0A    private int maxStudentAmount;
+    %0A    /*Subject to be used to make sure teachers are compatible and organize courses*/%0A    private Subject subject;%0A    /*The formal title as found in the admissions book*/%0A    private String courseName;%0A    /*Unique ID to be used for quick lookup of courses*/%0A    private int courseID;%0A    /*Based on the demand and max class size*/%0A    private int numOfSections;%0A    /*To be used to see if class if full*/%0A    private int maxStudentAmount;%0A    /*Might be depricated in future depending on how important this is to the district*/
 %0A   
@@ -661,24 +661,49 @@
 dentAmount;%0A
+    /*List of sections*/%0A
     public L
@@ -1064,24 +1064,101 @@
 %3E();%0A    %7D%0A%0A
+    /*Sets number of sections which is determined within application.logic*/%0A
     public v
@@ -1192,39 +1192,17 @@
 mOfS
-tudents)%7B //maybe move to logic
+ections)%7B
 %0A%09th
@@ -1224,9 +1224,21 @@
 s = 
-1
+numOfSections
 ;%0A  
@@ -1242,24 +1242,86 @@
 %0A    %7D%0A    %0A
+    /*Returns max amount of students allowed in this course*/%0A
     public i
@@ -1391,24 +1391,210 @@
 nt();%0A    %7D%0A
+    %0A%0A    /*Adds a section of this course to the list*/%0A    public void addSection(Section section)%7B%0A        if(section.getCourse() == this)%0A            sections.add(section);%0A    %7D%0A    
 %0A    @Overri

Add some comments