nathan.middleware
Interface StudentList

All Known Implementing Classes:
StudentListImpl, StudentListImplStub

public interface StudentList

Student List Interface


Method Summary
 boolean addStudent(Student student)
          adds a student to the student list
 boolean delStudent(java.lang.String studentNumber)
          deletes a student from the list
 Student find(java.lang.String studentNumber)
          find a specific student in the list
 Grade getGrade(java.lang.String studentNumber)
          get the grade of a student
 java.util.Vector getReplicatedObject()
          Get a copy of the student list
 java.util.Vector listAll()
          list all students in the student list
 boolean setGrade(java.lang.String studentNumber, Grade grade)
          setGrade set the grade for a student
 void setReplicatedObject(java.util.Vector<Student> list)
          Set the student list
 

Method Detail

addStudent

boolean addStudent(Student student)
adds a student to the student list

Parameters:
student - the student to be added
Returns:
the status of the operation

delStudent

boolean delStudent(java.lang.String studentNumber)
deletes a student from the list

Parameters:
studentNumber - the student number of the student to be deleted
Returns:
boolean the status of the operation

find

Student find(java.lang.String studentNumber)
find a specific student in the list

Parameters:
studentNumber - the student number of the student to be returned
Returns:
Student the student

getGrade

Grade getGrade(java.lang.String studentNumber)
get the grade of a student

Parameters:
studentNumber - the student number
Returns:
Grade

listAll

java.util.Vector listAll()
list all students in the student list

Returns:
Vector of students

getReplicatedObject

java.util.Vector getReplicatedObject()
Get a copy of the student list

Returns:
Vector containing all of the students.

setReplicatedObject

void setReplicatedObject(java.util.Vector<Student> list)
Set the student list

Parameters:
list - A Vector containing all students.

setGrade

boolean setGrade(java.lang.String studentNumber,
                 Grade grade)
setGrade set the grade for a student

Parameters:
studentNumber - the student number
grade - the grade to be set