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

Password:

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

StudentArray Class Reference

#include <Ostudent.h>

Inheritance diagram for StudentArray:

DynArrayB DynArray List of all members.

Public Methods

 StudentArray ()
 ~StudentArray ()
int write_file (File *filePtr)
int read_file (File *filePtr)
int add (char studentLevel, char yearInProgram, char genderEthnicGroup, char stuSeg, char major, int finAid, float *talentArr)
void del (int recNo)
void next_day ()
void next_trimester ()
void init_course (int processYearInProgram)
int is_deleted (int recNo)
Studentoperator[] (int recNo)
void select_course (int ignoreFaculty=0)
void update_history (char update_flag)
void calc_student_performance ()
void calc_degree_awarded ()

Public Attributes

int department_recno
int student_count
char talent_academic_all [DEGREE_TYPE_COUNT][HISTORY_MONTH_COUNT]
char performance_academic_ug [HISTORY_MONTH_COUNT]
char talent_academic [HISTORY_MONTH_COUNT]
char talent_extracurricular [HISTORY_MONTH_COUNT]
char talent_athletics [HISTORY_MONTH_COUNT]
char satisfaction_academic [HISTORY_MONTH_COUNT]
char satisfaction_student_life [HISTORY_MONTH_COUNT]
char satisfaction_athletics [HISTORY_MONTH_COUNT]
char satisfaction_overall [HISTORY_MONTH_COUNT]
float time_to_degree [DEGREE_TYPE_COUNT][HISTORY_YEAR_COUNT]
float dropout_rate [DEGREE_TYPE_COUNT][HISTORY_YEAR_COUNT]
float fake_disp_time_to_degree [DEGREE_TYPE_COUNT][HISTORY_YEAR_COUNT]
int bachelor_degree [HISTORY_YEAR_COUNT]
int master_degree [HISTORY_YEAR_COUNT]
int doctor_degree [HISTORY_YEAR_COUNT]
int time_to_degree_cumm [DEGREE_TYPE_COUNT]
int cur_dropout [DEGREE_TYPE_COUNT]
float ave_entering_class [DEGREE_TYPE_COUNT]
int cur_bachelor_degree
int cur_master_degree
int cur_doctor_degree
int ave_time_to_graduation_for_ug
char ave_satisfaction_student_life [MAX_STUDENT_LEVEL]

Detailed Description

Collection class containing all of the students in the school as well as methods for summarizing student data. Delegates calls to next_day() and read/write to each student.

Definition at line 241 of file Ostudent.h.


Constructor & Destructor Documentation

StudentArray::StudentArray  
 

Definition at line 15 of file Ostudena.cpp.

StudentArray::~StudentArray  
 

Definition at line 69 of file Ostudena.cpp.


Member Function Documentation

int StudentArray::add char    studentLevel,
char    yearInProgram,
char    genderEthnicGroup,
char    stuSeg,
char    major,
int    finAid,
float *    talentArr
 

Definition at line 83 of file Ostudena.cpp.

References DynArray::get(), Student::init(), DynArrayB::linkin(), DynArray::recno(), and student_count.

void StudentArray::calc_degree_awarded  
 

Definition at line 727 of file Ostud_pi.cpp.

References ave_time_to_graduation_for_ug, BACHELOR_DEGREE, bachelor_degree, cur_bachelor_degree, cur_doctor_degree, cur_dropout, cur_master_degree, DEGREE_TYPE_COUNT, DOCTOR, DOCTOR_DEGREE, doctor_degree, dropout_rate, fake_disp_time_to_degree, is_deleted(), MASTER, MASTER_DEGREE, master_degree, MAX_STUDENT_LEVEL, operator[](), shift_history, DynArray::size(), Student::student_level, time_to_degree, time_to_degree_cumm, and Student::year_in_program.

Referenced by update_history().

void StudentArray::calc_student_performance  
 

Definition at line 618 of file Ostud_pi.cpp.

References DEGREE_TYPE_COUNT, and UG_TRADITION.

Referenced by update_history().

void StudentArray::del int    recNo
 

Definition at line 101 of file Ostudena.cpp.

References DynArray::get(), DynArray::get_ptr(), DynArrayB::linkout(), and student_count.

Referenced by DepartmentRes::deinit(), plagiarism_scandal(), and scandal_in_athletics().

void StudentArray::init_course int    processYearInProgram
 

This function is called when **generating student** records during initialization. It is to generate previous course selection records for the students.

<int> processYearInProgram = only process students whose year in program is the same as this.

Definition at line 279 of file Ostudena.cpp.

References FIRST_TRIMESTER, LAST_TRIMESTER, and MASTER.

int StudentArray::is_deleted int    recNo
 

Definition at line 124 of file Ostudena.cpp.

References DynArray::get(), NULL, and Student::student_recno.

Referenced by calc_degree_awarded(), EnrollRes::calc_student_count(), DepartmentRes::deinit(), plagiarism_scandal(), scandal_in_athletics(), PlayerSchool::summary_student_report_1(), update_history(), and EnrollRes::update_student_intake().

void StudentArray::next_day  
 

Definition at line 157 of file Ostudena.cpp.

void StudentArray::next_trimester  
 

This function is called when a new school year begins.

Definition at line 192 of file Ostudena.cpp.

Student* StudentArray::operator[] int    recNo [inline]
 

Definition at line 269 of file Ostudent.h.

References DynArray::get().

Referenced by calc_degree_awarded(), and update_history().

int StudentArray::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 229 of file OGFILE4.CPP.

References err_when, File::file_read(), DynArrayB::packed_size(), DynArrayB::read_file(), and student_count.

Referenced by GeneralDepartment::read_file().

void StudentArray::select_course int    ignoreFaculty = 0
 

All courses are selected during breaks between trimesters.

[int] ignoreFaculty - if this is true, courses will be assigned without faculty constraints. This is for initialization only. (default: 0)

Definition at line 221 of file Ostudena.cpp.

References MAX_STUDENT_LEVEL.

void StudentArray::update_history char    update_flag
 

Definition at line 478 of file Ostud_pi.cpp.

References ave_satisfaction_student_life, BACHELOR_DEGREE, calc_degree_awarded(), calc_student_performance(), cur_bachelor_degree, cur_doctor_degree, cur_master_degree, DEGREE_TYPE_COUNT, School::doc_time_to_degree, DOCTOR_DEGREE, err_here, err_when, is_deleted(), MASTER_DEGREE, MAX_STUDENT_LEVEL, operator[](), Student::satisfaction_student_life, DynArray::size(), Student::student_level, time_to_degree, School::total_bach_degrees, School::total_doctoral_degrees, School::total_masters_and_prof_degree, and UG_TRADITION.

int StudentArray::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 222 of file OGFILE4.CPP.


Member Data Documentation

float StudentArray::ave_entering_class[DEGREE_TYPE_COUNT]
 

Definition at line 330 of file Ostudent.h.

char StudentArray::ave_satisfaction_student_life[MAX_STUDENT_LEVEL]
 

Definition at line 346 of file Ostudent.h.

Referenced by update_history().

int StudentArray::ave_time_to_graduation_for_ug
 

Definition at line 344 of file Ostudent.h.

Referenced by calc_degree_awarded().

int StudentArray::bachelor_degree[HISTORY_YEAR_COUNT]
 

Definition at line 320 of file Ostudent.h.

Referenced by calc_degree_awarded(), and PlayerSchool::summary_student_report_3().

int StudentArray::cur_bachelor_degree
 

Definition at line 332 of file Ostudent.h.

Referenced by calc_degree_awarded(), and update_history().

int StudentArray::cur_doctor_degree
 

Definition at line 337 of file Ostudent.h.

Referenced by calc_degree_awarded(), and update_history().

int StudentArray::cur_dropout[DEGREE_TYPE_COUNT]
 

Definition at line 329 of file Ostudent.h.

Referenced by calc_degree_awarded(), and scandal_in_athletics().

int StudentArray::cur_master_degree
 

Definition at line 336 of file Ostudent.h.

Referenced by calc_degree_awarded(), and update_history().

int StudentArray::department_recno
 

Definition at line 243 of file Ostudent.h.

int StudentArray::doctor_degree[HISTORY_YEAR_COUNT]
 

Definition at line 325 of file Ostudent.h.

Referenced by calc_degree_awarded(), and PlayerSchool::summary_student_report_3().

float StudentArray::dropout_rate[DEGREE_TYPE_COUNT][HISTORY_YEAR_COUNT]
 

Definition at line 314 of file Ostudent.h.

Referenced by calc_degree_awarded(), and PlayerSchool::summary_student_report_3().

float StudentArray::fake_disp_time_to_degree[DEGREE_TYPE_COUNT][HISTORY_YEAR_COUNT]
 

Definition at line 317 of file Ostudent.h.

Referenced by calc_degree_awarded(), and PlayerSchool::summary_student_report_3().

int StudentArray::master_degree[HISTORY_YEAR_COUNT]
 

Definition at line 324 of file Ostudent.h.

Referenced by calc_degree_awarded(), and PlayerSchool::summary_student_report_3().

char StudentArray::performance_academic_ug[HISTORY_MONTH_COUNT]
 

Definition at line 299 of file Ostudent.h.

Referenced by PlayerSchool::summary_student_report_3().

char StudentArray::satisfaction_academic[HISTORY_MONTH_COUNT]
 

Definition at line 306 of file Ostudent.h.

char StudentArray::satisfaction_athletics[HISTORY_MONTH_COUNT]
 

Definition at line 308 of file Ostudent.h.

char StudentArray::satisfaction_overall[HISTORY_MONTH_COUNT]
 

Definition at line 310 of file Ostudent.h.

char StudentArray::satisfaction_student_life[HISTORY_MONTH_COUNT]
 

Definition at line 307 of file Ostudent.h.

int StudentArray::student_count
 

Definition at line 244 of file Ostudent.h.

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

char StudentArray::talent_academic[HISTORY_MONTH_COUNT]
 

Definition at line 302 of file Ostudent.h.

char StudentArray::talent_academic_all[DEGREE_TYPE_COUNT][HISTORY_MONTH_COUNT]
 

Definition at line 298 of file Ostudent.h.

Referenced by PlayerSchool::summary_student_report_3().

char StudentArray::talent_athletics[HISTORY_MONTH_COUNT]
 

Definition at line 304 of file Ostudent.h.

char StudentArray::talent_extracurricular[HISTORY_MONTH_COUNT]
 

Definition at line 303 of file Ostudent.h.

float StudentArray::time_to_degree[DEGREE_TYPE_COUNT][HISTORY_YEAR_COUNT]
 

Definition at line 313 of file Ostudent.h.

Referenced by calc_degree_awarded(), PlayerSchool::summary_student_report_3(), and update_history().

int StudentArray::time_to_degree_cumm[DEGREE_TYPE_COUNT]
 

Definition at line 328 of file Ostudent.h.

Referenced by calc_degree_awarded().


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