org.sakaiproject.tool.gradebook
Class Category

java.lang.Object
  extended by org.sakaiproject.tool.gradebook.Category
All Implemented Interfaces:
Serializable

public class Category
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static Comparator averageScoreComparator
           
static Comparator nameComparator
           
static String SORT_BY_AVERAGE_SCORE
           
static String SORT_BY_NAME
           
static String SORT_BY_WEIGHT
           
static Comparator weightComparator
           
 
Constructor Summary
Category()
           
 
Method Summary
 void calculateStatistics(List<Assignment> assignmentsWithStats)
           
 void calculateStatisticsPerStudent(List<AssignmentGradeRecord> gradeRecords, String studentUid)
           
 int getAssignmentCount()
           
 List getAssignmentList()
           
 Double getAverageScore()
           
 Double getAverageTotalPoints()
           
 Integer getCategoryOrder()
           
 Integer getDrop_lowest()
           
 Integer getDropHighest()
           
 Gradebook getGradebook()
           
 Long getId()
           
 boolean getIsCategory()
           
 Double getItemValue()
           
 Integer getKeepHighest()
           
 Double getMean()
           
 String getName()
           
 Double getTotalPointsEarned()
           
 Double getTotalPointsPossible()
           
 int getVersion()
           
 Double getWeight()
           
 boolean isAssignment()
           
 boolean isAssignmentsEqual()
           
 boolean isCourseGrade()
           
 boolean isDropScores()
           
 Boolean isEnforcePointWeighting()
           
 Boolean isEqualWeightAssignments()
           
 Boolean isExtraCredit()
           
 boolean isRemoved()
           
 Boolean isUnweighted()
           
 void setAssignmentCount(int assignmentCount)
           
 void setAssignmentList(List assignmentList)
           
 void setAverageScore(Double averageScore)
           
 void setAverageTotalPoints(Double averageTotalPoints)
           
 void setCategoryOrder(Integer categoryOrder)
           
 void setDrop_lowest(Integer drop_lowest)
           
 void setDropHighest(Integer dropHighest)
           
 void setEnforcePointWeighting(Boolean enforcePointWeighting)
           
 void setEqualWeightAssignments(Boolean equalWeightAssignments)
           
 void setExtraCredit(Boolean isExtraCredit)
           
 void setGradebook(Gradebook gradebook)
           
 void setId(Long id)
           
 void setKeepHighest(Integer keepHighest)
           
 void setMean(Double mean)
           
 void setName(String name)
           
 void setRemoved(boolean removed)
           
 void setTotalPointsEarned(Double totalPointsEarned)
           
 void setTotalPointsPossible(Double totalPointsPossible)
           
 void setUnweighted(Boolean unweighted)
           
 void setVersion(int version)
           
 void setWeight(Double weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameComparator

public static Comparator nameComparator

averageScoreComparator

public static Comparator averageScoreComparator

weightComparator

public static 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
Constructor Detail

Category

public Category()
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()

getDrop_lowest

public Integer getDrop_lowest()

setDrop_lowest

public void setDrop_lowest(Integer drop_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<Assignment> 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)

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)


Copyright © 2003-2013 Sakai Project. All Rights Reserved.