Back to index

fet  5.18.0
Public Member Functions | Public Attributes
StudentsYear Class Reference

#include <studentsset.h>

Inheritance diagram for StudentsYear:
Inheritance graph
[legend]
Collaboration diagram for StudentsYear:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StudentsYear ()
 ~StudentsYear ()
QString getXmlDescription ()
QString getDescription ()
QString getDetailedDescription ()
QString getDetailedDescriptionWithConstraints (Rules &r)

Public Attributes

StudentsGroupsList groupsList
int indexInAugmentedYearsList
QString name
int numberOfStudents
int type

Detailed Description

Definition at line 62 of file studentsset.h.


Constructor & Destructor Documentation

Definition at line 37 of file studentsset.cpp.

Definition at line 45 of file studentsset.cpp.

{
       //it is possible that the removed group to be in another year

       /*while(!groupsList.isEmpty()){
              StudentsGroup* g=groupsList[0];
              
              foreach(StudentsYear* year, gt.rules.yearsList)
                     if(year!=this)
                            for(int i=0; i<year->groupsList.size(); i++)
                                   if(year->groupsList[i]==g)
                                          year->groupsList[i]=NULL;
       
              if(g!=NULL){
                     delete groupsList.takeFirst();
              }
              else
                     groupsList.removeFirst();
       }*/
}

Member Function Documentation

Definition at line 81 of file studentsset.cpp.

{
       QString s;
       s+=tr("YN:%1", "Year name").arg(this->name);
       s+=", ";
       s+=tr("NoS:%1", "Number of students").arg(this->numberOfStudents);

       return s;
}

Definition at line 91 of file studentsset.cpp.

{
       QString s="";
       s+=tr("Students set - year");
       s+="\n";
       s+=tr("Year name=%1").arg(this->name);
       s+="\n";
       s+=tr("Number of students=%1").arg(this->numberOfStudents);
       s+="\n";

       return s;
}

Here is the caller graph for this function:

Definition at line 104 of file studentsset.cpp.

{
       QString s=this->getDetailedDescription();

       s+="--------------------------------------------------\n";
       s+=tr("Time constraints directly related to this students year:");
       s+="\n";
       for(int i=0; i<r.timeConstraintsList.size(); i++){
              TimeConstraint* c=r.timeConstraintsList[i];
              if(c->isRelatedToStudentsSet(r, this)){
                     s+="\n";
                     s+=c->getDetailedDescription(r);
              }
       }

       s+="--------------------------------------------------\n";
       s+=tr("Space constraints directly related to this students year:");
       s+="\n";
       for(int i=0; i<r.spaceConstraintsList.size(); i++){
              SpaceConstraint* c=r.spaceConstraintsList[i];
              if(c->isRelatedToStudentsSet(r, this)){
                     s+="\n";
                     s+=c->getDetailedDescription(r);
              }
       }
       s+="--------------------------------------------------\n";

       return s;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 66 of file studentsset.cpp.

{
       QString s="";
       s+="<Year>\n";
       s+="<Name>"+protect(this->name)+"</Name>\n";
       s+="<Number_of_Students>"+CustomFETString::number(this->numberOfStudents)+"</Number_of_Students>\n";
       for(int i=0; i<this->groupsList.size(); i++){
              StudentsGroup* stg=this->groupsList[i];
              s+=stg->getXmlDescription();
       }
       s+="</Year>\n";

       return s;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 67 of file studentsset.h.

Definition at line 69 of file studentsset.h.

QString StudentsSet::name [inherited]

Definition at line 54 of file studentsset.h.

Definition at line 55 of file studentsset.h.

int StudentsSet::type [inherited]

Definition at line 56 of file studentsset.h.


The documentation for this class was generated from the following files: