21 #ifndef __ANTARES_LIBS_STUDY_LINKS_H__
22 #define __ANTARES_LIBS_STUDY_LINKS_H__
26 #include <yuni/yuni.h>
27 #include <yuni/core/noncopyable.h>
28 #include <yuni/core/string.h>
30 #include <antares/array/matrix.h>
31 #include <antares/exception/LoadingError.hpp>
32 #include <antares/series/series.h>
33 #include <antares/solver/ts-generator/prepro.h>
34 #include <antares/study/version.h>
35 #include <antares/writer/i_writer.h>
39 namespace Antares::Error
48 namespace Antares::Data
50 struct CompareLinkName;
57 class AreaLink final:
public Yuni::NonCopyable<AreaLink>
61 using Vector = std::vector<AreaLink*>;
63 using Set = std::set<AreaLink*, CompareLinkName>;
65 using Map = std::map<AreaName, AreaLink*>;
67 using NamePair = std::pair<Yuni::String, Yuni::String>;
80 bool loadTimeSeries(
const StudyVersion& version,
const std::filesystem::path& folder);
102 void resetToDefaultValues();
117 bool isVisibleOnLayer(
const size_t& layerID)
const;
119 Yuni::String getName()
const;
121 bool isLinkPhysical()
const;
122 void overrideTransmissionCapacityAccordingToGlobalParameter(GlobalTransmissionCapacities tc);
125 bool linkLoadTimeSeries_for_version_below_810(
const std::filesystem::path& folder);
126 bool linkLoadTimeSeries_for_version_820_and_later(
const std::filesystem::path& folder);
127 NamePair getNamePair()
const;
216 return s1->getNamePair() < s2->getNamePair();
Definition of a link between two areas (Interconnection)
Definition: links.h:58
uint indexForArea
Index of the link in the list of interconnection of the main area.
Definition: links.h:183
bool useHurdlesCost
Flag for using hurdles cost.
Definition: links.h:158
bool forceReload(bool reload=false) const
Invalidate all matrices.
Definition: links.cpp:774
void markAsModified() const
Mark the data associated to the link as modified.
Definition: links.cpp:780
LocalTransmissionCapacities transmissionCapacities
Flag for the transmission capacities (NTC +infinite)
Definition: links.h:162
bool useLoopFlow
Flag for using loop flow.
Definition: links.h:152
int linkWidth
link width
Definition: links.h:207
uint index
Index of the link in the entire list if Interconnections.
Definition: links.h:176
bool displayComments
Flag for displaying comments.
Definition: links.h:191
Yuni::String comments
Comments.
Definition: links.h:189
void detach()
Detach the link from the areas.
Definition: links.cpp:200
Area * with
The other area | Hash ID: with->id.
Definition: links.h:135
uint filterYearByYear
Print results for the area in the year-by-year mode.
Definition: links.h:199
std::vector< AreaLink * > Vector
Vector of links.
Definition: links.h:61
void reverse()
Reverse the link.
Definition: links.cpp:240
AreaLink()
Default Constructor.
Definition: links.cpp:51
bool usePST
Flag for using the phase shifter.
Definition: links.h:155
std::set< AreaLink *, CompareLinkName > Set
Set of links.
Definition: links.h:63
StyleType style
Style.
Definition: links.h:205
std::map< AreaName, AreaLink * > Map
Map of links.
Definition: links.h:65
uint filterSynthesis
Print results for the area in the simulation synthesis.
Definition: links.h:197
int color[3]
Colors.
Definition: links.h:203
Matrix parameters
Data related to the link.
Definition: links.h:147
Area * from
The orginal Area.
Definition: links.h:133
~AreaLink()
Destructor.
Definition: links.cpp:78
TimeSeriesNumbers timeseriesNumbers
Monte-Carlo.
Definition: links.h:139
AssetType assetType
Flag for the asset type (AC/DC/Other)
Definition: links.h:166
Definition for a single area.
Definition: area.h:51
Version of a study.
Definition: version.h:36
This class is used to represent the generic time series.
Definition: series.h:65
Definition: LoadingError.hpp:30
A n-by-n matrix.
Definition: matrix.h:44
Definition: i_writer.h:32