Rev 145 | Rev 222 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 145 | Rev 161 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | Model *model() const { return mModel; } |
13 | Model *model() const { return mModel; } |
14 | // bool checkers...
|
14 | // bool checkers...
|
15 | bool canCreate(); ///< return true if the model can be created (settings loaded and model does not exist) |
15 | bool canCreate(); ///< return true if the model can be created (settings loaded and model does not exist) |
16 | bool canDestroy(); ///< model may be destroyed |
16 | bool canDestroy(); ///< model may be destroyed |
17 | bool canRun(); ///< model may be run |
17 | bool canRun(); ///< model may be run |
18 | bool isRunning(); ///< model is runni |
- | |
- | 18 | bool isRunning(); ///< model is running |
|
- | 19 | // dynamic outputs (variable fields)
|
|
- | 20 | void setupDynamicOutput(QString fieldList); |
|
- | 21 | QString dynamicOutput(); |
|
19 | public slots: |
22 | public slots: |
20 | void setFileName(QString initFileName); ///< set project file name |
23 | void setFileName(QString initFileName); ///< set project file name |
21 | void create(); ///< create the model |
24 | void create(); ///< create the model |
22 | void destroy(); ///< delete the model |
25 | void destroy(); ///< delete the model |
23 | void run(); ///< run the model |
26 | void run(); ///< run the model |
24 | void runYear(); ///< runs a single time step |
27 | void runYear(); ///< runs a single time step |
25 | private: |
28 | private: |
- | 29 | void fetchDynamicOutput(); |
|
26 | Model *mModel; |
30 | Model *mModel; |
27 | QString mInitFile;
|
31 | QString mInitFile;
|
- | 32 | QStringList mDynFieldList;
|
|
- | 33 | QStringList mDynData;
|
|
- | 34 | ||
28 | }; |
35 | }; |
29 | 36 | ||
30 | #endif // MODELCONTROLLER_H
|
37 | #endif // MODELCONTROLLER_H
|