|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSemester
Constructor Summary | |
Semester()
Creates a new semester with null school year, semester as 1 and blank semester code. |
|
Semester(int sy,
int sem)
Creates a new semester with specified school year, semester number and a generated semester code. |
Method Summary | |
void |
closeSubject(java.lang.String code)
Closes/deletes a subject from the semester. |
void |
enrollStudent(Student thisStudent)
Enrolls/adds a student into the semester. |
int |
getSchoolYear()
Returns the school year to which the semester is set. |
int |
getSem()
Returns the Semester Number |
java.lang.String |
getSemCode()
Returns the generated semester code. |
java.util.Hashtable |
getStudentsEnrolled()
Returns the collection of students currently enrolled in semester. |
java.util.Hashtable |
getSubjectsOpen()
Returns the collection of subjects currently opened for the semester. |
void |
openSubject(Subject thisSubject)
Opens a new subject in the semester |
void |
setSchoolYear(int newSy)
Sets a new school year for which the semester is to be classified and automatically sets a new semester code for the modified semester. |
void |
setSem(int newSem)
Sets a new semester number for the semester and automatically sets a new semester code for the modified semester. |
void |
setSemCode()
Sets/Generates a new Semester code for the semester based on the school year to which it bellongs and its semester number. |
java.lang.String |
toString()
Returns the objects details. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Semester()
public Semester(int sy, int sem)
sy
- School Year.sem
- Semester.Method Detail |
public void enrollStudent(Student thisStudent)
thisStudent
- The student to be enrolled.public int getSchoolYear()
public java.lang.String getSemCode()
public int getSem()
public java.util.Hashtable getStudentsEnrolled()
public java.util.Hashtable getSubjectsOpen()
public void openSubject(Subject thisSubject)
thisSubject
- The subject to be opened.public void closeSubject(java.lang.String code)
code
- The Subject code of the subject to be closed/deleted.public void setSchoolYear(int newSy)
newSy
- The new school year for the semester.public void setSem(int newSem)
newSem
- The new semester number to be set.public void setSemCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |