Class PlanUtils
- java.lang.Object
-
- org.openurp.edu.program.plan.util.PlanUtils
-
public class PlanUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description PlanUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Course>getCourses(ExecutePlan plan, int term)获得一个专业培养计划中,在terms学期上课的Coursestatic floatgetGroupCredits(CourseGroup group, int term)static List<PlanCourse>getPlanCourses(CourseGroup group, int term)获得一个课程组中,在term学期上课的ExecutePlanCoursestatic List<ExecutePlanCourse>getPlanCourses(ExecutePlan plan)static List<ExecutePlanCourse>getPlanCourses(ExecutePlan plan, int term)获得一个专业培养计划中,在term学期上课的ExecutePlanCoursestatic List<PlanCourse>getPlanCoursesUntilTerm(CourseGroup courseGroup, int term)获得一个课程组中,到term为止需要上的所有PlanCoursestatic List<ExecutePlanCourse>getPlannedCourse(ExecutePlan plan)根据课程找出课程类型static List<ExecutePlanCourse>getUnPlannedPlanCourses(ExecutePlan plan)static booleanisUnplannedTerm(Terms terms)确定是不是不定开课学期的static booleanopenOnThisTerm(Terms terms, int term)根据开课学期字符串来判断是否在这个学期开课
-
-
-
Method Detail
-
getCourses
public static List<Course> getCourses(ExecutePlan plan, int term)
获得一个专业培养计划中,在terms学期上课的Course- Parameters:
plan-term- 要查询的学期,多个学期用逗号分割比如1,2,3- Returns:
-
getPlanCourses
public static List<ExecutePlanCourse> getPlanCourses(ExecutePlan plan)
-
getUnPlannedPlanCourses
public static List<ExecutePlanCourse> getUnPlannedPlanCourses(ExecutePlan plan)
-
getPlannedCourse
public static List<ExecutePlanCourse> getPlannedCourse(ExecutePlan 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<ExecutePlanCourse> getPlanCourses(ExecutePlan plan, int term)
获得一个专业培养计划中,在term学期上课的ExecutePlanCourse- Parameters:
plan-terms- 要查询的学期,多个学期用逗号分割比如1,2,3- Returns:
-
getPlanCourses
public static List<PlanCourse> getPlanCourses(CourseGroup group, int term)
获得一个课程组中,在term学期上课的ExecutePlanCourse- 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:
-
-