Class PlanUtils


  • public class PlanUtils
    extends Object
    • Constructor Detail

      • PlanUtils

        public PlanUtils()
    • Method Detail

      • getCourses

        public static List<Course> getCourses​(MajorPlan plan,
                                              int term)
        获得一个专业培养计划中,在terms学期上课的Course
        Parameters:
        plan -
        term - 要查询的学期,多个学期用逗号分割比如1,2,3
        Returns:
      • getPlannedCourse

        public static List<MajorPlanCourse> getPlannedCourse​(MajorPlan plan)
        根据课程找出课程类型
        Parameters:
        cb -
        Returns:
      • isUnplannedTerm

        public static boolean isUnplannedTerm​(Terms terms)
        确定是不是不定开课学期的
        Parameters:
        term -
        Returns:
      • getGroupCredits

        public static float getGroupCredits​(CourseGroup group,
                                            int term)
      • getPlanCourses

        public static List<MajorPlanCourse> getPlanCourses​(MajorPlan plan,
                                                           int term)
        获得一个专业培养计划中,在term学期上课的MajorPlanCourse
        Parameters:
        plan -
        terms - 要查询的学期,多个学期用逗号分割比如1,2,3
        Returns:
      • getPlanCourses

        public static List<PlanCourse> getPlanCourses​(CourseGroup group,
                                                      int term)
        获得一个课程组中,在term学期上课的MajorPlanCourse
        Parameters:
        courseGroup -
        term -
        Returns:
      • openOnThisTerm

        public static boolean openOnThisTerm​(Terms terms,
                                             int term)
        根据开课学期字符串来判断是否在这个学期开课
        Parameters:
        terms - 开课学期字符串
        term - 某个学期
        Returns:
      • getPlanCoursesUntilTerm

        public static List<PlanCourse> getPlanCoursesUntilTerm​(CourseGroup courseGroup,
                                                               int term)
        获得一个课程组中,到term为止需要上的所有PlanCourse
        Parameters:
        courseGroup -
        term -
        Returns: