Package org.dnsge.powerschoolapi.stat
Class DetailedCourse
- java.lang.Object
-
- org.dnsge.powerschoolapi.detail.Course
-
- org.dnsge.powerschoolapi.stat.DetailedCourse
-
public class DetailedCourse extends Course
Extension of aCourse
with credit hours and grade values. Can be instantiated withcreateWithData(Course, double, double)
- Version:
- 1.0.3
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DetailedCourse
createWithData(Course from, double creditHours, double gradeValue)
Creates a DetailedCourse from a regularCourse
, the number of credit hours, and the grade value.boolean
equals(java.lang.Object o)
double
getCreditHours()
Returns the number of credit hours for this DetailedCourse.double
getGradeValue()
Returns the grade value of this DetailedCourse.int
hashCode()
-
Methods inherited from class org.dnsge.powerschoolapi.detail.Course
courseIdentifier, generateCourseFromElement, getAssignments, getCourseFrequency, getCourseGrades, getCourseName, getGradeGroup, getRoom, getTeacherEmail, getTeacherFirstName, getTeacherLastName, getUser, objectIdentifier, toString
-
-
-
-
Method Detail
-
createWithData
public static DetailedCourse createWithData(Course from, double creditHours, double gradeValue)
Creates a DetailedCourse from a regularCourse
, the number of credit hours, and the grade value.- Parameters:
from
- Course to detailcreditHours
- Number of credit hoursgradeValue
- Grade value- Returns:
- New DetailedCourse with the desired information
-
getCreditHours
public double getCreditHours()
Returns the number of credit hours for this DetailedCourse.- Returns:
- the number of credit hours for this DetailedCourse
-
getGradeValue
public double getGradeValue()
Returns the grade value of this DetailedCourse.- Returns:
- the grade value of this DetailedCourse
-
-