Package org.dnsge.powerschoolapi.stat
Class PowerschoolStatistics
- java.lang.Object
-
- org.dnsge.powerschoolapi.stat.PowerschoolStatistics
-
public class PowerschoolStatistics extends java.lang.ObjectClass that calculates some statistics about aUser'sgrades- Version:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description PowerschoolStatistics(User user)Creates a new statistics object from a User
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserGpacalculateGPA(DetailedCourseMapper mapper)Calculates this object's User's GPA from aDetailedCourseMapperobjectjava.util.List<Course>getCourses()Returns courses of this statistics object.UsergetUser()Returns the user of this statistics object.
-
-
-
Constructor Detail
-
PowerschoolStatistics
public PowerschoolStatistics(User user)
Creates a new statistics object from a User- Parameters:
user- User to create from
-
-
Method Detail
-
calculateGPA
public UserGpa calculateGPA(DetailedCourseMapper mapper)
Calculates this object's User's GPA from aDetailedCourseMapperobject- Parameters:
mapper- DetailedCourseMapper object to map courses from- Returns:
- A
UserGpaobject
-
getCourses
public java.util.List<Course> getCourses()
Returns courses of this statistics object.- Returns:
- courses of this statistics object
-
-