Back to index

fet  5.18.0
Variables
timetableexport.cpp File Reference
#include "timetable_defs.h"
#include "timetable.h"
#include "timetableexport.h"
#include "solution.h"
#include "matrix.h"
#include <iostream>
#include <fstream>
#include <QString>
#include <QTextStream>
#include <QFile>
#include <QList>
#include <QHash>
#include <QDesktopWidget>
#include <QMessageBox>
#include <QLocale>
#include <QTime>
#include <QDate>
#include <QDir>

Go to the source code of this file.

Variables

bool simulation_running
bool students_schedule_ready
bool teachers_schedule_ready
bool rooms_schedule_ready
Solution best_solution
bool LANGUAGE_STYLE_RIGHT_TO_LEFT
QString LANGUAGE_FOR_HTML
Timetable gt
 The one and only instantiation of the main class.
Matrix3D< qint16 > teachers_timetable_weekly
Matrix3D< qint16 > students_timetable_weekly
Matrix3D< qint16 > rooms_timetable_weekly
Matrix3D< QList< qint16 > > teachers_free_periods_timetable_weekly
Matrix2D< bool > breakDayHour
Matrix3D< bool > teacherNotAvailableDayHour
Matrix2D< double > notAllowedRoomTimePercentages
Matrix3D< bool > subgroupNotAvailableDayHour
static QList< int > activitiesForCurrentSubject [MAX_DAYS_PER_WEEK][MAX_HOURS_PER_DAY]
static QList< int > activitiesAtTime [MAX_DAYS_PER_WEEK][MAX_HOURS_PER_DAY]
Rules rules2
const QString STRING_EMPTY_SLOT = "---"
const QString STRING_SEVERAL_ACTIVITIES_IN_LESS_DETAILED_TABLES = "???"
const QString STRING_NOT_AVAILABLE_TIME_SLOT = "-x-"
const QString STRING_BREAK_SLOT = "-X-"
static QHash< QString, QString > hashSubjectIDsTimetable
static QHash< QString, QString > hashActivityTagIDsTimetable
static QHash< QString, QString > hashStudentIDsTimetable
static QHash< QString, QString > hashTeacherIDsTimetable
static QHash< QString, QString > hashRoomIDsTimetable
static QHash< QString, QString > hashDayIDsTimetable
static QHash< int, QList< int > > activitiesWithSameStartingTime
const QString SUBGROUPS_TIMETABLE_FILENAME_XML = "subgroups.xml"
const QString TEACHERS_TIMETABLE_FILENAME_XML = "teachers.xml"
const QString ACTIVITIES_TIMETABLE_FILENAME_XML = "activities.xml"
const QString ROOMS_TIMETABLE_FILENAME_XML = "rooms.xml"
const QString CONFLICTS_FILENAME = "soft_conflicts.txt"
const QString INDEX_HTML = "index.html"
const QString STYLESHEET_CSS = "stylesheet.css"
const QString SUBGROUPS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "subgroups_days_horizontal.html"
const QString SUBGROUPS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "subgroups_days_vertical.html"
const QString SUBGROUPS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "subgroups_time_horizontal.html"
const QString SUBGROUPS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "subgroups_time_vertical.html"
const QString GROUPS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "groups_days_horizontal.html"
const QString GROUPS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "groups_days_vertical.html"
const QString GROUPS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "groups_time_horizontal.html"
const QString GROUPS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "groups_time_vertical.html"
const QString YEARS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "years_days_horizontal.html"
const QString YEARS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "years_days_vertical.html"
const QString YEARS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "years_time_horizontal.html"
const QString YEARS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "years_time_vertical.html"
const QString TEACHERS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "teachers_days_horizontal.html"
const QString TEACHERS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "teachers_days_vertical.html"
const QString TEACHERS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "teachers_time_horizontal.html"
const QString TEACHERS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "teachers_time_vertical.html"
const QString ROOMS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "rooms_days_horizontal.html"
const QString ROOMS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "rooms_days_vertical.html"
const QString ROOMS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "rooms_time_horizontal.html"
const QString ROOMS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "rooms_time_vertical.html"
const QString SUBJECTS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "subjects_days_horizontal.html"
const QString SUBJECTS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "subjects_days_vertical.html"
const QString SUBJECTS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "subjects_time_horizontal.html"
const QString SUBJECTS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "subjects_time_vertical.html"
const QString ALL_ACTIVITIES_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "activities_days_horizontal.html"
const QString ALL_ACTIVITIES_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "activities_days_vertical.html"
const QString ALL_ACTIVITIES_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "activities_time_horizontal.html"
const QString ALL_ACTIVITIES_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "activities_time_vertical.html"
const QString TEACHERS_FREE_PERIODS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "teachers_free_periods_days_horizontal.html"
const QString TEACHERS_FREE_PERIODS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "teachers_free_periods_days_vertical.html"
const QString MULTIPLE_TIMETABLE_DATA_RESULTS_FILE = "data_and_timetable.fet"
const QString STUDENTS_TIMETABLE_TAG = "Students_Timetable"
const QString TEACHERS_TIMETABLE_TAG = "Teachers_Timetable"
const QString ACTIVITIES_TIMETABLE_TAG = "Activities_Timetable"
const QString ROOMS_TIMETABLE_TAG = "Rooms_Timetable"
const QString RANDOM_SEED_FILENAME_BEFORE = "random_seed_before.txt"
const QString RANDOM_SEED_FILENAME_AFTER = "random_seed_after.txt"
int XX
int YY
QString generationLocalizedTime = QString("")

Variable Documentation

const QString ACTIVITIES_TIMETABLE_FILENAME_XML = "activities.xml"

Definition at line 134 of file timetableexport.cpp.

const QString ACTIVITIES_TIMETABLE_TAG = "Activities_Timetable"

Definition at line 184 of file timetableexport.cpp.

Definition at line 108 of file timetableexport.cpp.

Definition at line 106 of file timetableexport.cpp.

QHash<int, QList<int> > activitiesWithSameStartingTime [static]

Definition at line 129 of file timetableexport.cpp.

const QString ALL_ACTIVITIES_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "activities_days_horizontal.html"

Definition at line 171 of file timetableexport.cpp.

const QString ALL_ACTIVITIES_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "activities_days_vertical.html"

Definition at line 172 of file timetableexport.cpp.

const QString ALL_ACTIVITIES_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "activities_time_horizontal.html"

Definition at line 173 of file timetableexport.cpp.

const QString ALL_ACTIVITIES_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "activities_time_vertical.html"

Definition at line 174 of file timetableexport.cpp.

Definition at line 246 of file fetmainform.cpp.

Definition at line 92 of file generate_pre.cpp.

const QString CONFLICTS_FILENAME = "soft_conflicts.txt"

Definition at line 137 of file timetableexport.cpp.

QString generationLocalizedTime = QString("")

Definition at line 193 of file timetableexport.cpp.

const QString GROUPS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "groups_days_horizontal.html"

Definition at line 146 of file timetableexport.cpp.

const QString GROUPS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "groups_days_vertical.html"

Definition at line 147 of file timetableexport.cpp.

const QString GROUPS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "groups_time_horizontal.html"

Definition at line 148 of file timetableexport.cpp.

const QString GROUPS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "groups_time_vertical.html"

Definition at line 149 of file timetableexport.cpp.

The one and only instantiation of the main class.

Definition at line 99 of file fet.cpp.

QHash<QString, QString> hashActivityTagIDsTimetable [static]

Definition at line 122 of file timetableexport.cpp.

QHash<QString, QString> hashDayIDsTimetable [static]

Definition at line 126 of file timetableexport.cpp.

QHash<QString, QString> hashRoomIDsTimetable [static]

Definition at line 125 of file timetableexport.cpp.

QHash<QString, QString> hashStudentIDsTimetable [static]

Definition at line 123 of file timetableexport.cpp.

QHash<QString, QString> hashSubjectIDsTimetable [static]

Definition at line 121 of file timetableexport.cpp.

QHash<QString, QString> hashTeacherIDsTimetable [static]

Definition at line 124 of file timetableexport.cpp.

const QString INDEX_HTML = "index.html"

Definition at line 138 of file timetableexport.cpp.

Definition at line 54 of file timetable_defs.cpp.

Definition at line 52 of file timetable_defs.cpp.

const QString MULTIPLE_TIMETABLE_DATA_RESULTS_FILE = "data_and_timetable.fet"

Definition at line 179 of file timetableexport.cpp.

Definition at line 295 of file generate_pre.cpp.

const QString RANDOM_SEED_FILENAME_AFTER = "random_seed_after.txt"

Definition at line 188 of file timetableexport.cpp.

const QString RANDOM_SEED_FILENAME_BEFORE = "random_seed_before.txt"

Definition at line 187 of file timetableexport.cpp.

Definition at line 244 of file fetmainform.cpp.

const QString ROOMS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "rooms_days_horizontal.html"

Definition at line 161 of file timetableexport.cpp.

const QString ROOMS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "rooms_days_vertical.html"

Definition at line 162 of file timetableexport.cpp.

const QString ROOMS_TIMETABLE_FILENAME_XML = "rooms.xml"

Definition at line 135 of file timetableexport.cpp.

const QString ROOMS_TIMETABLE_TAG = "Rooms_Timetable"

Definition at line 185 of file timetableexport.cpp.

const QString ROOMS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "rooms_time_horizontal.html"

Definition at line 163 of file timetableexport.cpp.

const QString ROOMS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "rooms_time_vertical.html"

Definition at line 164 of file timetableexport.cpp.

Definition at line 126 of file fet.cpp.

Definition at line 253 of file fetmainform.cpp.

Definition at line 238 of file fetmainform.cpp.

const QString STRING_BREAK_SLOT = "-X-"

Definition at line 118 of file timetableexport.cpp.

const QString STRING_EMPTY_SLOT = "---"

Definition at line 112 of file timetableexport.cpp.

const QString STRING_NOT_AVAILABLE_TIME_SLOT = "-x-"

Definition at line 116 of file timetableexport.cpp.

Definition at line 114 of file timetableexport.cpp.

Definition at line 242 of file fetmainform.cpp.

const QString STUDENTS_TIMETABLE_TAG = "Students_Timetable"

Definition at line 182 of file timetableexport.cpp.

Definition at line 125 of file fet.cpp.

const QString STYLESHEET_CSS = "stylesheet.css"

Definition at line 139 of file timetableexport.cpp.

Definition at line 95 of file generate_pre.cpp.

const QString SUBGROUPS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "subgroups_days_horizontal.html"

Definition at line 141 of file timetableexport.cpp.

const QString SUBGROUPS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "subgroups_days_vertical.html"

Definition at line 142 of file timetableexport.cpp.

const QString SUBGROUPS_TIMETABLE_FILENAME_XML = "subgroups.xml"

Definition at line 132 of file timetableexport.cpp.

const QString SUBGROUPS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "subgroups_time_horizontal.html"

Definition at line 143 of file timetableexport.cpp.

const QString SUBGROUPS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "subgroups_time_vertical.html"

Definition at line 144 of file timetableexport.cpp.

const QString SUBJECTS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "subjects_days_horizontal.html"

Definition at line 166 of file timetableexport.cpp.

const QString SUBJECTS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "subjects_days_vertical.html"

Definition at line 167 of file timetableexport.cpp.

const QString SUBJECTS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "subjects_time_horizontal.html"

Definition at line 168 of file timetableexport.cpp.

const QString SUBJECTS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "subjects_time_vertical.html"

Definition at line 169 of file timetableexport.cpp.

Definition at line 98 of file generate_pre.cpp.

const QString TEACHERS_FREE_PERIODS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "teachers_free_periods_days_horizontal.html"

Definition at line 176 of file timetableexport.cpp.

const QString TEACHERS_FREE_PERIODS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "teachers_free_periods_days_vertical.html"

Definition at line 177 of file timetableexport.cpp.

Definition at line 128 of file fet.cpp.

Definition at line 243 of file fetmainform.cpp.

const QString TEACHERS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "teachers_days_horizontal.html"

Definition at line 156 of file timetableexport.cpp.

const QString TEACHERS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "teachers_days_vertical.html"

Definition at line 157 of file timetableexport.cpp.

const QString TEACHERS_TIMETABLE_FILENAME_XML = "teachers.xml"

Definition at line 133 of file timetableexport.cpp.

const QString TEACHERS_TIMETABLE_TAG = "Teachers_Timetable"

Definition at line 183 of file timetableexport.cpp.

const QString TEACHERS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "teachers_time_horizontal.html"

Definition at line 158 of file timetableexport.cpp.

const QString TEACHERS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "teachers_time_vertical.html"

Definition at line 159 of file timetableexport.cpp.

Definition at line 124 of file fet.cpp.

int XX

Definition at line 195 of file timetable_defs.cpp.

const QString YEARS_TIMETABLE_DAYS_HORIZONTAL_FILENAME_HTML = "years_days_horizontal.html"

Definition at line 151 of file timetableexport.cpp.

const QString YEARS_TIMETABLE_DAYS_VERTICAL_FILENAME_HTML = "years_days_vertical.html"

Definition at line 152 of file timetableexport.cpp.

const QString YEARS_TIMETABLE_TIME_HORIZONTAL_FILENAME_HTML = "years_time_horizontal.html"

Definition at line 153 of file timetableexport.cpp.

const QString YEARS_TIMETABLE_TIME_VERTICAL_FILENAME_HTML = "years_time_vertical.html"

Definition at line 154 of file timetableexport.cpp.

int YY

Definition at line 196 of file timetable_defs.cpp.