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 585 | Next

Steven Kelly and Juha-Pekka Tolvanen

"Domain-Specific Modeling"


In an object-oriented target language, these data structures will be instances of
classes de?¬?ned by the domain framework. The class structure will mirror the structure
of the corresponding type in the modeling language. Properties will be mapped
into member variables of the class, and some of the relationships and similar links to
other model elements may also become member variables. Relationship types
themselves may sometimes map to their own class, with the main member variables
holding the objects they connect, and extra variables for the properties of the relationship
and roles.
Whatever the type of the target language, such data structures will have associated
behavior. Perhaps more commonly than in traditional frameworks, an important part
of that behavior will be the accessors and constructors. The model contains data in a
format that is easy for a human to work with, but the code that will use these data
structures will want to access it in a machine-friendly format. That transformation can
be accomplished either by the generator, the constructor and/or setter accessor, or the
getter accessor.
In all but the simplest cases, the generator would be a poor place to carry out
this transformation: it is better to keep the code that produces the internal format in
the same place where that format is de?¬?ned.


Pages:
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6