Unit 4
Unit 4
• During object design we build an object design model that realizes the use case model and it is the
basis for implementation (model-driven design)
• The Reality
• Working on the object design model involves many activities that are error prone
• Additional attributes are added to an entity object, but the database table is not updated (as a
result, the new attributes are not persistent).
• The associations of the object model must be transformed into collections of object references
• Many programming languages do not support contracts (invariants, pre and post conditions)
• Developers must therefore manually transform contract specification into source code for
detecting and handling contract violations
• The developer must change the interface specification of the involved classes
• All these object design activities cause problems, because they need to be done manually.
• Model transformation,
• Forward engineering,
• Reverse engineering,
• Refactoring.