21 #ifndef __SOLVER_VARIABLE_SET_OF_AREAS_H__
22 #define __SOLVER_VARIABLE_SET_OF_AREAS_H__
24 #include <antares/study/study.h>
28 namespace Antares::Solver::Variable
35 return "Sets of Areas";
57 & Category::FileLevel::de;
69 template<
class NextT = Container::EndOfList>
89 template<
int CDataLevel,
int CFile>
94 count = NextType::template
Statistics < CDataLevel,
105 template<
class PredicateT>
124 void simulationBegin();
125 void simulationEnd();
127 void yearBegin(
unsigned int year,
unsigned int numSpace);
129 void yearEndBuild(
State& state,
unsigned int year,
unsigned int numSpace);
131 void yearEnd(
unsigned int year,
unsigned int numSpace);
133 void computeSummary(
unsigned int year,
unsigned int numSpace);
135 void hourBegin(
unsigned int hourInTheYear);
136 void hourForEachArea(
State& state,
unsigned int numSpace);
137 void hourForEachLink(
State& state);
138 void hourEnd(
State& state,
unsigned int hourInTheYear);
140 void weekBegin(
State&);
141 void weekForEachArea(
State&,
unsigned int numSpace);
142 void weekEnd(
State&);
147 int precision)
const;
153 unsigned int numSpace)
const;
155 void buildDigest(
SurveyResults&,
int digestLevel,
int dataLevel)
const;
157 void beforeYearByYearExport(uint year, uint numSpace);
160 static void provideInformations(I& infos);
163 void yearEndSpatialAggregates(V& allVars,
unsigned int year,
unsigned int numSpace);
166 void computeSpatialAggregatesSummary(V& allVars,
unsigned int year,
unsigned int numSpace);
169 void simulationEndSpatialAggregates(V& allVars);
171 template<
class VCardSearchT,
class O>
172 void computeSpatialAggregateWith(O& out);
174 template<
class VCardSearchT,
class O>
175 void computeSpatialAggregateWith(O& out,
const Data::Area* area, uint numSpace);
177 template<
class VCardToFindT>
178 const double* retrieveHourlyResultsForCurrentYear()
const;
180 template<
class VCardToFindT>
184 template<
class VCardToFindT>
188 template<
class VCardToFindT>
202 typename Data::Study::SetsOfAreas::IDType::Vector pNames;
208 #include "setofareas.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
Interface for any variable.
Definition: variable.h:47
Definition: setofareas.h:71
~SetsOfAreas()=default
Destructor.
SetOfAreasVector pSetsOfAreas
Area list.
Definition: setofareas.h:196
VCardType::ResultsType ResultsType
List of expected results.
Definition: setofareas.h:81
const Data::Study * pStudy
The study.
Definition: setofareas.h:200
std::vector< const Data::Sets::SetAreasType * > pOriginalSets
Reference to the origina set.
Definition: setofareas.h:198
std::vector< std::unique_ptr< NextType > > SetOfAreasVector
Area list.
Definition: setofareas.h:194
static void RetrieveVariableList(PredicateT &predicate)
Retrieve the list of all individual variables.
Definition: setofareas.hxx:368
Variable::IVariable< SetsOfAreas< NextT >, NextT, VCardType > AncestorType
Ancestor.
Definition: setofareas.h:78
SetsOfAreas()=default
Default Constructor.
NextT NextType
Type of the next static variable.
Definition: setofareas.h:74
@ count
How many items have we got.
Definition: setofareas.h:86
VCardAllSetsOfAreas VCardType
VCard.
Definition: setofareas.h:76
Class utility for building CSV results files.
Definition: surveyresults.h:41
Definition: setofareas.h:91
VariableAccessor< typename VCardT::ResultsType, VCardT::columnCount >::Type ResultsType
The true type used for the results.
Definition: info.h:760
Definition: setofareas.h:31
static constexpr uint8_t categoryFileLevel
File level (provided by the type of the results)
Definition: setofareas.h:56
static constexpr uint8_t hasIntermediateValues
Intermediate values.
Definition: setofareas.h:65
static std::string Caption()
Caption.
Definition: setofareas.h:33
static constexpr uint8_t nodeDepthForGUI
Indentation (GUI)
Definition: setofareas.h:59
static constexpr int columnCount
Number of columns used by the variable (One ResultsType per column)
Definition: setofareas.h:61
static constexpr uint8_t spatialAggregate
The Spatial aggregation.
Definition: setofareas.h:63
Results ResultsType
The expecte results.
Definition: setofareas.h:51
static std::string Description()
The short description of the variable.
Definition: setofareas.h:45
static std::string Unit()
Unit.
Definition: setofareas.h:39
static constexpr uint8_t categoryDataLevel
Data Level.
Definition: setofareas.h:54