Back to index

fet  5.18.0
Public Member Functions | Public Attributes
StudentsSubgroup Class Reference

#include <studentsset.h>

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

List of all members.

Public Member Functions

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

Public Attributes

int indexInInternalSubgroupsList
QList< qint16 > activitiesForSubgroup
QString name
int numberOfStudents
int type

Detailed Description

Definition at line 98 of file studentsset.h.


Constructor & Destructor Documentation

Definition at line 237 of file studentsset.cpp.

Definition at line 245 of file studentsset.cpp.

{
}

Member Function Documentation

Definition at line 260 of file studentsset.cpp.

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

       return s;
}

Definition at line 270 of file studentsset.cpp.

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

{
       QString s=this->getDetailedDescription();

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

{
       QString s="";
       s+="          <Subgroup>\n";
       s+="          <Name>"+protect(this->name)+"</Name>\n";
       s+="          <Number_of_Students>"+CustomFETString::number(this->numberOfStudents)+"</Number_of_Students>\n";
       s+="          </Subgroup>\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 105 of file studentsset.h.

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