Such common
parts will include basic framework such as the ability to show numbers on an LCD
display, as well as individual applications such as a stopwatch or a countdown timer.
The basic framework components will be present in all watches, and either already
exist or will be coded by hand. All the individual applications will not be present in all
watches, yet it is hoped that later addition of an existing application to an existing
watch could be a simple operation.
For a variety of reasons??”sometechnical, somepolitical??”Secio has decided to try to
create a DSMlanguage for building the watch applications. The main objectives are to
reduce the development time and complexity of building watch applications. In
particular, the current watch software is one large piece of code with little separation of
concerns. Being able to separate out different parts of the code would improve reuse
possibilities, and also allow the developer to concentrate on one area at a time, thereby
reducingerrors.The separationofbehavior intoModel (operationsontimevalues),View
(displayof the timeand icons), andController (user inputonthewatch buttons)will form
oneweaponto divideandconquer themass ofcode.Themainweapons thoughwillbethe
higher level of abstraction and the close ?¬?t of the modeling language with the problem
domain.
Pages:
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354