Exercise 3
Exercise 3
Model of a Library
Erik Perjons
DSV, Stockholm University
Domain Description
• This is a domain description of small university library in Sweden.
• For each book title the library needs to have information about: author, title, publisher, ISBN,
and what category it belongs to. Regarding copies of books, the library needs to have
information of the date of purchase of the copy and which copy number the book has (this
number is provided by the library directly after purchase). This copy number is used to identify
individual copies of a book, because popular books have several copies
• For each borrower, the library needs to have information of national ID Number (called
personal number in Sweden), name, address and library card number
• For each employed librarian, the library needs to have national ID Number (called personal
number in Sweden), name, address, library card number and employee number
• A borrower can borrow books. For each loan, the library needs to know which book copy the
loan concerns, date of the loan, the date when the copy needs be returned. For each loan, a
librarian needs to confirm the loan
• A borrower should also be able to reserve books. The library needs to know which book is
reserved and the reservation date. The borrower could also cancel a reservation.
• Each book categories has a category name and an abbreviation of that category name
Your Task
• Represent the concepts/terms in the domain description by creating a conceptual
model using UML Class Diagram