H4: Model Evolution
Monday, Sept 30, 12noon
Recall from class
lectures that we created a metamodel of UML class diagrams that were
limited to Class declarations and Association links. The diagram that
we created is shown below.
Your assignment is to:
this metamodel to include inheritance (generalization) relationships.
The diagram shown below should conform to your metamodel. Use Visio (or
whatever tool) to draw your metamodel.
applicable constraints in ENGLISH. A model without the applicable
constraints is wrong and will lose points.
Carefully explain the semantics of your diagram. The clarity of your
explanation is important in assigning a grade.
- As best as
you can, translate your above constraints into Prolog constraints.
You do NOT have to create a set of Prolog tables (for the
problem below) and evaluate your rules, but frankly, this would be
worth your effort as it would make your next programming assignment
MUCH easier. There
are no errors in the figure below, but it would be really easy to
introduce errors if you wanted to check your constraints.
if you go the Prolog route, here's what to do: in a single
file, define your Prolog tables and constraints. You can then
run SWI Prolog and evaluate your constraints. You don't need MDELite
for this assignment.
Show how you represent the
Shopping Cart diagram below as a collection of interconnected objects
that conform to your metamodel. Use a tabular representation (one table
per class), where each row corresponds to a distinct object.