2023-04-24 15:31:46 +02:00
|
|
|
#include <string>
|
|
|
|
|
2024-07-19 14:01:00 +02:00
|
|
|
#include <QDebug>
|
|
|
|
|
2023-04-24 15:31:46 +02:00
|
|
|
class ATBDuration
|
|
|
|
{
|
|
|
|
public:
|
2024-07-19 14:01:00 +02:00
|
|
|
explicit ATBDuration()
|
|
|
|
: pun_id(0)
|
|
|
|
, pun_label("")
|
|
|
|
, pun_duration(0)
|
2024-07-23 12:46:44 +02:00
|
|
|
, pun_duration_saved(0)
|
2024-07-19 14:01:00 +02:00
|
|
|
, pun_duration_min(0)
|
|
|
|
, pun_duration_max(0)
|
2024-08-15 21:14:57 +02:00
|
|
|
, pun_interpolation_id(-1)
|
|
|
|
, pun_netto(false)
|
|
|
|
, pun_brutto(false)
|
|
|
|
, pun_fixed(false)
|
|
|
|
, pun_requires_change(false)
|
|
|
|
, pun_next_step_correction(0) {
|
2024-07-19 14:01:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
friend QDebug operator<<(QDebug debug, ATBDuration const &td) {
|
|
|
|
QDebugStateSaver saver(debug);
|
|
|
|
|
|
|
|
debug.nospace()
|
|
|
|
<< " pun_id: " << td.pun_id << "\n"
|
|
|
|
<< " pun_label: " << QString::fromStdString(td.pun_label) << "\n"
|
|
|
|
<< " pun_duration: " << td.pun_duration << "\n"
|
2024-07-23 12:46:44 +02:00
|
|
|
<< " pun_duration_saved: " << td.pun_duration_saved << "\n"
|
2024-07-19 14:01:00 +02:00
|
|
|
<< " pun_duration_min: " << td.pun_duration_min << "\n"
|
|
|
|
<< " pun_duration_max: " << td.pun_duration_max << "\n"
|
2024-08-15 21:14:57 +02:00
|
|
|
<< " pun_netto: " << td.pun_netto << "\n"
|
|
|
|
<< " pun_brutto: " << td.pun_brutto << "\n"
|
|
|
|
<< " pun_fixed: " << td.pun_fixed << "\n"
|
|
|
|
<< " pun_requires_change: " << td.pun_requires_change << "\n"
|
2024-07-19 14:01:00 +02:00
|
|
|
<< "pun_interpolation_id: " << td.pun_interpolation_id << "\n";
|
|
|
|
|
|
|
|
return debug;
|
|
|
|
}
|
|
|
|
|
2023-04-24 15:31:46 +02:00
|
|
|
int pun_id;
|
|
|
|
std::string pun_label;
|
|
|
|
int pun_duration;
|
2024-08-15 21:14:57 +02:00
|
|
|
int pun_duration_saved;
|
|
|
|
int pun_duration_min;
|
|
|
|
int pun_duration_max;
|
|
|
|
int pun_interpolation_id;
|
|
|
|
bool pun_netto; // the timestep expressed by this duration is a netto timestep
|
|
|
|
bool pun_brutto; // the timestep expressed by this duration is a brutto timestep
|
|
|
|
bool pun_fixed; // the value given in tariff-file is fixed (constant)
|
|
|
|
bool pun_requires_change; // the value has to be changes (controlled by other parameters)
|
|
|
|
int pun_next_step_correction;
|
2024-01-18 14:41:12 +01:00
|
|
|
};
|