university
Class Faculty

java.lang.Object
  extended by university.Person
      extended by university.Employee
          extended by university.Faculty
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Faculty
extends Employee
implements java.lang.Cloneable

Class for the Faculty of the university.

See Also:
Serialized Form

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

Faculty

public Faculty()
Creates a new instance of Faculty


Faculty

public 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.

Parameters:
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

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from class: Employee
Clone a new object

Overrides:
clone in class Employee
Returns:
Object a cloned object
Throws:
java.lang.CloneNotSupportedException - Throws CloneNotSupportedException

getSpecialty

public final java.lang.String getSpecialty()
The Faculty members area of specialty.

Returns:
String A String representing the Faculty member area of specialty.

setSpecialty

public final void setSpecialty(java.lang.String specialty)
Set the facutly members specialty.

Parameters:
specialty - The Faculty members area of specialty.

getStatus

public final FacultyStatus getStatus()
Retunrs the Faculty Status if the Faculty member if tenured or adjuct.

Returns:
FacutltyStatus

setStatus

public final void setStatus(FacultyStatus status)
Set the status of the Faculty.

Parameters:
status - The status of the faculty member (adjuct or tenured).

toString

public java.lang.String toString()
Returns a String representation of the Faculty member.

Overrides:
toString in class Employee
Returns:
String A string representation of the Faculty member.