21#ifndef __SOLVER_VARIABLE_SET_OF_AREAS_H__
22#define __SOLVER_VARIABLE_SET_OF_AREAS_H__
24#include <antares/study/study.h>
39 return "Sets of Areas";
61 & Category::FileLevel::de;
73template<
class NextT = Container::EndOfList>
93 template<
int CDataLevel,
int CFile>
98 count = NextType::template
Statistics < CDataLevel,
109 template<
class PredicateT>
128 void simulationBegin();
129 void simulationEnd();
131 void yearBegin(
unsigned int year,
unsigned int numSpace);
133 void yearEndBuild(
State& state,
unsigned int year,
unsigned int numSpace);
135 void yearEnd(
unsigned int year,
unsigned int numSpace);
137 void computeSummary(std::map<unsigned int, unsigned int>& numSpaceToYear,
138 unsigned int nbYearsForCurrentSummary);
140 void hourBegin(
unsigned int hourInTheYear);
141 void hourForEachArea(
State& state,
unsigned int numSpace);
142 void hourForEachLink(
State& state);
143 void hourEnd(
State& state,
unsigned int hourInTheYear);
145 void weekBegin(
State&);
146 void weekForEachArea(
State&,
unsigned int numSpace);
147 void weekEnd(
State&);
152 int precision)
const;
158 unsigned int numSpace)
const;
160 void buildDigest(
SurveyResults&,
int digestLevel,
int dataLevel)
const;
162 void beforeYearByYearExport(uint year, uint numSpace);
165 static void provideInformations(I& infos);
168 void yearEndSpatialAggregates(V& allVars,
unsigned int year,
unsigned int numSpace);
171 void computeSpatialAggregatesSummary(V& allVars,
172 std::map<unsigned int, unsigned int>& numSpaceToYear,
176 void simulationEndSpatialAggregates(V& allVars);
178 template<
class VCardSearchT,
class O>
179 void computeSpatialAggregateWith(O& out);
181 template<
class VCardSearchT,
class O>
182 void computeSpatialAggregateWith(O& out,
const Data::Area* area, uint numSpace);
184 template<
class VCardToFindT>
185 const double* retrieveHourlyResultsForCurrentYear()
const;
187 template<
class VCardToFindT>
191 template<
class VCardToFindT>
195 template<
class VCardToFindT>
209 typename Data::Study::SetsOfAreas::IDType::Vector pNames;
217#include "setofareas.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
Interface for any variable.
Definition variable.h:51
Definition setofareas.h:75
~SetsOfAreas()=default
Destructor.
SetOfAreasVector pSetsOfAreas
Area list.
Definition setofareas.h:203
@ count
How many items have we got.
Definition setofareas.h:90
const Data::Study * pStudy
The study.
Definition setofareas.h:207
std::vector< const Data::Sets::SetAreasType * > pOriginalSets
Reference to the origina set.
Definition setofareas.h:205
VCardAllSetsOfAreas VCardType
VCard.
Definition setofareas.h:80
NextT NextType
Type of the next static variable.
Definition setofareas.h:78
static void RetrieveVariableList(PredicateT &predicate)
Retrieve the list of all individual variables.
Definition setofareas.hxx:377
SetsOfAreas()=default
Default Constructor.
Variable::IVariable< SetsOfAreas< NextT >, NextT, VCardType > AncestorType
Ancestor.
Definition setofareas.h:82
std::vector< std::unique_ptr< NextType > > SetOfAreasVector
Area list.
Definition setofareas.h:201
VCardType::ResultsType ResultsType
List of expected results.
Definition setofareas.h:85
Class utility for building CSV results files.
Definition surveyresults.h:41
Definition setofareas.h:95
VariableAccessor< typenameVCardT::ResultsType, VCardT::columnCount >::Type ResultsType
The true type used for the results.
Definition info.h:764
Definition setofareas.h:35
static constexpr uint8_t categoryFileLevel
File level (provided by the type of the results)
Definition setofareas.h:60
static constexpr uint8_t hasIntermediateValues
Intermediate values.
Definition setofareas.h:69
static std::string Caption()
Caption.
Definition setofareas.h:37
static constexpr uint8_t nodeDepthForGUI
Indentation (GUI)
Definition setofareas.h:63
static constexpr int columnCount
Number of columns used by the variable (One ResultsType per column)
Definition setofareas.h:65
static constexpr uint8_t spatialAggregate
The Spatial aggregation.
Definition setofareas.h:67
static std::string Description()
The short description of the variable.
Definition setofareas.h:49
static std::string Unit()
Unit.
Definition setofareas.h:43
static constexpr uint8_t categoryDataLevel
Data Level.
Definition setofareas.h:58
Results ResultsType
The expecte results.
Definition setofareas.h:55