package edu.oakland.OUSoft.items;

import edu.oakland.OUSoft.linkedList.LLNode;

import java.time.LocalTime;

/**
 * "includes information for a course such as course name, instructor, class meeting time, etc.
 * The instructor field of a Course object should reference to a valid Instructor object."
 */
public class Course implements LLNode<Course> {
	
	private Course link;
	
	private String name;
	private Instructor instructor;
	
	private LocalTime timeStart;
	private LocalTime timeEnd;
	
	/**
	 * Create a new Course
	 *
	 * @param name The name of the Course
	 */
	public Course(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Instructor getInstructor() {
		return instructor;
	}
	
	public void setInstructor(Instructor instructor) {
		this.instructor = instructor;
	}
	
	public LocalTime getTimeStart() {
		return timeStart;
	}
	
	public void setTimeStart(LocalTime timeStart) {
		this.timeStart = timeStart;
	}
	
	public LocalTime getTimeEnd() {
		return timeEnd;
	}
	
	public void setTimeEnd(LocalTime timeEnd) {
		this.timeEnd = timeEnd;
	}
	
	/**
	 * Get the link to the next object
	 *
	 * @return The next object in the list
	 */
	@Override
	public Course getLink() {
		return this.link;
	}
	
	/**
	 * Set the link to the next object
	 *
	 * @param Link The next object in the list
	 */
	@Override
	public void setLink(Course Link) {
		this.link = Link;
	}
}

@@ -368,24 +368,44 @@
 rse link;%0A%09%0A
+%09private String ID;%0A
 %09private Str
@@ -599,32 +599,43 @@
 c Course(String 
+ID, String 
 name) %7B%0A%09%09this.n
@@ -629,35 +629,147 @@
 e) %7B%0A%09%09this.
-name = name
+ID = ID;%0A%09%09this.name = name;%0A%09%7D%0A%09%0A%09public String getID() %7B%0A%09%09return ID;%0A%09%7D%0A%09%0A%09public void setID(String ID) %7B%0A%09%09this.ID = ID
 ;%0A%09%7D%0A%09%0A%09publ

Add ID to Course objects