Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
results.hxx
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_STORAGE_RESULTS_HXX__
22#define __SOLVER_VARIABLE_STORAGE_RESULTS_HXX__
23
24namespace Antares
25{
26namespace Solver
27{
28namespace Variable
29{
30template<class FirstDecoratorT, template<class, int> class DecoratorForSpatialAggregateT>
33{
34 DecoratorType::initializeFromStudy(study);
35}
36
37template<class FirstDecoratorT, template<class, int> class DecoratorForSpatialAggregateT>
38template<class S, class VCardT>
40 SurveyResults& report,
41 const S& results,
42 int dataLevel,
43 int fileLevel,
44 int precision) const
45{
46 // Ask to fullfil the report to the first decorator
47 DecoratorType::template buildSurveyReport<S, VCardT>(report,
48 results,
49 dataLevel,
50 fileLevel,
51 precision);
52}
53
54template<class FirstDecoratorT, template<class, int> class DecoratorForSpatialAggregateT>
56 uint year,
57 const IntermediateValues& data)
58{
59 DecoratorType::merge(year, data);
60}
61
62template<class FirstDecoratorT, template<class, int> class DecoratorForSpatialAggregateT>
64{
65 DecoratorType::reset();
66}
67
68} // namespace Variable
69} // namespace Solver
70} // namespace Antares
71
72#endif // __SOLVER_VARIABLE_STORAGE_RESULTS_HXX__
Definition study.h:61
Temporary buffer for allocating results for a single year.
Definition intermediate.h:46
Definition results.h:48
void reset()
Reset all values.
Definition results.hxx:63
void initializeFromStudy(Antares::Data::Study &)
Initialize result outputs from study.
Definition results.hxx:31
void merge(uint year, const IntermediateValues &data)
Merge the intermediate values.
Definition results.hxx:55
Class utility for building CSV results files.
Definition surveyresults.h:41
Definition variable.h:25