29 lines
815 B
C++
29 lines
815 B
C++
|
|
#ifndef STFINSTANCEINFOSTATSV2_HPP
|
||
|
|
#define STFINSTANCEINFOSTATSV2_HPP
|
||
|
|
#include <map>
|
||
|
|
#include <string>
|
||
|
|
#include <nlohmann/json.hpp>
|
||
|
|
#include "ExclusionInfo.hpp"
|
||
|
|
|
||
|
|
namespace modellib {
|
||
|
|
|
||
|
|
class PlanificationStats {
|
||
|
|
private:
|
||
|
|
std::vector<ExclusionInfo> m_reasons;
|
||
|
|
public:
|
||
|
|
unsigned int nbRames;
|
||
|
|
unsigned int nbSites;
|
||
|
|
unsigned int nbVoies;
|
||
|
|
std::unordered_map<unsigned int, unsigned int> mapOpPlan;
|
||
|
|
std::unordered_map<unsigned int, unsigned int> mapOpExcluAmont;
|
||
|
|
std::unordered_map<unsigned int, unsigned int> mapOpExcluAval;
|
||
|
|
std::unordered_map<unsigned int, unsigned int> mapOpDiag;
|
||
|
|
|
||
|
|
PlanificationStats() = default;
|
||
|
|
|
||
|
|
std::vector<ExclusionInfo> &getReasons() { return m_reasons; };
|
||
|
|
|
||
|
|
nlohmann::json to_json();
|
||
|
|
};
|
||
|
|
}
|
||
|
|
#endif
|