The
generated code calls the phone??™s platform services provided via an API and executes
the result in an emulator or in the target device.
TELEPHONY AND CALL PROCESSING 95
Chapter 9: Digital wristwatch applications in Java/C
Chapter 9 describes state machine based Java and C code generation for embedded
devices using a familiar domain, a digital wristwatch, as an example. This case
describes how product line development can be supported by modeling variation
among products. It also shows how different kinds of languages, static and behavior,
can be integrated during modeling and used when generating code from multiple
different kinds of design models.
All these cases applied fully model-based development: the models created form
the input for code generation. Thus, the DSM language was created not only to use
models to get a better understanding, support communication, or create documentation,
but also to automate development with domain-speci?¬?c generators. Actually, in
all of the cases the generators, together with the supporting domain framework, aim to
provide full code from the modelers??™ perspective. The code produced is fully working
and also covers the application logic and behavior, not just the static structures, which
are usually easier to model and generate. The only case where models are used to
capture only static structures is the case of insurance products.
Pages:
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202