Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
endoflist.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_END_OF_LIST_END_OF_LIST_H__
22#define __SOLVER_END_OF_LIST_END_OF_LIST_H__
23
24#include <yuni/yuni.h>
25
26#include <antares/study/study.h>
27
28#include "state.h"
29#include "surveyresults.h"
30
31// To remove warnings (unused variable) at compile time on linux
32#define UNUSED_VARIABLE(x) (void)(x)
33
34namespace Antares
35{
36namespace Solver
37{
38namespace Variable
39{
40namespace Container
41{
43{
44public:
46 typedef void NextType;
47
48 enum
49 {
51 count = 0,
52 };
53
54 template<int CategoryDataLevel, int CategoryFile>
56 {
57 enum
58 {
59 count = 0
60 };
61 };
62
63public:
69 template<class PredicateT>
70 static void RetrieveVariableList(PredicateT&)
71 {
72 }
73
74public:
76
77 EndOfList()
78 {
79 }
80
81 ~EndOfList()
82 {
83 }
84
86
87 static void initializeFromStudy([[maybe_unused]] Data::Study& study)
88 {
89 }
90
91 static void initializeFromArea(Data::Study*, Data::Area*)
92 {
93 }
94
95 static void initializeFromThermalCluster(Data::Study*, Data::Area*, Data::ThermalCluster*)
96 {
97 }
98
99 static void initializeFromAreaLink(Data::Study*, Data::AreaLink*)
100 {
101 }
102
103 void broadcastNonApplicability(bool)
104 {
105 }
106
107 void getPrintStatusFromStudy([[maybe_unused]] Data::Study& study)
108 {
109 }
110
111 void supplyMaxNumberOfColumns([[maybe_unused]] Data::Study& study)
112 {
113 }
114
115 static void simulationBegin()
116 {
117 }
118
119 static void simulationEnd()
120 {
121 }
122
123 static void yearBegin(unsigned int, unsigned int)
124 {
125 }
126
127 static void yearEndBuildPrepareDataForEachThermalCluster(State& state, uint year, uint numSpace)
128 {
129 UNUSED_VARIABLE(state);
130 UNUSED_VARIABLE(year);
131 UNUSED_VARIABLE(numSpace);
132 }
133
134 static void yearEndBuildForEachThermalCluster(State& state, uint year, uint numSpace)
135 {
136 UNUSED_VARIABLE(state);
137 UNUSED_VARIABLE(year);
138 UNUSED_VARIABLE(numSpace);
139 }
140
141 static void yearEndBuild(State&, unsigned int, unsigned int)
142 {
143 }
144
145 static void yearEnd(unsigned int, unsigned int)
146 {
147 }
148
149 static void computeSummary(std::map<unsigned int, unsigned int>& numSpaceToYear,
150 uint nbYearsForCurrentSummary)
151 {
152 UNUSED_VARIABLE(numSpaceToYear);
153 UNUSED_VARIABLE(nbYearsForCurrentSummary);
154 }
155
156 template<class V>
157 void yearEndSpatialAggregates(V&, unsigned int, uint)
158 {
159 }
160
161 template<class V, class SetT>
162 void yearEndSpatialAggregates(V&, unsigned int, const SetT&, uint numSpace)
163 {
164 UNUSED_VARIABLE(numSpace);
165 }
166
167 template<class V>
168 static void computeSpatialAggregatesSummary(V&,
169 std::map<unsigned int, unsigned int>&,
170 unsigned int)
171 {
172 }
173
174 template<class V>
175 static void simulationEndSpatialAggregates(V&)
176 {
177 }
178
179 template<class V, class SetT>
180 void simulationEndSpatialAggregates(V&, const SetT&)
181 {
182 }
183
184 static void weekBegin(State&)
185 {
186 }
187
188 static void weekForEachArea(State&, uint numSpace)
189 {
190 UNUSED_VARIABLE(numSpace);
191 }
192
193 static void weekEnd(State&)
194 {
195 }
196
197 static void hourBegin(unsigned int)
198 {
199 }
200
201 static void hourForEachArea(State&, uint numSpace)
202 {
203 UNUSED_VARIABLE(numSpace);
204 }
205
206 static void hourForEachLink(State&, uint numSpace)
207 {
208 UNUSED_VARIABLE(numSpace);
209 }
210
211 static void hourEnd(State&, unsigned int)
212 {
213 }
214
215 static void buildSurveyReport(SurveyResults&, int, int, int)
216 {
217 }
218
219 static void buildAnnualSurveyReport(SurveyResults&, int, int, int, uint)
220 {
221 }
222
223 static void buildDigest(SurveyResults&, int, int)
224 {
225 }
226
227 static void beforeYearByYearExport(uint /*year*/, uint)
228 {
229 }
230
231 template<class I>
232 static void provideInformations(I&)
233 {
234 }
235
236 template<class SearchVCardT, class O>
237 static void computeSpatialAggregateWith(O&)
238 {
239 assert(false);
240 }
241
242 template<class SearchVCardT, class O>
243 static void computeSpatialAggregateWith(O&, const Data::Area*)
244 {
245 assert(false);
246 }
247
248 template<class SearchVCardT, class O>
249 static void computeSpatialAggregateWith(O&, const Data::Area*, uint numSpace)
250 {
251 UNUSED_VARIABLE(numSpace);
252 }
253
254 template<class VCardToFindT>
255 const double* retrieveHourlyResultsForCurrentYear(uint) const
256 {
257 return nullptr;
258 }
259
260 template<class VCardToFindT, class O>
261 static void retrieveResultsForArea(O** /*result*/, const Data::Area*)
262 {
263 // Does nothing - this method may be called from a leaf
264 // Consequently we can not throw an error from here if the variable `result`
265 // is not initialized.
266 }
267
268 template<class VCardToFindT, class O>
269 static void retrieveResultsForThermalCluster(O** /*result*/, const Data::ThermalCluster*)
270 {
271 // Does nothing - this method may be called from a leaf
272 // Consequently we can not throw an error from here if the variable `result`
273 // is not initialized.
274 }
275
276 template<class VCardToFindT, class O>
277 static void retrieveResultsForLink(O** /*result*/, const Data::AreaLink*)
278 {
279 // Does nothing - this method may be called from a leaf
280 // Consequently we can not throw an error from here if the variable `result`
281 // is not initialized.
282 }
283
284 void localBuildAnnualSurveyReport(SurveyResults&, int, int, unsigned int) const
285 {
286 // Does nothing
287 }
288
289}; // class EndOfList
290
291} // namespace Container
292} // namespace Variable
293} // namespace Solver
294} // namespace Antares
295
296#endif // __SOLVER_END_OF_LIST_END_OF_LIST_H__
Definition for a single area.
Definition area.h:52
Definition study.h:61
A single thermal cluster.
Definition cluster.h:78
@ count
How many items have we got.
Definition endoflist.h:51
static void RetrieveVariableList(PredicateT &)
Retrieve the list of all individual variables.
Definition endoflist.h:70
void NextType
Type of the next static variable.
Definition endoflist.h:46
Definition cbuilder.h:120
Definition variable.h:25