Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
data.h
1/*
2** Copyright 2007-2024, RTE (https://www.rte-france.com)
3** See AUTHORS.txt
4** SPDX-License-Identifier: MPL-2.0
5** This file is part of Antares-Simulator,
6** Adequacy and Performance assessment for interconnected energy networks.
7**
8** Antares_Simulator is free software: you can redistribute it and/or modify
9** it under the terms of the Mozilla Public Licence 2.0 as published by
10** the Mozilla Foundation, either version 2 of the License, or
11** (at your option) any later version.
12**
13** Antares_Simulator is distributed in the hope that it will be useful,
14** but WITHOUT ANY WARRANTY; without even the implied warranty of
15** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16** Mozilla Public Licence 2.0 for more details.
17**
18** You should have received a copy of the Mozilla Public Licence 2.0
19** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20*/
21#ifndef __SOLVER_VARIABLE_SURVEY_RESULTS_DATA_H__
22#define __SOLVER_VARIABLE_SURVEY_RESULTS_DATA_H__
23
24#include <yuni/yuni.h>
25#include <yuni/core/string.h>
26
27#include <antares/study/study.h>
28#include <antares/writer/i_writer.h>
29#include "antares/antares/constants.h"
30
31namespace Antares
32{
33namespace Solver
34{
35namespace Variable
36{
37namespace Private
38{
40{
41public:
43
44 SurveyResultsData(const Data::Study& s, const Yuni::String& o);
46
47 void initialize(unsigned int maxVariables);
48
55 void exportGridInfos(IResultWriter& writer);
56
57public:
59 unsigned int columnIndex;
60
61 // Output variable non applicable :
62 // Column indices related to non applicable output variables
63 // Useful to print "N/A" in output files for these variables
64 std::vector<unsigned int> nonApplicableColIdx;
65
73 unsigned int setOfAreasIndex;
74
78 unsigned int nbYears;
80 unsigned int effectiveNbYears;
81
83 Yuni::String output;
85 Yuni::String filename;
87 const Yuni::String& originalOutput;
88
90 Yuni::String::Vector rowCaptions;
91
94
95 unsigned int rowIndex;
96
97 Yuni::Clob fileBuffer;
98
99}; // class SurveyResultsData
100
104void InternalExportDigestLinksMatrix(const Data::Study& study,
105 const char* title,
106 std::string& fileBuffer,
107 const Matrix<>& matrix);
108} // namespace Private
109} // namespace Variable
110} // namespace Solver
111} // namespace Antares
112
113#endif // __SOLVER_VARIABLE_SURVEY_RESULTS_DATA_H__
Definition for a single area.
Definition area.h:52
Definition study.h:61
A single thermal cluster.
Definition cluster.h:78
A n-by-n matrix.
Definition jit.h:30
Definition i_writer.h:34
unsigned int nbYears
The number of MC years.
Definition data.h:78
void exportGridInfos(IResultWriter &writer)
Export informations about the current study.
Definition surveyresults.cpp:217
const Data::ThermalCluster * thermalCluster
Current thermal cluster.
Definition data.h:67
unsigned int columnIndex
The current column index.
Definition data.h:59
unsigned int effectiveNbYears
The effective number of MC years (user's playlist)
Definition data.h:80
const Data::Study & study
The current study.
Definition data.h:76
const Data::AreaLink * link
Current link.
Definition data.h:71
unsigned int setOfAreasIndex
The index for the current set of areas.
Definition data.h:73
Matrix< double, double > matrix
A multi-purposes matrix (mainly used for the digest)
Definition data.h:93
Yuni::String output
The folder output where to write the results.
Definition data.h:83
Yuni::String::Vector rowCaptions
Captions for rows.
Definition data.h:90
const Data::Area * area
Current area.
Definition data.h:69
Yuni::String filename
The filename to use for the current report.
Definition data.h:85
Definition variable.h:25