21 #ifndef __SOLVER_VARIABLE_LIST_H__
22 #define __SOLVER_VARIABLE_LIST_H__
24 #include <yuni/yuni.h>
25 #include <yuni/core/static/types.h>
26 #include <yuni/core/string.h>
28 #include <antares/logs/logs.h>
30 #include "categories.h"
31 #include "endoflist.h"
33 #include "surveyresults.h"
35 namespace Antares::Solver::Variable::Container
42 template<
class NextT = Container::EndOfList>
103 void yearBegin(
unsigned int year,
unsigned int numSpace);
112 void yearEnd(
unsigned int year,
unsigned int numSpace);
114 void computeSummary(
unsigned int year,
unsigned int numSpace);
117 void yearEndSpatialAggregates(V& allVars,
unsigned int year,
unsigned int numSpace);
119 template<
class V,
class SetT>
120 void yearEndSpatialAggregates(V& allVars,
unsigned int year,
const SetT& set);
123 void computeSpatialAggregatesSummary(V& allVars,
unsigned int year,
unsigned int numSpace);
126 void simulationEndSpatialAggregates(V& allVars);
128 template<
class V,
class SetT>
129 void simulationEndSpatialAggregates(V& allVars,
const SetT& set);
137 void hourBegin(
unsigned int hourInTheYear);
139 void hourForEachArea(
State& state,
unsigned int numSpace);
141 void hourForEachLink(
State& state);
143 void hourEnd(
State& state,
unsigned int hourInTheYear);
148 void weekBegin(
State& state);
150 void weekEnd(
State& state);
155 template<
class SearchVCardT,
class O>
156 void computeSpatialAggregateWith(O& out);
158 template<
class SearchVCardT,
class O>
159 void computeSpatialAggregateWith(O& out,
const Data::Area* area,
unsigned int numSpace);
161 template<
class VCardToFindT>
165 template<
class VCardToFindT>
166 void retrieveResultsForThermalCluster(
170 template<
class VCardToFindT>
183 int precision)
const;
189 unsigned int numSpace)
const;
198 const Yuni::String& output,
199 unsigned int numSpace,
216 #include "container.hxx"
217 #include "surveyresults/reportbuilder.hxx"
Definition of a link between two areas (Interconnection)
Definition: links.h:58
Definition for a single area.
Definition: area.h:51
A single thermal cluster.
Definition: cluster.h:76
Definition: i_writer.h:32
Static list for all output variables.
Definition: container.h:44
void simulationEnd()
Notify to all variables that the simulation has finished.
Definition: container.hxx:69
void simulationBegin()
Notify to all variables that the simulation is about to begin.
Definition: container.hxx:63
void yearBegin(unsigned int year, unsigned int numSpace)
Notify to all variables that a new year is about to start.
Definition: container.hxx:75
void yearEnd(unsigned int year, unsigned int numSpace)
Notify to all variables that the year is now over.
Definition: container.hxx:81
void initializeFromStudy(Data::Study &study)
Initialize all output variables.
Definition: container.hxx:31
void initializeFromLink(Data::Study *study, Data::AreaLink *link)
Initialize all output variables according a given link.
Definition: container.hxx:47
@ count
How many items have we got.
Definition: container.h:54
NextT NextType
Type of the next static variable.
Definition: container.h:47
void initializeFromArea(Data::Study *study, Data::Area *area)
Initialize all output variables according a given area.
Definition: container.hxx:40
void buildDigest(SurveyResults &results, int digestLevel, int dataLevel) const
Ask to all variables to fullfil the digest.
Definition: container.hxx:275
void initializeFromThermalCluster(Data::Study *study, Data::Area *area, Data::ThermalCluster *cluster)
Initialize all output variables according a given thermal cluster.
Definition: container.hxx:54
void hourBegin(unsigned int hourInTheYear)
Notify to all variables that a new hour is about to begin.
Definition: container.hxx:137
void buildSurveyReport(SurveyResults &results, int dataLevel, int fileLevel, int precision) const
Ask to all variables to fullfil the report.
Definition: container.hxx:216
void exportSurveyResults(bool global, const Yuni::String &output, unsigned int numSpace, IResultWriter &writer)
Ask to all variables to fullfil additional reports (like the digest for example)
Definition: container.hxx:289
Class utility for building CSV results files.
Definition: surveyresults.h:41
VariableAccessor< typename VCardT::ResultsType, VCardT::columnCount >::Type ResultsType
The true type used for the results.
Definition: info.h:760