Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
LinkdataRecord.h
1//
2// Created by marechaljas on 16/06/22.
3//
4
5#pragma once
6
7#include <filesystem>
8
9#include "antares-xpansion/lpnamer/model/ActiveLinks.h"
10#include "antares-xpansion/helpers/AntaresVersionProvider.h"
11#include "antares-xpansion/lpnamer/problem_modifier/LinkProblemsGenerator.h"
17 struct FileColumns {
18 double directCapacity_;
28 double loopFlow_;
30 double pShiftMin_;
32 double pShiftMax_;
33 };
34
35 FileColumns fileColumns;
39 explicit LinkdataRecord();
40
48 explicit LinkdataRecord(const FileColumns& afileColumns);
49
56 std::string to_row(std::string const& sep_p) const;
57
64 void updateCapacities(double directCapacity_p, double indirectCapacity_p);
65
71 void fillFromRow(std::string const& line_p);
72
76 void reset();
77};
Definition LinkdataRecord.h:17
double pShiftMin_
7th column of the file : power shift min.
Definition LinkdataRecord.h:30
double loopFlow_
6th column of the file : loop flow
Definition LinkdataRecord.h:28
double indirectCapacity_
2nd column of the file : indirect capacity of the link
Definition LinkdataRecord.h:20
double pShiftMax_
8th column of the file : power shift max.
Definition LinkdataRecord.h:32
double directHurdlesCost_
3rd column of the file : direct hurdles cost
Definition LinkdataRecord.h:22
double impedances_
5th column of the file : impedances
Definition LinkdataRecord.h:26
double indirectHurdlesCost_
4th column of the file : indirect hurdles cost
Definition LinkdataRecord.h:24
struct describing a line in a linkdata file of antares
Definition LinkdataRecord.h:16
std::string to_row(std::string const &sep_p) const
returns a one-line string describing the LinkdataRecord
Definition LinkdataRecord.cpp:40
void reset()
reset the LinkdataRecord attributes to 0
Definition LinkdataRecord.cpp:10
void fillFromRow(std::string const &line_p)
populates the LinkdataRecord attributes for a string
Definition LinkdataRecord.cpp:21
void updateCapacities(double directCapacity_p, double indirectCapacity_p)
update the capacities of the LinkdataRecord
Definition LinkdataRecord.cpp:34
LinkdataRecord()
LinkdataRecord constructor.
Definition LinkdataRecord.cpp:3