14-05-2012, 01:01 PM
E-BOOK READER
Iteration2-Design pattern.docx (Size: 233.15 KB / Downloads: 39)
Design patterns
Information Expert is frequently used in the assignment of responsibilities; it is a basic guiding principle used continuously in object design. Expert is not meant to be an obscure or fancy idea; it expresses the common "intuition" that objects do things related to the information they have.
Information Expert Pattern
We have taken Admin as the information expert pattern in the above domain model because Database class interacts with all the other classes as shown above and all the changes by the operations like Add/Delete/Update affected in Database .
Creator Pattern
Here the role of the creator is taken by Admin because as he creates the new user and new books into the shelf.
High cohesion pattern
It also support High cohesion pattern because the methods that serve the given class tend to be similar in many aspect. In a highly-cohesive system, code readability and the likelihood of reuse is increased, while complexity is kept manageable.
Low level coupling pattern
It does not supports low level coupling pattern too because we have more interaction of one class with other class.