Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

FacultyArray class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

FacultyArray Class Reference

#include <Ofaculty.h>

Inheritance diagram for FacultyArray:

DynArrayB DynArray List of all members.

Public Methods

 FacultyArray ()
 ~FacultyArray ()
int write_file (File *filePtr)
int read_file (File *filePtr)
int add (int departmentRecno, int rankLevel, int genderEthnicGroup, int facultyAge, int startTeachingDate, int facultySalary, int talentTeaching, int talentScholarship, int talentResearch)
void del (int recNo)
int avg_discretionary_hour (int discretionaryType)
void next_day ()
void next_trimester ()
Facultyget_unpacked_faculty (int recNo)
int is_deleted (int recNo)
Facultyoperator[] (int recNo)
void update_history (char update_flag)

Public Attributes

int department_recno
int faculty_count
float talent_teaching [HISTORY_TRIMESTER_COUNT]
float talent_scholarship [HISTORY_TRIMESTER_COUNT]
float talent_research [HISTORY_TRIMESTER_COUNT]
float performance_teaching [HISTORY_TRIMESTER_COUNT]
float performance_scholarship [HISTORY_TRIMESTER_COUNT]
float performance_research [HISTORY_TRIMESTER_COUNT]
float satisfaction_index [HISTORY_MONTH_COUNT]
char percent_research [HISTORY_TRIMESTER_COUNT]
float teaching_contact_hour [HISTORY_TRIMESTER_COUNT]
float discretionary_hour_array [DISCRETIONARY_TYPE_COUNT_N_TOTAL][HISTORY_TRIMESTER_COUNT]

Detailed Description

Collection Class for managing all of the members of the faculty. Delegates events to each member of the faculty.

Definition at line 264 of file Ofaculty.h.


Constructor & Destructor Documentation

FacultyArray::FacultyArray  
 

Definition at line 16 of file Ofaculta.cpp.

FacultyArray::~FacultyArray  
 

Definition at line 42 of file Ofaculta.cpp.


Member Function Documentation

int FacultyArray::add int    departmentRecno,
int    rankLevel,
int    genderEthnicGroup,
int    facultyAge,
int    startTeachingDate,
int    facultySalary,
int    talentTeaching,
int    talentScholarship,
int    talentResearch
 

Definition at line 61 of file Ofaculta.cpp.

References faculty_count, DynArray::get(), Faculty::init(), DynArrayB::linkin(), operator[](), and DynArray::recno().

int FacultyArray::avg_discretionary_hour int    discretionaryType
 

Return the average discretionary hours of all faculty in this array of a specific discretionary time category.

Definition at line 142 of file Ofaculta.cpp.

void FacultyArray::del int    recNo
 

Definition at line 110 of file Ofaculta.cpp.

References Faculty::department_recno.

Faculty * FacultyArray::get_unpacked_faculty int    recNo
 

Given the packed record (with deleted facultys compressed, in broswer), and return the the unpacked record ( recno passed to faculty_array[] )

Definition at line 264 of file Ofaculta.cpp.

int FacultyArray::is_deleted int    recNo
 

Definition at line 248 of file Ofaculta.cpp.

References Faculty::faculty_recno, DynArray::get(), and NULL.

Referenced by DepartmentArray::init_research(), next_day(), next_trimester(), risky_research(), and FacultyRes::summary_report_1().

void FacultyArray::next_day  
 

Definition at line 168 of file Ofaculta.cpp.

References is_deleted(), Faculty::next_day(), operator[](), DynArray::size(), and update_history().

void FacultyArray::next_trimester  
 

Definition at line 205 of file Ofaculta.cpp.

References department_recno, DISCRETIONARY_TYPE_COUNT, err_here, err_if, err_when, is_deleted(), Faculty::next_trimester(), operator[](), Department::priority_discretionary_hour_array, Department::relative_priority_discretionary_hour_array, and DynArray::size().

Faculty* FacultyArray::operator[] int    recNo [inline]
 

Definition at line 299 of file Ofaculty.h.

References DynArray::get().

Referenced by add(), next_day(), and next_trimester().

int FacultyArray::read_file File   filePtr
 

Read a saved dynamic array from file, it must be saved with write_file()

<File*> readFile = the pointer to the writing file

Return : 1 - read successfully 0 - writing error

Reimplemented from DynArrayB.

Definition at line 267 of file OGFILE4.CPP.

References File::file_read(), and DynArrayB::read_file().

Referenced by Department::read_file().

void FacultyArray::update_history char    update_flag
 

Definition at line 288 of file Ofaculta.cpp.

References err_here.

Referenced by next_day().

int FacultyArray::write_file File   filePtr
 

Write current dynamic array into file, read_file() can be used to retrieve it.

<File*> writeFile = the pointer to the writing file

Return : 1 - write successfully 0 - writing error

Reimplemented from DynArrayB.

Definition at line 260 of file OGFILE4.CPP.


Member Data Documentation

int FacultyArray::department_recno
 

Definition at line 266 of file Ofaculty.h.

Referenced by next_trimester().

float FacultyArray::discretionary_hour_array[DISCRETIONARY_TYPE_COUNT_N_TOTAL][HISTORY_TRIMESTER_COUNT]
 

Definition at line 322 of file Ofaculty.h.

Referenced by FacultyRes::summary_report_3(), and DepartmentArray::update_history().

int FacultyArray::faculty_count
 

Definition at line 267 of file Ofaculty.h.

Referenced by add(), DepartmentArray::calc_faculty_student_history(), and DepartmentArray::update_history().

char FacultyArray::percent_research[HISTORY_TRIMESTER_COUNT]
 

Definition at line 318 of file Ofaculty.h.

float FacultyArray::performance_research[HISTORY_TRIMESTER_COUNT]
 

Definition at line 314 of file Ofaculty.h.

Referenced by FacultyRes::summary_report_3(), and DepartmentArray::update_history().

float FacultyArray::performance_scholarship[HISTORY_TRIMESTER_COUNT]
 

Definition at line 312 of file Ofaculty.h.

Referenced by FacultyRes::summary_report_3(), and DepartmentArray::update_history().

float FacultyArray::performance_teaching[HISTORY_TRIMESTER_COUNT]
 

Definition at line 311 of file Ofaculty.h.

Referenced by FacultyRes::summary_report_3(), and DepartmentArray::update_history().

float FacultyArray::satisfaction_index[HISTORY_MONTH_COUNT]
 

Definition at line 316 of file Ofaculty.h.

float FacultyArray::talent_research[HISTORY_TRIMESTER_COUNT]
 

Definition at line 308 of file Ofaculty.h.

Referenced by FacultyRes::summary_report_3(), and DepartmentArray::update_history().

float FacultyArray::talent_scholarship[HISTORY_TRIMESTER_COUNT]
 

Definition at line 307 of file Ofaculty.h.

Referenced by FacultyRes::summary_report_3(), and DepartmentArray::update_history().

float FacultyArray::talent_teaching[HISTORY_TRIMESTER_COUNT]
 

Definition at line 306 of file Ofaculty.h.

Referenced by FacultyRes::summary_report_3(), and DepartmentArray::update_history().

float FacultyArray::teaching_contact_hour[HISTORY_TRIMESTER_COUNT]
 

Definition at line 321 of file Ofaculty.h.

Referenced by FacultyRes::summary_report_3(), and DepartmentArray::update_history().


The documentation for this class was generated from the following files:
Generated on Fri Aug 23 01:39:08 2002 for VirtualU by doxygen1.2.17