Exercise - Example Reference Solution
abstract Book// a template for a book
page 2..* // at least 2 pages
xor format// a book can be in only one format at a time
paper
hardcover ?// hardcover is optional and only makes sense when the book is paper
electronic
xor kind// a book can be of one kind at a time
textbook
manual
reference
fiction
nonfiction
// GenerativeProgramming is one of Czarnecki's books
To instantiate this model, you have to set the scope for
page
to 589
and set max int
to
2007
.
Module Statistics:
|
All clafers: 27 | Abstract: 3 | Concrete: 24 | Reference: 10 | Constraints: 13 | Goals: 0 | Global scope: 1..* | Can skip name resolver: no
|
Exercise - Alternative Ways of Modeling
Back Introduction