Class Faculty

java.lang.Object
Faculty

public class Faculty
extends java.lang.Object
this class act about a faculty
  • 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

      public void setStudents​(Student[] students)
      Parameters:
      students - assign student to faculty
    • getStudents

      public Student[] getStudents()
      Returns:
      students of the faculty
    • setCourses

      public void setCourses​(Course[] courses)
      Parameters:
      courses - assign courses to faculty's courses
    • setProfessors

      public void setProfessors​(Professor[] professors)
      Parameters:
      professors - assign professor to the faculty's professor
    • getProfessors

      public Professor[] getProfessors()
      Returns:
      list of faculty's professors
    • getCourses

      public Course[] getCourses()
      Returns:
      list of faculty's courses
    • enrollStudent

      public void enrollStudent​(Student student)
      Parameters:
      student - enroll student to the faculty
    • addCourse

      public void addCourse​(Course course)
      Parameters:
      course - add a course to faculty
    • addProfessor

      public void addProfessor​(Professor professor)
      Parameters:
      professor - add a professor to faculty
    • isStudentValid

      public boolean isStudentValid​(Student student)
      Parameters:
      student - check out if this student is in the faculty
      Returns:
      true or false
    • isCourseValid

      public boolean isCourseValid​(Course course)
      Parameters:
      course - is a special course which is checking
      Returns:
      true of false
    • isProfessorValid

      public boolean isProfessorValid​(Professor professor)
      Parameters:
      professor - name of special professor which is checking
      Returns:
      true of false
    • printF

      public void printF()