Files
DEC/DEC_GUI/Agressor/aphistory.h
2024-10-03 18:43:04 +07:00

30 lines
1.3 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef APHISTORY_H
#define APHISTORY_H
#include <QList>
class APHistory
{
public:
APHistory();
void addClassHistory ();
void addClassGroupHistory();
void addAvContenmentData(int iModel, qreal avContenmentData); // Добавление данных о модели с номером iModel
void addGroupAvContenmentData(int iModel, QVector<qreal> avContenmentData);
void postPrintModelData(int iModel); // Вывод в файл всех данных по модели с номером iModel
void postPrintGroupData(int iModel);
void postPrintGlobalAverage();
void printCurrentContentmentData(int iModel); // Вывод в файл последних данных по модели с номером iModel
void printCurrentContentmentGroupData(int iModel);
QList<qreal> getHistory(int iModel);
QList<qreal> getGroupHistory(int iModel, int iGroup);
QList<qreal> getAverageForAllModels();
QList<qreal> getAverageForGroup(int group);
void clearHistory();
private:
QList<QList<qreal> > avContenmentHistory; // Хранитель данных о ср.неудовлетворённости
QList<QVector<QList<qreal> > > groupAvContenmentHistoty;
};
#endif // APHISTORY_H