SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 310 | Next

Steven Kelly and Juha-Pekka Tolvanen

"Domain-Specific Modeling"

More of these options
will be discussed next as well as in the sections on generator de?¬?nition.
As mentioned, the main UI controls raised the need to specify some Python code
related to models. Three options were provided:
. Code could be added directly to selected model elements. This was considered
best for cases where just a few lines of code may be needed, like an optional
save validation function, which checks the form content before it is saved.
. Code could be reused from the library. Here, a model refers to code available
as a function, and the model only includes the parameters to be passed to the
function. The modeling language was made to allow both black-box and
white-box component libraries so that the modeler could also write function
code. To support code reuse from a library, the modeling language was
extended with a library concept added to the UI controls, navigation ?¬‚ows,
and Note dialog. If this property has a value, it is considered to refer to a
function. During code generation, the functions used are included in the
generated code.
. Code could be added to the generated code. For this purpose, protected regions
were de?¬?ned in the generated code. Basically, all previously de?¬?ned properties
LANGUAGE FOR APPLICATION MODELING 169
were also marked as protected regions so that they could be changed after
generation.


Pages:
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6