|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.Person
university.Employee
university.Faculty
public class Faculty
Class for the Faculty of the university.
Constructor Summary | |
---|---|
Faculty()
Creates a new instance of Faculty |
|
Faculty(java.lang.String name,
Sex gender,
Address address,
Unit unit,
int salary,
FacultyStatus status,
java.lang.String specialty)
Creates a new instance of Faculty. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone a new object |
java.lang.String |
getSpecialty()
The Faculty members area of specialty. |
FacultyStatus |
getStatus()
Retunrs the Faculty Status if the Faculty member if tenured or adjuct. |
void |
setSpecialty(java.lang.String specialty)
Set the facutly members specialty. |
void |
setStatus(FacultyStatus status)
Set the status of the Faculty. |
java.lang.String |
toString()
Returns a String representation of the Faculty member. |
Methods inherited from class university.Employee |
---|
getSalary, setSalary |
Methods inherited from class university.Person |
---|
getAddress, getAffiliation, getGender, getID, getName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Faculty()
public Faculty(java.lang.String name, Sex gender, Address address, Unit unit, int salary, FacultyStatus status, java.lang.String specialty)
name
- The name of the Faculty member.gender
- The gender of the Faculty member.address
- The address of the Faculty member.unit
- The unit the Faculty member belongs to.salary
- The salary of the Faculty member.status
- The status of the Faculty member (Adjuct or Tenured).specialty
- The Faculty members area of specialty.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Employee
clone
in class Employee
java.lang.CloneNotSupportedException
- Throws CloneNotSupportedExceptionpublic final java.lang.String getSpecialty()
public final void setSpecialty(java.lang.String specialty)
specialty
- The Faculty members area of specialty.public final FacultyStatus getStatus()
public final void setStatus(FacultyStatus status)
status
- The status of the faculty member (adjuct or tenured).public java.lang.String toString()
toString
in class Employee
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |