|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnathan.middleware.StudentListImpl
public class StudentListImpl
The implementation class for the StudentList. StudentListImpl is used to store information about students in a list so it can be accessed later.
Constructor Summary | |
---|---|
StudentListImpl()
Creates a new instance of StudentListImpl |
Method Summary | |
---|---|
boolean |
addStudent(Student aStudent)
adds a student to the student list |
boolean |
delStudent(java.lang.String aStudentNumber)
deletes a student from the list |
Student |
find(java.lang.String aStudentNumber)
find a specific student in the list |
Grade |
getGrade(java.lang.String aStudentNumber)
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 aStudentNumber,
Grade aGrade)
setGrade set the grade for a student |
void |
setReplicatedObject(java.util.Vector<Student> studentList)
Set the student list |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StudentListImpl()
Method Detail |
---|
public boolean addStudent(Student aStudent)
addStudent
in interface StudentList
aStudent
- the student to be added
public boolean delStudent(java.lang.String aStudentNumber)
delStudent
in interface StudentList
aStudentNumber
- the student number of the student to be deleted
public java.util.Vector listAll()
listAll
in interface StudentList
public Student find(java.lang.String aStudentNumber)
find
in interface StudentList
aStudentNumber
- the student number of the student to be returned
public boolean setGrade(java.lang.String aStudentNumber, Grade aGrade)
setGrade
in interface StudentList
aStudentNumber
- the student numberaGrade
- the grade to be setpublic Grade getGrade(java.lang.String aStudentNumber)
getGrade
in interface StudentList
aStudentNumber
- the student number
public java.util.Vector getReplicatedObject()
StudentList
getReplicatedObject
in interface StudentList
public void setReplicatedObject(java.util.Vector<Student> studentList)
StudentList
setReplicatedObject
in interface StudentList
studentList
- A Vector containing all students.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |