For example, when the text message sending module was restructured and
its API changed, only the code generator needed to be changed. Old applications using
the text messaging could be updated to the new version simply by generating the code
again. This is in contrast to manually changing all hand-coded applications that used
text messaging.
FIGURE 8.11 Domain-speci?¬?c language on top of platforms
SUMMARY 189
The DSM solution can also evolve in the future. After having made enough similar
kinds of applications, perhaps a review of manually written Python code included in
models will detect similarities that can be abstracted to the modeling language. Also,
if Python applications are built in other areas where S60 UI styles can??™t be used, like
games, then the possibility of adding more Python code can be provided within the
DSM solution. Most likely it would be better to provide libraries for graphics and
extend the DSM solution to cover them too. Then those newer application areas could
have the same bene?¬?ts that the current DSM solution provides.
190 MOBILE PHONE APPLICATIONS USING A PYTHON FRAMEWORK
CHAPTER 9
DIGITAL WRISTWATCH
This example differs fromthe others in that the intentionwas not to build a commercially
viable family of products. Instead, the initial purpose was to provide a fully worked
example of a Domain-Speci?¬?c Modeling (DSM) language, generator, and models to
demonstrate the principles of DSM, as part of our MetaEdit+ evaluation package.
Pages:
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352