edu.pdx.cs399J.grader
Class Grade

java.lang.Object
  extended by edu.pdx.cs399J.grader.NotableImpl
      extended by edu.pdx.cs399J.grader.Grade
All Implemented Interfaces:
Notable

public class Grade
extends NotableImpl

This class represent the grade a student got on an assignment.


Field Summary
static double INCOMPLETE
          The assignment is not complete
static double NO_GRADE
          Some work has been submitted, but no grade has been assigned
 
Constructor Summary
Grade(String assignmentName, double score)
          Creates a Grade for a given assignment
 
Method Summary
 String getAssignmentName()
          Returns the name of the assignment that this Grade is for.
 double getScore()
          Returns the score the student received on the assignment.
static void main(String[] args)
          A main program that creates/edits a student's grade.
 void setScore(double score)
          Sets the score the student received on the assignment.
 String toString()
          Returns a brief textual description of this Grade
 
Methods inherited from class edu.pdx.cs399J.grader.NotableImpl
addNote, getNotes, isDirty, makeClean, removeNote, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INCOMPLETE

public static final double INCOMPLETE
The assignment is not complete

See Also:
Constant Field Values

NO_GRADE

public static final double NO_GRADE
Some work has been submitted, but no grade has been assigned

See Also:
Constant Field Values
Constructor Detail

Grade

public Grade(String assignmentName,
             double score)
Creates a Grade for a given assignment

Method Detail

getAssignmentName

public String getAssignmentName()
Returns the name of the assignment that this Grade is for.


getScore

public double getScore()
Returns the score the student received on the assignment.


setScore

public void setScore(double score)
Sets the score the student received on the assignment.


toString

public String toString()
Returns a brief textual description of this Grade

Overrides:
toString in class Object

main

public static void main(String[] args)
A main program that creates/edits a student's grade.



Copyright © 2000-2009 Portland State University. All Rights Reserved.