The best strategy when migrating a model is to split the process into a number of steps; at the end of each step you can compile your code and run a small test. |
---|
The previous chapter described the steps involved in migrating a model to the OpenMI. |
---|
The Simple River model uses the migration pattern shown in Figure 12. Figure 13 gives a detailed explanation of how the Simple River wrapper works in terms of the wrapper classes.
Fig. 13 Simple River wrapper classes
It is important to test the component to check that it is working correctly. Traditionally, the procedure has been to complete implementation and then run the engine to see if it produces the correct results. However, in recent years new methodologies have been developed for testing. The dominant testing method for object oriented programs is unit testing. Unit testing is done in parallel with the implementation. This means that you will be able to find errors earlier and thus save time on debugging your code later. |
---|