Package org.dnsge.powerschoolapi.stat
Class PowerschoolStatistics
- java.lang.Object
-
- org.dnsge.powerschoolapi.stat.PowerschoolStatistics
-
public class PowerschoolStatistics extends java.lang.Object
Class that calculates some statistics about aUser's
grades- 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 UserGpa
calculateGPA(DetailedCourseMapper mapper)
Calculates this object's User's GPA from aDetailedCourseMapper
objectjava.util.List<Course>
getCourses()
Returns courses of this statistics object.User
getUser()
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 aDetailedCourseMapper
object- Parameters:
mapper
- DetailedCourseMapper object to map courses from- Returns:
- A
UserGpa
object
-
getCourses
public java.util.List<Course> getCourses()
Returns courses of this statistics object.- Returns:
- courses of this statistics object
-
-