Working with Yttrium
The intention "Make the simple things simple and the hard things possible" of the Designing Reusable Class Libraries PDC05 presentation is continuously realized in Yttrium (although some other guidelines are still violated - one of the reasons why I still have not published any code yet). At least many things can be implemented in a general way (thus "hard things" are possible), or one constrains them and profits from lot of support for the simpler cases. If you only want to consume (but not extend) the framework, you work first of all with the classes in the workplace namespace, as well as with the static classes most modules provide (Std in the standard module, Dsp in the Neodym signalprocessing module etc., just like System.Math). You may still dive gradually deeper into the depths of the framework till you finally work directly with ports and architectures.
I've written a small test case (unit tests integrated in VisualStudio 2005), pointing out what such a simple case could look like. The following case tests (among other things) the Evaluate functionality of MathSystems. Of course the asserts are included only to test the correct behavior...
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: |
|
In practice this will probably more look like the following:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
|