21 #ifndef __ANTARES_APPLICATION_WINDOWS_SIMULATION_RUN_H__
22 #define __ANTARES_APPLICATION_WINDOWS_SIMULATION_RUN_H__
24 #include <yuni/thread/thread.h>
25 #include <antares/study/study.h>
27 #include <wx/dialog.h>
29 #include <wx/checkbox.h>
30 #include <wx/combobox.h>
31 #include <wx/choice.h>
32 #include <wx/stattext.h>
34 #include "../../toolbox/components/button.h"
36 namespace Antares::Window::Simulation
38 class Run final:
public wxDialog
49 explicit Run(wxWindow* parent,
bool preproOnly =
false);
55 void gridAppend(wxFlexGridSizer& sizer,
56 const wxString& title,
60 void gridAppend(wxFlexGridSizer& sizer,
61 const wxString& title,
63 const wxString& value);
64 void gridAppend(wxFlexGridSizer& sizer, wxWindow* key, wxWindow* value);
65 void gridAppend(wxFlexGridSizer& sizer, wxWindow* key, wxSizer* value);
66 void gridAppend(wxFlexGridSizer& sizer,
const wxString& key, wxWindow* value);
67 void gridAppend(wxFlexGridSizer& sizer,
const wxString& key,
const wxString& value);
74 void evtOnPreprocessorsOnlyClick(wxCommandEvent& evt);
84 void onSelectMode(wxCommandEvent& evt);
90 bool createCommentsFile(YString& filename)
const;
92 void updateMonteCarloYears();
101 int checkForLowResources();
104 void onInternalMotion(wxMouseEvent&);
111 wxStaticText* pTitleOrtoolsSolverCombox;
112 wxComboBox* pOrtoolsSolverCombox;
114 wxTextCtrl* pSimulationName;
115 wxTextCtrl* pSimulationComments;
116 wxCheckBox* pIgnoreWarnings;
117 wxStaticText* pNbCores;
118 wxStaticText* pTitleSimCores;
119 wxStaticText* pLblEstimation;
120 wxStaticText* pLblEstimationAvailable;
121 wxStaticText* pLblDiskEstimation;
122 wxStaticText* pLblDiskEstimationAvailable;
123 wxCheckBox* pPreproOnly;
124 wxStaticText* pMonteCarloYears;
126 wxSizerItem* pOptionSpacer;
127 wxSizerItem* pOrtoolsSolverOptionSpacer;
130 bool pWarnAboutMemoryLimit;
131 bool pWarnAboutDiskLimit;
133 bool pAlreadyWarnedNoMCYear;
135 std::map<long, uint> pMappingSolverMode;
137 Yuni::Thread::IThread::Ptr pThread;
Run(wxWindow *parent, bool preproOnly=false)
Constructor.
Definition: run.cpp:201
virtual ~Run()
Destructor.
Definition: run.cpp:436