Package MySTARS

Class CourseManager

java.lang.Object
MySTARS.CourseManager

public final class CourseManager
extends java.lang.Object
CourseManager that prints information regarding courses in the correct format.
Since:
2020-11-1
Version:
1.0
Author:
Bhargav
  • Constructor Details

  • Method Details

    • printCourseList

      public static void printCourseList​(CourseStatus status)
      Prints a list of courses based on the CourseStatus from Database.
      Parameters:
      status - The desired CourseStatus.
    • printCourseList

      public static void printCourseList​(CourseStatus status, Student student)
      Prints a list of courses based on the CourseStatus from a Student's courses.
      Parameters:
      status - The desired CourseStatus.
      student - The Student whose courses are to be printed.
    • printCourseDetails

      public static void printCourseDetails​(Course course)
      Prints the full details of a course.
      Parameters:
      course - The course to be printed
    • printIndexList

      public static void printIndexList​(Course course, boolean printVacancies)
      Prints a list of CourseIndex for a particular Course with the option to print the number of vacanices.
      Parameters:
      course - The desired Course to print the values from.
      printVacancies - Indication to print the number of vacancies.
    • printLesson

      public static void printLesson​(CourseIndex index)
      Prints a list of Lesson for a given CourseIndex.
      Parameters:
      index - The CourseIndex whose Lessons need printing.
    • printLesson

      public static void printLesson​(Lesson lesson)
      Prints a lesson information for a given Lesson.
      Parameters:
      lesson - The Lesson that needs printing.
    • printStudentListByCourse

      public static void printStudentListByCourse​(Course course, boolean sorted)
      Prints a list of students in a given Course with the option to have the list sorted.
      Parameters:
      course - The Course from which to print the list of Students.
      sorted - The option to sort the Students by name.
    • printStudentListByIndex

      public static void printStudentListByIndex​(CourseIndex courseIndex, boolean sorted)
      Prints a list of students in a given CourseIndex.
      Parameters:
      courseIndex - The CourseIndex from which to print the list of Students.
      sorted - The option to sort the Students by name.
    • printLine

      private static void printLine()
      Prints a horizontal line across the screen.