Class Faculty
java.lang.Object
Faculty
public class Faculty
extends java.lang.Object
this class act about a faculty
-
Constructor Summary
Constructors Constructor Description Faculty(java.lang.String name)
creat a new faculty -
Method Summary
Modifier and Type Method Description void
addCourse(Course course)
void
addProfessor(Professor professor)
void
enrollStudent(Student student)
Course[]
getCourses()
java.lang.String
getName()
Professor[]
getProfessors()
Student[]
getStudents()
boolean
isCourseValid(Course course)
boolean
isProfessorValid(Professor professor)
boolean
isStudentValid(Student student)
void
printF()
void
setCourses(Course[] courses)
void
setProfessors(Professor[] professors)
void
setStudents(Student[] students)
-
Constructor Details
-
Faculty
public Faculty(java.lang.String name)creat a new faculty- Parameters:
name
- of faculty
-
-
Method Details
-
getName
public java.lang.String getName()- Returns:
- name of faculty
-
setStudents
- Parameters:
students
- assign student to faculty
-
getStudents
- Returns:
- students of the faculty
-
setCourses
- Parameters:
courses
- assign courses to faculty's courses
-
setProfessors
- Parameters:
professors
- assign professor to the faculty's professor
-
getProfessors
- Returns:
- list of faculty's professors
-
getCourses
- Returns:
- list of faculty's courses
-
enrollStudent
- Parameters:
student
- enroll student to the faculty
-
addCourse
- Parameters:
course
- add a course to faculty
-
addProfessor
- Parameters:
professor
- add a professor to faculty
-
isStudentValid
- Parameters:
student
- check out if this student is in the faculty- Returns:
- true or false
-
isCourseValid
- Parameters:
course
- is a special course which is checking- Returns:
- true of false
-
isProfessorValid
- Parameters:
professor
- name of special professor which is checking- Returns:
- true of false
-
printF
public void printF()
-