Rev 779 | Rev 1044 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 779 | Rev 793 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | It uses the plugin mechanism provided by Qt; the destructor is needed by some compilers (see Qt-doc).
|
27 | It uses the plugin mechanism provided by Qt; the destructor is needed by some compilers (see Qt-doc).
|
28 | The interface contains several parts:
|
28 | The interface contains several parts:
|
29 | * General information: used to identify plugins
|
29 | * General information: used to identify plugins
|
30 | 30 | ||
31 | */
|
31 | */
|
32 | class QScriptEngine; // forward |
- | |
- | 32 | class QJSEngine; // forward |
|
33 | class ResourceUnit; // forward |
33 | class ResourceUnit; // forward |
34 | 34 | ||
35 | class DisturbanceInterface
|
35 | class DisturbanceInterface
|
36 | {
|
36 | {
|
37 | public: |
37 | public: |
Line 44... | Line 44... | ||
44 | 44 | ||
45 | // setup
|
45 | // setup
|
46 | virtual void setup()=0; ///< setup after general iLand model frame is created. |
46 | virtual void setup()=0; ///< setup after general iLand model frame is created. |
47 | virtual void yearBegin()=0; ///< function executes at the beginning of a year (e.g., cleanup) |
47 | virtual void yearBegin()=0; ///< function executes at the beginning of a year (e.g., cleanup) |
48 | virtual void run()=0; ///< main function that once a year (after growth) |
48 | virtual void run()=0; ///< main function that once a year (after growth) |
49 | virtual void setupScripting(QScriptEngine *engine)=0; ///< allow module specific javascript functions/classes |
- | |
- | 49 | virtual void setupScripting(QJSEngine *engine)=0; ///< allow module specific javascript functions/classes |
|
50 | }; |
50 | }; |
51 | 51 | ||
52 | class SetupResourceUnitInterface
|
52 | class SetupResourceUnitInterface
|
53 | {
|
53 | {
|
54 | public: |
54 | public: |