Generators can also be combined so that they are not executed alone but in
relation to others. For instance, a model checking report can be executed
automatically before generating the code. If errors are found, the actual code
generation can be stopped. Similarly, generated documentation can include
information produced by a metrics report. Another kind of generator, although
rare in practice, is a generator that aims to produce other generators.
CODE GENERATOR 85
4.5 DOMAIN FRAMEWORK AND TARGET ENVIRONMENT
A domain framework provides the interface between the generated code and the
underlying target environment. It is not needed in all cases though: for example, if the
generated code can directly be the input for some engine or call the interface of the
target environment. More often, though, a DSM solution uses some framework utility
code or components to make the generated code simpler.
4.5.1 Target Environment
Before inspecting the domain framework let??™s ?¬?rst look at the underlying target on
which our generated applications run (Fig. 4.7).We may view the target environment
as consisting of different infrastructure layers. We need at least some of these layers
regardless of whether our applications are programmed manually or generated
automatically. All these layers exist partly because they improve developer
productivity.
Pages:
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186