|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPerson
Student
Field Summary | |
static int |
FIRST_PROB
Sets the student in First Probationary Status. |
static int |
REGULAR
Sets the student in Regular Status. |
static int |
SECOND_PROB
Sets the student in Second Probationary Status. |
static int |
SHIFT
Sets the student to be advice/forced to shift. |
Constructor Summary | |
Student()
Creates a student object with no name, a generated ID Number and Regular probationary status. |
|
Student(Person thisPerson)
Creates a student with full name and a generated ID Number |
|
Student(java.lang.String first,
java.lang.String last,
java.lang.String mid)
Creates a student object with first, last and middle names. |
|
Student(java.lang.String first,
java.lang.String last,
java.lang.String mid,
int yr,
java.lang.String crs)
Creates a student object with first, last and middle names. |
Method Summary | |
void |
addSubject(Subject thisSubj)
Adds/Enrolls the student to a subject. |
void |
dropSubject(java.lang.String thisCode)
Drops/Withdraws the student to a subject. |
static int |
getCount()
Gets the total number of Student objects created. |
java.lang.String |
getCourse()
Gets the course that this object is currently enrolled to. |
java.lang.String |
getIdNumber()
Gets the Student's ID Number. |
double |
getMSCA()
Computes and returns the Student's MSCA. |
int |
getProbationStatus()
Returns the Student's probation status code. |
java.lang.String |
getStat()
Returns the Student's probation status in words |
java.util.Hashtable |
getSubjects()
Returns the Hashtable of subjects that the Student has enrolled. |
double |
getWPA()
Computes and returns the Student's WPA. |
int |
getYear()
Returns the Student's year level. |
void |
setCourse(java.lang.String course)
Sets a new course for the Student. |
static void |
setInitialCount(int newCount)
Sets and initial value of how many Students has been previously created. |
void |
setNewId(java.lang.String thisNew)
Sets a new ID Number for the student created. |
void |
setProbationStatus(int stat)
Sets the student's probationary status code and code equivalent (stat). |
void |
setStat(java.lang.String thisNewStat)
Sets a user-defined Probationary status without using Status codes. |
void |
setYear(int year)
Sets the Student's year level |
java.lang.String |
toString()
Returns Student Informations. |
Methods inherited from class Person |
getFirstName, getLastName, getMiddleInitial, getMiddleName, setCount, setFirstName, setLastName, setMiddleInitial, setMiddleName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int REGULAR
public static final int FIRST_PROB
public static final int SECOND_PROB
public static final int SHIFT
Constructor Detail |
public Student()
public Student(Person thisPerson)
thisPerson
- a Person objectpublic Student(java.lang.String first, java.lang.String last, java.lang.String mid)
first
- person first name.last
- person last name.mid
- person middle name.public Student(java.lang.String first, java.lang.String last, java.lang.String mid, int yr, java.lang.String crs)
first
- person first name.last
- person last name.mid
- person middle name.yr
- student year level.crs
- student course.Method Detail |
public void addSubject(Subject thisSubj)
thisSubj
- The Subject that the student is wished to be enrolled to.public void dropSubject(java.lang.String thisCode)
thisCode
- The Subject code that the student is wished to be dropped.public static int getCount()
public java.lang.String getCourse()
public java.lang.String getIdNumber()
public int getProbationStatus()
public java.lang.String getStat()
public java.util.Hashtable getSubjects()
public double getWPA()
public double getMSCA()
public int getYear()
public void setCourse(java.lang.String course)
course
- the Student Course.public static void setInitialCount(int newCount)
newCount
- New initial count.public void setNewId(java.lang.String thisNew)
thisNew
- The new ID Number to be initialized.public void setProbationStatus(int stat)
stat
- Probationary Status (REGULAR,FIRST_PROB,
SECOND_PROB, or SHIFT)public void setStat(java.lang.String thisNewStat)
thisNewStat
- New Probationary Statuspublic void setYear(int year)
year
- New year levelpublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |