123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- #ifndef SCHEMEPLANMANAGER_H
- #define SCHEMEPLANMANAGER_H
- #include <QObject>
- class SchemePlanManager : public QObject
- {
- Q_OBJECT
- public:
-
- enum SchemeProcessType
- {
- IndexSystem,
- ImportWeightData,
- OptimizeIndex,
- CalculateWeight,
- ImportEvalData,
- RunEvaluate,
- ShowEvalResult,
- GenerateReport,
- };
-
- enum SchemeDataSource
- {
- NoData = -1,
- FromExpert,
- FromMeasurement,
- FromScheme,
- };
- static QString stringFromDataSource(SchemeDataSource src);
-
- enum Algorithm
- {
- NoAlg = -1,
- PrincipalComponents,
- Entropy,
- AHP,
- HWM,
- SPA,
- MEA,
- GCE,
- WeightedSum,
- };
- static QString stringFromAlgorithm(Algorithm alg);
-
- enum AlgorithmCategory
- {
- NoCategory = -1,
- };
-
- struct AlgorithmInfo
- {
- Algorithm alg = NoAlg;
- AlgorithmCategory category = NoCategory;
- };
- enum IndexCostType
- {
- IndexCostTypeBenefit,
- IndexCostTypeCost,
- };
- Q_ENUM(IndexCostType)
- static QString stringFromIndexCostType(IndexCostType t);
-
- struct SchemeProcessInfo
- {
- int id = -1;
- int projectId = -1;
- int indexType;
- int step;
- SchemeProcessType type;
-
-
- SchemeDataSource dSource = NoData;
-
-
- Algorithm algorithm = NoAlg;
-
- int efficiencyGrades = 3;
- bool isChecked = false;
- QString createTime;
- QString updateTime;
- };
-
- static QString processName(const SchemeProcessInfo &process);
- static QString processDescription(const SchemeProcessInfo &process);
-
- static QList<SchemeDataSource> processOptionalDataSource(const SchemeProcessInfo &process);
-
- static QList<Algorithm> processOptionalAlgorithms(const SchemeProcessInfo &process);
-
- static bool processIsOptional(const SchemeProcessInfo &process);
- explicit SchemePlanManager(QObject *parent = nullptr);
- signals:
- };
- #endif
|