Object Oriented Analysis and Design:Library System

Lab 1:problem statement


Our task is to develop a library management system.We allow people to register as library members.While applying for membership, a person supplies his/her name, phone number and address to the library. The library assigns each member a unique identifier (ID), which is needed for transactions such as issuing books.

We will make the assumption that the collection includes just books.When a book is added to the collection,Its the title, the author’s name, and a unique ID will be recorded.
When it is added to the collection, a book is given a unique identifier by the clerk.
This ID is based on some standard system of classification.
Relatively,we may remove books from the collection for some reasons

When issue a book to a member,a member must identify himself to a clerk and hand over the books.The clerk will register the books as lending status.Any number of books may be checked out in a single transaction.

If a member return a book,he should gives the book to a clerk, who submits the information to the system, which marks the book as ‘Lending status’. If there is a hold on the book, the system should remind the clerk to set the book aside so that the hold can be processed.

When a user wants to put a hold, he/she supplies the clerk with the book’s ID, the user’s ID, and the number of days after which the book is not needed. The clerk then adds the user to a list of users who wish to borrow the book. If the book is not checked out, a hold cannot be placed. To remove a hold,the user provides the book’s ID and the user’s ID.

Customers may walk in and request that several of the books they have checked out be renewed (re-issued). The system must display the relevant books, allow the user to make a selection, and inform the user of the result.

Customers who had placed a hold on a book are notified when the book is returned. This process is done once at the end of each day. The clerk enters the ID for each book that was set aside, and the system returns the name and phone number of the user who is next in line to get the book

Lab 2: Use Case Analysis

在这里插入图片描述

Lab 3: Relationships between Classes


在这里插入图片描述

Lab4: Sequence Diagram


Register:

Register

Borrow:

Borrow
Return:

在这里插入图片描述
Bespoke:

在这里插入图片描述
Extend the time:

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值