21#ifndef __SOLVER_VARIABLE_LIST_H__
22#define __SOLVER_VARIABLE_LIST_H__
25#include <yuni/core/static/types.h>
26#include <yuni/core/string.h>
28#include <antares/logs/logs.h>
30#include "categories.h"
33#include "surveyresults.h"
35namespace Antares::Solver::Variable::Container
42template<
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(std::map<unsigned int, unsigned int>& numSpaceToYear,
115 unsigned int nbYearsForCurrentSummary);
118 void yearEndSpatialAggregates(V& allVars,
unsigned int year,
unsigned int numSpace);
120 template<
class V,
class SetT>
121 void yearEndSpatialAggregates(V& allVars,
unsigned int year,
const SetT& set);
124 void computeSpatialAggregatesSummary(V& allVars,
125 std::map<unsigned int, unsigned int>& numSpaceToYear,
129 void simulationEndSpatialAggregates(V& allVars);
131 template<
class V,
class SetT>
132 void simulationEndSpatialAggregates(V& allVars,
const SetT& set);
140 void hourBegin(
unsigned int hourInTheYear);
142 void hourForEachArea(
State& state,
unsigned int numSpace);
144 void hourForEachLink(
State& state);
146 void hourEnd(
State& state,
unsigned int hourInTheYear);
151 void weekBegin(
State& state);
153 void weekEnd(
State& state);
158 template<
class SearchVCardT,
class O>
159 void computeSpatialAggregateWith(O& out);
161 template<
class SearchVCardT,
class O>
162 void computeSpatialAggregateWith(O& out,
const Data::Area* area,
unsigned int numSpace);
164 template<
class VCardToFindT>
168 template<
class VCardToFindT>
169 void retrieveResultsForThermalCluster(
173 template<
class VCardToFindT>
186 int precision)
const;
192 unsigned int numSpace)
const;
201 const Yuni::String& output,
202 unsigned int numSpace,
219#include "container.hxx"
220#include "surveyresults/reportbuilder.hxx"
Definition of a link between two areas (Interconnection)
Definition links.h:50
Definition for a single area.
Definition area.h:52
A single thermal cluster.
Definition cluster.h:78
Static list for all output variables.
Definition container.h:44
void simulationEnd()
Notify to all variables that the simulation has finished.
Definition container.hxx:77
void simulationBegin()
Notify to all variables that the simulation is about to begin.
Definition container.hxx:71
void yearBegin(unsigned int year, unsigned int numSpace)
Notify to all variables that a new year is about to start.
Definition container.hxx:83
void yearEnd(unsigned int year, unsigned int numSpace)
Notify to all variables that the year is now over.
Definition container.hxx:89
@ count
How many items have we got.
Definition container.h:54
void initializeFromStudy(Data::Study &study)
Initialize all output variables.
Definition container.hxx:39
void initializeFromLink(Data::Study *study, Data::AreaLink *link)
Initialize all output variables according a given link.
Definition container.hxx:55
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:48
void buildDigest(SurveyResults &results, int digestLevel, int dataLevel) const
Ask to all variables to fullfil the digest.
Definition container.hxx:285
void initializeFromThermalCluster(Data::Study *study, Data::Area *area, Data::ThermalCluster *cluster)
Initialize all output variables according a given thermal cluster.
Definition container.hxx:62
void hourBegin(unsigned int hourInTheYear)
Notify to all variables that a new hour is about to begin.
Definition container.hxx:147
void buildSurveyReport(SurveyResults &results, int dataLevel, int fileLevel, int precision) const
Ask to all variables to fullfil the report.
Definition container.hxx:226
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:299
Class utility for building CSV results files.
Definition surveyresults.h:41
VariableAccessor< typenameVCardT::ResultsType, VCardT::columnCount >::Type ResultsType
The true type used for the results.
Definition info.h:764