21#ifndef __ANTARES_LIBS_STUDY_LINKS_H__
22#define __ANTARES_LIBS_STUDY_LINKS_H__
27#include <yuni/core/noncopyable.h>
28#include <yuni/core/string.h>
30#include <antares/array/matrix.h>
31#include <antares/series/series.h>
32#include <antares/solver/ts-generator/prepro.h>
33#include <antares/study/version.h>
34#include <antares/writer/i_writer.h>
42struct CompareLinkName;
49class AreaLink final:
public Yuni::NonCopyable<AreaLink>
53 using Vector = std::vector<AreaLink*>;
55 using Set = std::set<AreaLink*, CompareLinkName>;
57 using Map = std::map<AreaName, AreaLink*>;
59 using NamePair = std::pair<Yuni::String, Yuni::String>;
72 bool loadTimeSeries(
const StudyVersion& version,
const std::filesystem::path& folder);
94 void resetToDefaultValues();
109 bool isVisibleOnLayer(
const size_t& layerID)
const;
111 Yuni::String getName()
const;
113 bool isLinkPhysical()
const;
114 void overrideTransmissionCapacityAccordingToGlobalParameter(GlobalTransmissionCapacities tc);
117 bool linkLoadTimeSeries_for_version_below_810(
const std::filesystem::path& folder);
118 bool linkLoadTimeSeries_for_version_820_and_later(
const std::filesystem::path& folder);
119 NamePair getNamePair()
const;
208 return s1->getNamePair() < s2->getNamePair();
Definition of a link between two areas (Interconnection)
Definition links.h:50
uint indexForArea
Index of the link in the list of interconnection of the main area.
Definition links.h:175
bool useHurdlesCost
Flag for using hurdles cost.
Definition links.h:150
bool forceReload(bool reload=false) const
Invalidate all matrices.
Definition links.cpp:766
void markAsModified() const
Mark the data associated to the link as modified.
Definition links.cpp:772
LocalTransmissionCapacities transmissionCapacities
Flag for the transmission capacities (NTC +infinite)
Definition links.h:154
bool useLoopFlow
Flag for using loop flow.
Definition links.h:144
int linkWidth
link width
Definition links.h:199
uint index
Index of the link in the entire list if Interconnections.
Definition links.h:168
bool displayComments
Flag for displaying comments.
Definition links.h:183
Yuni::String comments
Comments.
Definition links.h:181
void detach()
Detach the link from the areas.
Definition links.cpp:194
Area * with
The other area | Hash ID: with->id.
Definition links.h:127
uint filterYearByYear
Print results for the area in the year-by-year mode.
Definition links.h:191
std::vector< AreaLink * > Vector
Vector of links.
Definition links.h:53
void reverse()
Reverse the link.
Definition links.cpp:234
AreaLink()
Default Constructor.
Definition links.cpp:45
bool usePST
Flag for using the phase shifter.
Definition links.h:147
std::set< AreaLink *, CompareLinkName > Set
Set of links.
Definition links.h:55
StyleType style
Style.
Definition links.h:197
std::map< AreaName, AreaLink * > Map
Map of links.
Definition links.h:57
uint filterSynthesis
Print results for the area in the simulation synthesis.
Definition links.h:189
int color[3]
Colors.
Definition links.h:195
Matrix parameters
Data related to the link.
Definition links.h:139
Area * from
The orginal Area.
Definition links.h:125
~AreaLink()
Destructor.
Definition links.cpp:72
TimeSeriesNumbers timeseriesNumbers
Monte-Carlo.
Definition links.h:131
AssetType assetType
Flag for the asset type (AC/DC/Other)
Definition links.h:158
Definition for a single area.
Definition area.h:52
Version of a study.
Definition version.h:36
This class is used to represent the generic time series.
Definition series.h:65
A n-by-n matrix.
Definition jit.h:30