nathan.middleware
Class StudentImpl

java.lang.Object
  extended by nathan.middleware.StudentImpl
All Implemented Interfaces:
java.io.Serializable, Student

public class StudentImpl
extends java.lang.Object
implements Student, java.io.Serializable

The implementation class for Student Interface.

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

Constructor Summary
StudentImpl()
          Creates a new intance of StudentImpl
StudentImpl(java.lang.String aName, java.lang.String aStudentNumber, int aAge, java.lang.String aAddress, java.lang.String aProgram)
          Creates a new instance of StudentImpl
 
Method Summary
 java.lang.String getAddress()
           
 int getAge()
          Get the age of the student
 Grade getGrade()
          Get the grades of the student
 java.lang.String getName()
          Get the name of the student
 java.lang.String getProgram()
          Get the program of the student
 java.lang.String getStudentNumber()
          Get the student number
 void setAddress(java.lang.String address)
          set the address for the student
 void setAge(int age)
          set the age of the student
 void setGrade(Grade grade)
          set the grades of the student
 void setName(java.lang.String name)
          set the name of the student
 void setProgram(java.lang.String program)
          set the program of the student
 void setStudentNumber(java.lang.String studentNumber)
          set the student number for the student
 java.lang.String toString()
          toString returns a string representing the student
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StudentImpl

public StudentImpl()
Creates a new intance of StudentImpl


StudentImpl

public StudentImpl(java.lang.String aName,
                   java.lang.String aStudentNumber,
                   int aAge,
                   java.lang.String aAddress,
                   java.lang.String aProgram)
Creates a new instance of StudentImpl

Parameters:
aName - the name of the student
aAge - the age of the student
aAddress - the address of the student
aProgram - the program the student is enrolled in
Method Detail

getName

public java.lang.String getName()
Get the name of the student

Specified by:
getName in interface Student
Returns:
student name

getAge

public int getAge()
Get the age of the student

Specified by:
getAge in interface Student
Returns:
age

getProgram

public java.lang.String getProgram()
Get the program of the student

Specified by:
getProgram in interface Student
Returns:
the program the srudent is enrolled in

getStudentNumber

public java.lang.String getStudentNumber()
Get the student number

Specified by:
getStudentNumber in interface Student
Returns:
student number

getGrade

public Grade getGrade()
Get the grades of the student

Specified by:
getGrade in interface Student
Returns:
grade

setGrade

public void setGrade(Grade grade)
set the grades of the student

Specified by:
setGrade in interface Student
Parameters:
grade -

toString

public java.lang.String toString()
toString returns a string representing the student

Specified by:
toString in interface Student
Overrides:
toString in class java.lang.Object
Returns:
String representing the student

getAddress

public java.lang.String getAddress()
Returns:
Returns the address.

setAddress

public void setAddress(java.lang.String address)
Description copied from interface: Student
set the address for the student

Specified by:
setAddress in interface Student
Parameters:
address - The address to set.

setAge

public void setAge(int age)
Description copied from interface: Student
set the age of the student

Specified by:
setAge in interface Student
Parameters:
age - The age to set.

setName

public void setName(java.lang.String name)
Description copied from interface: Student
set the name of the student

Specified by:
setName in interface Student
Parameters:
name - The name to set.

setProgram

public void setProgram(java.lang.String program)
Description copied from interface: Student
set the program of the student

Specified by:
setProgram in interface Student
Parameters:
program - The program to set.

setStudentNumber

public void setStudentNumber(java.lang.String studentNumber)
Description copied from interface: Student
set the student number for the student

Specified by:
setStudentNumber in interface Student
Parameters:
studentNumber - The studentNumber to set.