Subversion Repositories public iLand

Rev

Rev 161 | Rev 223 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 161 Rev 222
Line 17... Line 17...
17
    bool canRun(); ///< model may be run
17
    bool canRun(); ///< model may be run
18
    bool isRunning(); ///< model is running
18
    bool isRunning(); ///< model is running
19
    // dynamic outputs (variable fields)
19
    // dynamic outputs (variable fields)
20
    void setupDynamicOutput(QString fieldList);
20
    void setupDynamicOutput(QString fieldList);
21
    QString dynamicOutput();
21
    QString dynamicOutput();
-
 
22
signals:
-
 
23
    void finished(QString errorMessage);
-
 
24
    void year(int year);
22
public slots:
25
public slots:
23
    void setFileName(QString initFileName); ///< set project file name
26
    void setFileName(QString initFileName); ///< set project file name
24
    void create(); ///< create the model
27
    void create(); ///< create the model
25
    void destroy(); ///< delete the model
28
    void destroy(); ///< delete the model
26
    void run(); ///< run the model
-
 
-
 
29
    void run(int years); ///< run the model
27
    void runYear(); ///< runs a single time step
30
    void runYear(); ///< runs a single time step
-
 
31
    bool pause(); ///< pause execution, and if paused, continue to run. returns state *after* change, i.e. true=now in paused mode
-
 
32
    void cancel(); ///< cancel execution of the model
28
private:
33
private:
29
    void fetchDynamicOutput();
34
    void fetchDynamicOutput();
30
    Model *mModel;
35
    Model *mModel;
31
    QString mInitFile;
36
    QString mInitFile;
32
    QStringList mDynFieldList;
37
    QStringList mDynFieldList;