nathan.middleware
Class GradeImpl

java.lang.Object
  extended by nathan.middleware.GradeImpl
All Implemented Interfaces:
java.io.Serializable, Grade

public class GradeImpl
extends java.lang.Object
implements java.io.Serializable, Grade

The implementation of the Grade interface used to store a students grade.

Author:
Nathan Balon
Advance Operating Systems CIS 578
University of Michigan Dearborn
Remote Method Invocation Middleware Project
See Also:
Serialized Form

Constructor Summary
GradeImpl()
          Creates a new instance of GradeImpl
 
Method Summary
 char getCourseIGrade()
          Get the grade for course I.
 char getCourseIIGrade()
          Get the grade for course II.
 char getCourseIIIGrade()
          Get the grade for course III.
 double getGPA()
          Get the grade point average.
 boolean setCourseIGrade(char aGrade)
          Set the grade for course I.
 boolean setCourseIIGrade(char aGrade)
          Set the grade for course II.
 boolean setCourseIIIGrade(char aGrade)
          Set the grade for course III.
 java.lang.String toString()
          Get a String representation of all the grades.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GradeImpl

public GradeImpl()
Creates a new instance of GradeImpl

Method Detail

setCourseIGrade

public boolean setCourseIGrade(char aGrade)
Description copied from interface: Grade
Set the grade for course I.

Specified by:
setCourseIGrade in interface Grade
Parameters:
aGrade - The grade for course I.
Returns:
boolean Returns true if the grade was set.

getCourseIGrade

public char getCourseIGrade()
Description copied from interface: Grade
Get the grade for course I.

Specified by:
getCourseIGrade in interface Grade
Returns:
char The grade of the student for course I.

setCourseIIGrade

public boolean setCourseIIGrade(char aGrade)
Description copied from interface: Grade
Set the grade for course II.

Specified by:
setCourseIIGrade in interface Grade
Parameters:
aGrade - The grade for course II.
Returns:
boolean Returns true if the grade was set.

getCourseIIGrade

public char getCourseIIGrade()
Description copied from interface: Grade
Get the grade for course II.

Specified by:
getCourseIIGrade in interface Grade
Returns:
char The grade of the student for course II.

setCourseIIIGrade

public boolean setCourseIIIGrade(char aGrade)
Description copied from interface: Grade
Set the grade for course III.

Specified by:
setCourseIIIGrade in interface Grade
Parameters:
aGrade - The grade for course III.
Returns:
boolean Returns true if the grade was set.

getCourseIIIGrade

public char getCourseIIIGrade()
Description copied from interface: Grade
Get the grade for course III.

Specified by:
getCourseIIIGrade in interface Grade
Returns:
char The grade of the student for course III.

getGPA

public double getGPA()
Description copied from interface: Grade
Get the grade point average.

Specified by:
getGPA in interface Grade
Returns:
double the grade point average of the student.

toString

public java.lang.String toString()
Description copied from interface: Grade
Get a String representation of all the grades.

Specified by:
toString in interface Grade
Overrides:
toString in class java.lang.Object
Returns:
String A String listing all of the grades.