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/helpers/AntaresVersionProvider.h"
10#include "antares-xpansion/lpnamer/model/ActiveLinks.h"
11#include "antares-xpansion/lpnamer/problem_modifier/LinkProblemsGenerator.h"
12
18{
20 {
21 double directCapacity_;
31 double loopFlow_;
33 double pShiftMin_;
35 double pShiftMax_;
36 };
37
38 FileColumns fileColumns;
42 explicit LinkdataRecord();
43
51 explicit LinkdataRecord(const FileColumns& afileColumns);
52
59 std::string to_row(const std::string& sep_p) const;
60
67 void updateCapacities(double directCapacity_p, double indirectCapacity_p);
68
74 void fillFromRow(const std::string& line_p);
75
79 void reset();
80};
Definition LinkdataRecord.h:20
double pShiftMin_
7th column of the file : power shift min.
Definition LinkdataRecord.h:33
double loopFlow_
6th column of the file : loop flow
Definition LinkdataRecord.h:31
double indirectCapacity_
2nd column of the file : indirect capacity of the link
Definition LinkdataRecord.h:23
double pShiftMax_
8th column of the file : power shift max.
Definition LinkdataRecord.h:35
double directHurdlesCost_
3rd column of the file : direct hurdles cost
Definition LinkdataRecord.h:25
double impedances_
5th column of the file : impedances
Definition LinkdataRecord.h:29
double indirectHurdlesCost_
4th column of the file : indirect hurdles cost
Definition LinkdataRecord.h:27
struct describing a line in a linkdata file of antares
Definition LinkdataRecord.h:18
std::string to_row(const std::string &sep_p) const
returns a one-line string describing the LinkdataRecord
Definition LinkdataRecord.cpp:45
void fillFromRow(const std::string &line_p)
populates the LinkdataRecord attributes for a string
Definition LinkdataRecord.cpp:25
void reset()
reset the LinkdataRecord attributes to 0
Definition LinkdataRecord.cpp:13
void updateCapacities(double directCapacity_p, double indirectCapacity_p)
update the capacities of the LinkdataRecord
Definition LinkdataRecord.cpp:39
LinkdataRecord()
LinkdataRecord constructor.
Definition LinkdataRecord.cpp:3