All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openurp.edu.grade.course.service.GpaService Maven / Gradle / Ivy

The newest version!
/*
 * OpenURP, Agile University Resource Planning Solution.
 *
 * Copyright © 2014, The OpenURP Software.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful.
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */
package org.openurp.edu.grade.course.service;

import java.util.List;

import org.openurp.base.edu.model.Semester;
import org.openurp.base.std.model.Student;
import org.openurp.edu.grade.course.model.CourseGrade;

/**
 * 平均绩点计算服务
 */
public interface GpaService {
  /**
   * 统计学生的在校所有学期的平均绩点
   *
   * 
   *      平均绩点为: gpa=(∑(绩点*学分))/∑(学分)
   *      平均分为: ga=(∑(得分*学分))/∑(学分)
   * 
* * @param std * @return */ public Float getGpa(Student std); /** * 统计学生的平均绩点
* 平均绩点为: gpa=(∑(绩点*学分))/∑(学分) 平均绩点以截断的方式保留后面两位 * * @param std * @param semester * 可以为null * @return */ public Float getGpa(Student std, List grades); /** * 统计学生的平均绩点
* 除"学生"之外的其他参数均为可选参数。
* 平均绩点为: gpa=(∑(绩点*学分))/∑(学分) 平均绩点以截断的方式保留后面两位 * * @param std * @param semester * 可以为null * @return */ public Float getGpa(Student std, Semester semester); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy