Commit e647ecf0 authored by NewbieOrange's avatar NewbieOrange
Browse files

Update document and DTOs

parent 23593c7b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
package cn.edu.sustech.cs307.dto;

import java.util.List;
import java.util.Set;

public class CourseSearchEntry {
    /**
@@ -14,7 +15,7 @@ public class CourseSearchEntry {
    /**
     * All classes of the section
     */
    public List<CourseSectionClass> sectionClasses;
    public Set<CourseSectionClass> sectionClasses;
    /**
     * List all course or time conflicting courses' full name, sorted alphabetically.
     * Course full name: String.format("%s[%s]", course.name, section.name)
+8 −8
Original line number Diff line number Diff line
package cn.edu.sustech.cs307.dto;

import java.time.DayOfWeek;
import java.util.List;
import java.util.Objects;
import java.util.Set;

/**
 * The relationship between {@code CourseSectionClass} with {@code CourseSection} is:
@@ -10,13 +10,13 @@ import java.util.Objects;
 * the one is theory class, the other is lab class
 */
public class CourseSectionClass {
    public int id;// it is the id of course section class
    public int id;
    public Instructor instructor;
    public DayOfWeek dayOfWeek; // We ensure the test semesters begin with Monday.
    // the given elements in weekList are sorted.
    // The given elements in weekList are sorted.
    // CourseSectionClasses in same courseSection may have different week list.
    public List<Short> weekList;
    //the time quantum of start and end.
    public Set<Short> weekList;
    // The time quantum of start and end.
    // For example: classStart is 3 while classEnd is 4
    public short classBegin, classEnd;
    public String location;
+4 −2
Original line number Diff line number Diff line
@@ -165,6 +165,8 @@ public interface StudentService {
     * If the scoring scheme of a course is one type in pass-or-fail and hundredmark grade,
     * your system should not accept the other type of grade.
     *
     * Course section's left capacity should remain unchanged after this method.
     *
     * @param studentId
     * @param sectionId We will get the sectionId of one section first
     *                  and then invoke the method by using the sectionId.
@@ -173,7 +175,7 @@ public interface StudentService {
    void addEnrolledCourseWithGrade(int studentId, int sectionId, @Nullable Grade grade);

    /**
     * For teachers who can give student a grade
     * For teachers to give students grade.
     *
     * @param studentId student id is in database
     * @param sectionId section id in test cases that have selected by the student