Use Case Diagram Library System Books and journals

Use Case Diagram : Library System Books and journals The library contains books and journals. It may have several copies of a given book. Some of the books are for short term loans only. All other books may be borrowed by any library member for three weeks. Members of the library can normally borrow up to six items at a time, but members of staff may borrow up to 12 items at one time. Only members of staff may borrow journals. Borrowing The system must keep track of when books and journals are borrowed and returned, enforcing the rules described above. Browsing The system should allow users to search for a book on a particular topic, by a particular author etc. , to check whether a copy of book is available for loan and, if not, to reserve the book. Anybody can browse in the library. TCP 1311 -Slide 06 1

Use Case Diagram : Library Systems : Actor TCP 1311 -Slide 06 2

Use Case Diagram : Library Systems : Use Case TCP 1311 -Slide 06 3

Use Case Diagram : Library Systems : Use Case Diagram TCP 1311 -Slide 06 4

Use Case Diagram : Library Systems : <<include>> TCP 1311 -Slide 06 5

Use Case Diagram : Library Systems : <<extend>> TCP 1311 -Slide 06 6

Use Case Diagram : Library Systems : <<extend>> with extension point TCP 1311 -Slide 06 7

Use Case Diagram : Library Systems : Generalization Every human Journal. Borrower is a Book. Borrower TCP 1311 -Slide 06 8

Use Case Diagram: Library System TCP 1311 -Slide 06 9

Class Diagram : Library System: Identifying Classes Take a list of candidates classes by underlining the nouns and noun phrases. Books and journals The library contains books and journals. It may have several copies of a given book. Some of the books are for short term loans only. All other books may be borrowed by any library member for three weeks. Members of the library can normally borrow up to six items at a time, but members of staff may borrow up to 12 items at one time. Only members of staff may borrow journals. Borrowing The system must keep track of when books and journals are borrowed and returned, enforcing the rules described above. TCP 1311 -Slide 06 10

Class Diagram : Library System: Identifying Classes From the list of candidates classes, the following are discarded as they are obviously not good candidate class. • library, because it is outside the scope of the system; • short term loan, because a loan is really an event, the lending of a book to a user, which so far as we know is not useful object in this system; • member of the library, redundant with library member; • week, it is a measure of time, not a thing; • item, it means book or journal; • time, it is outside the scope of the system; • system, it is part of meta-language of requirements description, not part of the domain; • rule, for the same reason. TCP 1311 -Slide 06 11

Class Diagram : Library System: Identifying Classes Possible classes: TCP 1311 -Slide 06 12

Class diagram : Library System TCP 1311 -Slide 06 13

Sequence diagram : Library System TCP 1311 -Slide 06 14

Collaboration diagram: Library System TCP 1311 -Slide 06 15

State diagram : Library System Class Copy with action TCP 1311 -Slide 06 16

State diagram : Library System Class Book TCP 1311 -Slide 06 17
- Slides: 17