org.sakaiproject.tool.gradebook
Class AbstractGradeRecord

java.lang.Object
  extended byorg.sakaiproject.tool.gradebook.AbstractGradeRecord
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AssignmentGradeRecord, CourseGradeRecord

public abstract class AbstractGradeRecord
extends Object
implements Serializable

AbstractGradeRecord is the abstract base class for Grade Records, which are records of instructors (or the application, in the case of autocalculated gradebooks) assigning a grade to a student for a particular GradableObject.

Author:
Josh Holtzman
See Also:
Serialized Form

Field Summary
protected  Date dateRecorded
           
protected  GradableObject gradableObject
           
protected  String graderId
           
protected  Long id
           
protected  Double pointsEarned
           
protected  String studentId
           
protected  int version
           
 
Constructor Summary
AbstractGradeRecord()
           
 
Method Summary
 Date getDateRecorded()
           
 GradableObject getGradableObject()
           
abstract  Double getGradeAsPercentage()
           
 String getGraderId()
           
 Long getId()
           
 Double getPointsEarned()
           
 String getStudentId()
           
 int getVersion()
           
abstract  boolean isCourseGradeRecord()
           
 void setDateRecorded(Date dateRecorded)
           
 void setGradableObject(GradableObject gradableObject)
           
 void setGraderId(String graderId)
           
 void setId(Long id)
           
 void setPointsEarned(Double pointsEarned)
           
 void setStudentId(String studentId)
           
 void setVersion(int version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected Long id

version

protected int version

studentId

protected String studentId

graderId

protected String graderId

gradableObject

protected GradableObject gradableObject

dateRecorded

protected Date dateRecorded

pointsEarned

protected Double pointsEarned
Constructor Detail

AbstractGradeRecord

public AbstractGradeRecord()
Method Detail

getGradeAsPercentage

public abstract Double getGradeAsPercentage()

isCourseGradeRecord

public abstract boolean isCourseGradeRecord()
Returns:
Whether this is a course grade record

getPointsEarned

public Double getPointsEarned()
Returns:
Returns the pointsEarned

setPointsEarned

public void setPointsEarned(Double pointsEarned)
Parameters:
pointsEarned - The pointsEarned to set.

getDateRecorded

public Date getDateRecorded()
Returns:
Returns the dateRecorded.

setDateRecorded

public void setDateRecorded(Date dateRecorded)
Parameters:
dateRecorded - The dateRecorded to set.

getGradableObject

public GradableObject getGradableObject()
Returns:
Returns the gradableObject.

setGradableObject

public void setGradableObject(GradableObject gradableObject)
Parameters:
gradableObject - The gradableObject to set.

getId

public Long getId()
Returns:
Returns the id.

setId

public void setId(Long id)
Parameters:
id - The id to set.

getVersion

public int getVersion()
Returns:
Returns the version.

setVersion

public void setVersion(int version)
Parameters:
version - The version to set.

getGraderId

public String getGraderId()
Returns:
Returns the graderId.

setGraderId

public void setGraderId(String graderId)
Parameters:
graderId - The graderId to set.

getStudentId

public String getStudentId()
Returns:
Returns the studentId.

setStudentId

public void setStudentId(String studentId)
Parameters:
studentId - The studentId to set.

toString

public String toString()