0% found this document useful (0 votes)
626 views

Use Case Diagram For The Library.: Reserve Book Browse

The document describes a class model for a library system. It includes use case diagrams showing the interactions between library members and librarians for borrowing and returning books and journals. An activity diagram shows the steps in the borrowing and returning process. Class diagrams define the key classes like LibraryMember, Book, Copy, and Journal and their relationships. Sequence diagrams demonstrate example interactions and state diagrams model the states of books.

Uploaded by

pragatimit
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
626 views

Use Case Diagram For The Library.: Reserve Book Browse

The document describes a class model for a library system. It includes use case diagrams showing the interactions between library members and librarians for borrowing and returning books and journals. An activity diagram shows the steps in the borrowing and returning process. Class diagrams define the key classes like LibraryMember, Book, Copy, and Journal and their relationships. Sequence diagrams demonstrate example interactions and state diagrams model the states of books.

Uploaded by

pragatimit
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Reserve book Browse

Browser
BookBorrower

Borrow copy
of book

Return copy
of book

Extend loan
Update
catalog

Borrow
journal
Librarian

Return
JournalBorrower journal

Figure 3.1 Use case diagram for the library.


Borrow
journal
Borrow copy
of book

Return
BookBorrower JournalBorrower journal

Return copy
of book

Figure 3.2 Use case diagram for the first iteration.


member librarian

[borrower] find book


on shelf

[returner]

wait in queue

[returning]

[borrowing]

record put book back


return on shelf

record
borrowing

prepare for
next member

Figure 11.7 Business level activity diagram of the library.


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 jour-
nals.
Borrowing The system must keep track of when books and journals are borrowed and returned, enforcing
the rules described above.

Figure 3.3 Nouns and noun phrases in the library.


Book

1
is a copy of

1..*

borrows/returns Copy
LibraryMember
1
0..*
0..*

borrows/returns
1

MemberOfStaff borrows/returns Journal

1 0..*

Figure 3.4 Initial class model of the library.


Book

1
is a copy of

1..*

borrows/returns Copy
LibraryMember
1
0..*

MemberOfStaff borrows/returns Journal

1 0..*

Figure 3.5 Revised library class model.


theLibraryMember : theCopy : Copy theBook : Book
LibraryMember

aMember : BookBorrower
borrow(theCopy)

1: okToBorrow okToBorrow

2: borrow
2.1: borrowed

Figure 3.6 Interaction shown on a sequence diagram.


returned()

returned()
not borrowable borrowable

borrowed()[ last copy]

borrowed()[not last copy]

Figure 3.7 State diagram for class Book.


Analysis

Design

Implementation

Testing

Maintenance

Figure 4.1 A simple waterfall process.


Engineer: Evaluate
design,
implement
test

Analyze requirements Analyze risks and


for this iteration plan

Figure 4.2 A simple spiral process.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy