Thenoti?¬?cation type ???Information??? in lines 7 and 8 and the note
text ???Conference registration: Welcome??? in line 9 are taken from the properties of a
model element. These de?¬?ne the text be shownand set the note element type and icon to
CODE GENERATOR 81
be shown to be ???Information???. Similarly, ???welcome??? is the name given for the note
element and the ???ConferenceRegistration??? is taken directly from the name
of the diagram. A developer has speci?¬?ed all these values either by selecting among
existing noti?¬?cation types orby entering thevalues.Therest of the output is producedby
the generator. Most notable is the call to the Symbian and S60 UI framework in line 9.
The structure of the generated code is then dependent on the requirements of the
implementation. The examples in Part III show different kinds of structures for code
output, such as serialization, function calls, case switches, and transition tables. Here
with the C++ code the output follows exactly the same structure that the tutorials on
C++ use for Symbian application development, or that experienced developers in a
company use when writing the code manually.
A code generator can also use a translation mechanism to change the information
entered into the models into a format applicable in the implementation language.
Pages:
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177