Class DefaultGpaStatService

java.lang.Object
org.openurp.edu.grade.course.service.impl.DefaultGpaStatService
All Implemented Interfaces:
GpaStatService

public class DefaultGpaStatService extends Object implements GpaStatService
  • Constructor Details

    • DefaultGpaStatService

      public DefaultGpaStatService()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Throws:
      org.springframework.beans.BeansException
    • setProjectPropertyService

      public void setProjectPropertyService(ProjectPropertyService projectPropertyService)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Throws:
      Exception
    • stat

      public StdGpa stat(Student std, List<CourseGrade> grades)
      Description copied from interface: GpaStatService
      根据指定数据进行统计绩点
      Specified by:
      stat in interface GpaStatService
      Parameters:
      std -
      grades -
      Returns:
    • refresh

      public void refresh(StdGpa stdGpa)
      Specified by:
      refresh in interface GpaStatService
    • refresh

      public void refresh(StdGpa stdGpa, List<CourseGrade> grades)
      Specified by:
      refresh in interface GpaStatService
    • stat

      public StdGpa stat(Student std, Semester... semesters)
      Description copied from interface: GpaStatService
      如果semesters不包含元素或者为null则统计所有学期 否则统计学生的在校semesters所包含的学期的平均绩点
            平均绩点为: gpa=(∑(绩点*学分))/∑(学分)
            平均分为: ga=(∑(得分*学分))/∑(学分)
       
      Specified by:
      stat in interface GpaStatService
      Parameters:
      std -
      Returns:
    • stat

      public MultiStdGpa stat(Collection<Student> stds, Semester... semesters)
      Description copied from interface: GpaStatService
      统计多个学生的平均绩点和其他信息 如果semesters不包含元素或者为null则统计这些所有学期 否则统计这些学生的semesters所包含的学期的平均绩点
      Specified by:
      stat in interface GpaStatService
      Parameters:
      stds -
      Returns:
    • setCourseGradeProvider

      public void setCourseGradeProvider(CourseGradeProvider provider)
    • setGpaPolicy

      public void setGpaPolicy(GpaPolicy gpaPolicy)