Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
adequacy-patch-options.h
1/*
2** Copyright 2007-2024, RTE (https://www.rte-france.com)
3** See AUTHORS.txt
4** SPDX-License-Identifier: MPL-2.0
5** This file is part of Antares-Simulator,
6** Adequacy and Performance assessment for interconnected energy networks.
7**
8** Antares_Simulator is free software: you can redistribute it and/or modify
9** it under the terms of the Mozilla Public Licence 2.0 as published by
10** the Mozilla Foundation, either version 2 of the License, or
11** (at your option) any later version.
12**
13** Antares_Simulator is distributed in the hope that it will be useful,
14** but WITHOUT ANY WARRANTY; without even the implied warranty of
15** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16** Mozilla Public Licence 2.0 for more details.
17**
18** You should have received a copy of the Mozilla Public Licence 2.0
19** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20*/
21#ifndef __ANTARES_APPLICATION_WINDOWS_OPTIONS_ADEQUACY_PATCH_H__
22#define __ANTARES_APPLICATION_WINDOWS_OPTIONS_ADEQUACY_PATCH_H__
23
24#include "../../../toolbox/components/button.h"
25#include <wx/dialog.h>
26
27#include <antares/study/UnfeasibleProblemBehavior.hpp>
28
29namespace Antares::Window::Options
30{
34class AdequacyPatchOptions final : public wxDialog
35{
36public:
38
39
44 explicit AdequacyPatchOptions(wxWindow* parent);
48
49private:
50 class PopupInfo final
51 {
52 public:
53 PopupInfo(bool& r, const wxChar* const t) : rval(r), text(t)
54 {
55 }
56 bool& rval;
57 const wxChar* const text;
58 };
59
60 void refresh();
61 void onClose(const void*);
62 void onResetToDefault(void*);
63 wxTextCtrl* insertEdit(wxWindow* parent,
64 wxSizer* sizer,
65 const wxString& text,
66 wxObjectEventFunction);
67
68 void onSelectPtoIsDens(wxCommandEvent&);
69 void onSelectPtoIsLoad(wxCommandEvent&);
70 void onSelectModeInclude(wxCommandEvent& evt);
71 void onSelectModeIgnore(wxCommandEvent& evt);
72
73 void onPopupMenu(Component::Button&, wxMenu& menu, void*, const PopupInfo& info);
74 void onPopupMenuSpecify(Component::Button&, wxMenu& menu, void*, const PopupInfo& info);
75 void onPopupMenuNTC(Component::Button&, wxMenu& menu, void*, const PopupInfo& info);
76 void onPopupMenuPTO(Component::Button&, wxMenu& menu, void*);
77
78 void onInternalMotion(wxMouseEvent&);
79 void onEditThresholds(wxCommandEvent&);
80
81 Component::Button* pBtnAdequacyPatch;
82 Component::Button* pBtnNTCfromOutToInAdqPatch;
83 Component::Button* pBtnNTCfromOutToOutAdqPatch;
84 Component::Button* pBtnAdequacyPatchPTO;
85 Component::Button* pBtnAdequacyPatchIncludeHurdleCostCsr;
86 Component::Button* pBtnAdequacyPatchCheckCsrCostFunctionValue;
87 wxTextCtrl* pThresholdCSRStart;
88 wxTextCtrl* pThresholdLMRviolations;
89 wxTextCtrl* pThresholdCSRVarBoundsRelaxation;
90 bool* pTargetRef;
91
92}; // class AdequacyPatchOptions
93
94}
95
96#endif // __ANTARES_APPLICATION_WINDOWS_OPTIONS_ADEQUACY_PATCH_H__
Definition button.h:34
Startup Wizard User Interface.
Definition adequacy-patch-options.h:35
AdequacyPatchOptions(wxWindow *parent)
Default constructor.
Definition adequacy-patch-options.cpp:104