|
Antares Simulator
Power System Simulator
|
Public Member Functions | |
Constructor & Destructor | |
| Job (const wxString &title, const wxString &subTitle, const char *icon) | |
| Constructor. | |
| virtual | ~Job () |
| Destructor. | |
Progression | |
| bool | displayProgression () const |
| void | displayProgression (const bool v) |
Cancelation | |
| bool | canCancel () const |
| void | canCancel (const bool v) |
Result | |
| bool | result () const |
| void | result (const bool v) |
Execution flow | |
| class | JobThread |
| class | TimerElapsedTime |
| class | TimerRemainingTime |
| bool | isRunning () const |
| Get if the job is running. | |
| bool | run () |
| Run the job. | |
| void | stop () |
| Stop the job gracefully. | |
| virtual bool | executeTask ()=0 |
| Execute the real task. | |
| void | updateTheProgressValue (double progress) |
| Update the progress value. More... | |
| void | updateTheMessage (const wxString &msg, bool mustBeInterpreted=true) |
| Update the message displayed for the user. More... | |
| virtual void | onBeforeRunning () |
| Event: Before the thread is launched. More... | |
| virtual bool | onRunQuery () |
| Event: Ask if the job is allow to run. More... | |
| virtual void | onCancel () |
| Event: The user ask to cancel the operation. | |
| void | stopAllGuiComponents () |
| Gracefully Stop all Gui components. | |
| void | manageLogLevelMessage (enum LogLevel lvl, const wxString &msg) |
| Dispatch a log entry, grabbed from from the standard output. | |
| void | onCancel (void *) |
| Event: The user asks to cancel the operation. | |
| void | evtOnClose (wxCloseEvent &evt) |
| void | onLogMessage (int, const std::string &message) |
| wxSizer * | createMainPnl (wxWindow *parent) |
| Create the main panel, which contains all important controls. | |
| wxSizer * | createPnlButtons (wxWindow *parent) |
| Create the bottom panel, which contains buttons to cancel and to continue. | |
| wxSizer * | createPnlLoading (wxWindow *parent) |
| void | displayGauge (const bool visible=true) |
| Display (or not) the gauge. | |
| void | displayMessage (const wxString &line) |
| void | onUIUpdateProgression (uint value) |
| void | onUIUpdateMessage () |
| void | onUIUpdateLabelErrors () |
| void | onUIUpdateElapsedTime (const Yuni::String &text) |
| void | onUIUpdateRemainingTime (const Yuni::String &text) |
| void | evtOnInit (wxInitDialogEvent &event) |
| void | deleteAllThreads () |
| void | recomputeWindowSize () |
| void | disableAllComponents () |
|
inlineprotectedvirtual |
Event: Before the thread is launched.
This method will be fired before the thread is launched when the job is asked to run.
Reimplemented in Antares::Toolbox::Process::JobExecute.
|
inlineprotectedvirtual |
Event: Ask if the job is allow to run.
This method is fired before running the job. It is actually thefirst check done by the method run()
Reimplemented in Antares::Toolbox::Process::JobExecute.
|
protected |
Update the message displayed for the user.
| msg | The new message |
| mustBeInterpreted | True if the message must be interpreted (format: [antares][notice] msg) |
|
protected |
Update the progress value.
| progress | The progression in percent |