Package org.sakaiproject.tool.gradebook
Class Category
- java.lang.Object
-
- org.sakaiproject.tool.gradebook.Category
-
- All Implemented Interfaces:
Serializable
public class Category extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ComparatoraverageScoreComparatorstatic ComparatornameComparatorstatic StringSORT_BY_AVERAGE_SCOREstatic StringSORT_BY_NAMEstatic StringSORT_BY_WEIGHTstatic ComparatorweightComparator
-
Constructor Summary
Constructors Constructor Description Category()
-
Method Summary
-
-
-
Field Detail
-
nameComparator
public static final Comparator nameComparator
-
averageScoreComparator
public static final Comparator averageScoreComparator
-
weightComparator
public static final Comparator weightComparator
-
SORT_BY_NAME
public static String SORT_BY_NAME
-
SORT_BY_AVERAGE_SCORE
public static String SORT_BY_AVERAGE_SCORE
-
SORT_BY_WEIGHT
public static String SORT_BY_WEIGHT
-
-
Method Detail
-
getDropHighest
public Integer getDropHighest()
-
setDropHighest
public void setDropHighest(Integer dropHighest)
-
getKeepHighest
public Integer getKeepHighest()
-
setKeepHighest
public void setKeepHighest(Integer keepHighest)
-
isDropScores
public boolean isDropScores()
-
getItemValue
public Double getItemValue()
-
getDropLowest
public Integer getDropLowest()
-
setDropLowest
public void setDropLowest(Integer lowest)
-
getGradebook
public Gradebook getGradebook()
-
setGradebook
public void setGradebook(Gradebook gradebook)
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getVersion
public int getVersion()
-
setVersion
public void setVersion(int version)
-
getWeight
public Double getWeight()
-
setWeight
public void setWeight(Double weight)
-
isRemoved
public boolean isRemoved()
-
setRemoved
public void setRemoved(boolean removed)
-
getAverageTotalPoints
public Double getAverageTotalPoints()
-
setAverageTotalPoints
public void setAverageTotalPoints(Double averageTotalPoints)
-
getAverageScore
public Double getAverageScore()
-
setAverageScore
public void setAverageScore(Double averageScore)
-
calculateStatistics
public void calculateStatistics(List<GradebookAssignment> assignmentsWithStats)
-
calculateStatisticsPerStudent
public void calculateStatisticsPerStudent(List<AssignmentGradeRecord> gradeRecords, String studentUid)
-
getAssignmentList
public List getAssignmentList()
-
setAssignmentList
public void setAssignmentList(List assignmentList)
-
getIsCategory
public boolean getIsCategory()
-
isCourseGrade
public boolean isCourseGrade()
-
isAssignment
public boolean isAssignment()
-
getMean
public Double getMean()
-
setMean
public void setMean(Double mean)
-
getAssignmentCount
public int getAssignmentCount()
-
setAssignmentCount
public void setAssignmentCount(int assignmentCount)
-
getIsExtraCredit
public Boolean getIsExtraCredit()
-
setIsExtraCredit
public void setIsExtraCredit(Boolean isExtraCredit)
-
isExtraCredit
public Boolean isExtraCredit()
-
setExtraCredit
public void setExtraCredit(Boolean isExtraCredit)
-
isAssignmentsEqual
public boolean isAssignmentsEqual()
-
isUnweighted
public Boolean isUnweighted()
-
setUnweighted
public void setUnweighted(Boolean unweighted)
-
isEqualWeightAssignments
public Boolean isEqualWeightAssignments()
-
setEqualWeightAssignments
public void setEqualWeightAssignments(Boolean equalWeightAssignments)
-
getCategoryOrder
public Integer getCategoryOrder()
-
setCategoryOrder
public void setCategoryOrder(Integer categoryOrder)
-
isEnforcePointWeighting
public Boolean isEnforcePointWeighting()
-
setEnforcePointWeighting
public void setEnforcePointWeighting(Boolean enforcePointWeighting)
-
getTotalPointsEarned
public Double getTotalPointsEarned()
-
setTotalPointsEarned
public void setTotalPointsEarned(Double totalPointsEarned)
-
getTotalPointsPossible
public Double getTotalPointsPossible()
-
setTotalPointsPossible
public void setTotalPointsPossible(Double totalPointsPossible)
-
getPointsPossible
public Double getPointsPossible()
Fix for Category NPE reported in SAK-14519 Since category uses "totalPointsPossible" property instead of "pointsPossible" property, as in Assignments
-
setPointsPossible
public void setPointsPossible(Double pointsPossible)
-
-