Back to index

fet  5.18.0
Public Member Functions | Public Attributes
StudentsGroup Class Reference

#include <studentsset.h>

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

List of all members.

Public Member Functions

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

Public Attributes

StudentsSubgroupsList subgroupsList
int indexInInternalGroupsList
QString name
int numberOfStudents
int type

Detailed Description

Definition at line 80 of file studentsset.h.


Constructor & Destructor Documentation

Definition at line 135 of file studentsset.cpp.

Definition at line 143 of file studentsset.cpp.

{
       /*while(!subgroupsList.isEmpty()){
              StudentsSubgroup* s=subgroupsList[0];
              
              foreach(StudentsYear* year, gt.rules.yearsList)
                     foreach(StudentsGroup* group, year->groupsList)
                            if(group!=this)
                                   for(int i=0; i<group->subgroupsList.size(); i++)
                                          if(group->subgroupsList[i]==s){
                                                 cout<<"making NULL group->subgroupsList[i]->name=="<<qPrintable(group->subgroupsList[i]->name)<<endl;
                                                 group->subgroupsList[i]=NULL;
                                          }
                                          else
                                                 cout<<"ignoring group->subgroupsList[i]->name=="<<qPrintable(group->subgroupsList[i]->name)<<endl;
       
              if(s!=NULL){
                     assert(subgroupsList[0]!=NULL);
                     delete subgroupsList.takeFirst();
              }
              else
                     subgroupsList.removeFirst();
       }*/
}

Member Function Documentation

Definition at line 183 of file studentsset.cpp.

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

       return s;
}

Definition at line 193 of file studentsset.cpp.

{
       QString s="";
       s+=tr("Students set - group");
       s+="\n";
       s+=tr("Group 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 206 of file studentsset.cpp.

{
       QString s=this->getDetailedDescription();

       s+="--------------------------------------------------\n";
       s+=tr("Time constraints directly related to this students group:");
       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 group:");
       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 168 of file studentsset.cpp.

{
       QString s="";
       s+="   <Group>\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->subgroupsList.size(); i++){
              StudentsSubgroup* sts=this->subgroupsList[i];
              s+=sts->getXmlDescription();
       }
       s+="   </Group>\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 87 of file studentsset.h.

QString StudentsSet::name [inherited]

Definition at line 54 of file studentsset.h.

Definition at line 55 of file studentsset.h.

Definition at line 85 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: