L4实验四类图及对象图.docx

上传人:b****9 文档编号:23340670 上传时间:2023-05-16 格式:DOCX 页数:13 大小:316.16KB
下载 相关 举报
L4实验四类图及对象图.docx_第1页
第1页 / 共13页
L4实验四类图及对象图.docx_第2页
第2页 / 共13页
L4实验四类图及对象图.docx_第3页
第3页 / 共13页
L4实验四类图及对象图.docx_第4页
第4页 / 共13页
L4实验四类图及对象图.docx_第5页
第5页 / 共13页
点击查看更多>>
下载资源
资源描述

L4实验四类图及对象图.docx

《L4实验四类图及对象图.docx》由会员分享,可在线阅读,更多相关《L4实验四类图及对象图.docx(13页珍藏版)》请在冰豆网上搜索。

L4实验四类图及对象图.docx

L4实验四类图及对象图

闽江学院软件学院

实验报告

实验名称类图及对象图

实验项目图书馆的图书借阅

专业班级09计办

(2)班姓名柯娟娟学号220097109210

指导教师周翔成绩日期2011-10-15

一、实验目的

1.了解什么是类图与对象图

2.熟悉掌握类图和对象图的绘制

二、实验内容和步骤

1.对图书馆的图书借阅进行分析,然后绘制出类图及对象图。

1)研究分析问题领域,确定系统需求;

2)确定类,明确类的含义和职责,确定类的属性和操作;

3)确定类之间的关系。

关联,泛化,聚集,组合,依赖;

4)调整和细化类及其关系,解决重复和冲突;

5)绘制类图,并增加相应说明。

6)绘制对象图,并增加相应说明。

三、实验结果

1.实体类:

用户表(UserInfo),权限表(PopedomInfo),读者信息表(ReaderInfo),读者类型表(ReaderType),图书信息表(Books),图书类型表(BooksType),图书借阅表(BookBorrowInfo),历史借阅表(BookHistoryInfo)

2.实体类的表示:

用户表(UserInfo):

-userId:

int;//用户编号

+UserId:

int{R/W};

-userName:

string;//用户名

+UserName:

string{R/W};

-passWord:

string;//用户密码

+PassWord:

string{R/W};

-popedomId:

int;//权限编号

+PopedomId:

int{R/W};

权限表(PopedomInfo):

-popedomId:

int;//权限编号

+PopedomId:

int{R/W};

-popedomName:

string;//权限名

+PopedomName:

string{R/W};

-newBookInfo:

string;//新书入库

+NewBookInfo:

string{R/W};

-newReaderInfo:

string;//办理借书证

+NewReaderInfo:

string{R/W};

-addBorrow:

string;//图书借阅

+AddBorrow:

string{R/W};

-delBorrow:

string;//图书归还

+DelBorrow:

string{R/W};

-aginAddBorrow:

string;//图书续借

+AginAddBorrow:

string{R/W};

-bookSearch:

string;//图书查询

+BookSearch:

string{R/W};

-readSearch:

string;//读者查询

+ReadSearch:

string{R/W};

-popedom:

string;//权限管理

+Popedom:

string{R/W};

-logOut:

string;//注销用户

+LogOut:

string{R/W};

-bookHistory:

string;//历史查询

+BookHistory:

string{R/W};

读者信息表(ReaderInfo)

-readId:

int;//读者编号

+ReadId:

int{R/W};

-readName:

string;//读者姓名

+ReadName:

string{R/W};

-readSex:

string;//读者性别

+ReadSex:

string{R/W};

-readAge:

int;//读者年龄

+ReadAge:

int{R/W};

-readTypeId:

int;//读者类型编号

+ReadTypeId:

int{R/W};

-readUnit:

string;//读者单位

+ReadUnit:

string{R/W};

-alreadyNum:

int;//已借数量

+AlreadyNum:

int{R/W};

读者类型表(ReaderType)

-readTypeId:

int;//读者类型编号

+ReadTypeId:

int{R/W};

-readTypeName:

string;//读者类型名称

+ReadTypeName:

string{R/W};

-limitNum:

int;//限借数量

+LimitNum:

int{R/W};

-limitDays:

int;//限借期限天数

+LimitDays:

int{R/W};

图书信息表(Books)

-bookId:

int;//图书编号

+BookId:

int{R/W};

-bookName:

string;//图书名称

+BookName:

string{R/W};

-isBN:

int;//图书ISBN号

+IsBN:

int{R/W};

-bookTypeId:

int;//图书类型编号

+BookTypeId:

int{R/W};

-bookTypeName:

string;//图书类型名称

+BookTypeName:

string{R/W};

-id:

int;//所在书库编号

+Id:

int{R/W};

-author:

string;//作者

+Author:

string{R/W};

-bookPublish:

string;//出版社

+BookPublish:

string;

-bookPubDate:

DateTime;//出版日期

+BookPubDate:

DateTime{R/W};

-bookPrice:

double;//价格

+BookPrice:

double{R/W};

-bookState:

string;//在库状态

+BookState:

string{R/W};

 

图书类型表(BooksType)

-id:

int;//所在库编号

+Id:

int{R/W};

-typeName:

string;//图书所在库名称

+TypeName:

string{R/W};

图书借阅表(BookBorrowInfo)

-bookId:

int;//图书编号

+BookId:

int{R/W};

-readId:

int;//读者编号

+ReadId:

int{R/W};

-borrowDate:

DateTime;//借阅时间

+BorrowDate:

DateTime{R/W};

-limitDate:

DateTime;//限还时间

+LimitDate:

DateTime{R/W};

-returnDate:

DateTime;//归还时间

+ReturnDate:

DateTime;

-overDays:

int;//超期天数

+OverDays:

int{R/W};

-amerce:

double;//罚款

+Amerce:

double{R/W};

历史借阅表(BookHistoryInfo)

-bookId:

int;//图书编号

+BookId:

int{R/W};

-returnDate:

DateTime;//归还时间

+ReturnDate:

DateTime;

-readId:

int;//读者编号

+ReadId:

int{R/W};

-bookName:

string;//图书名称

+BookName:

string{R/W};

-readName:

string;//读者姓名

+ReadName:

string{R/W};

-borrowDate:

DateTime;//借阅时间

+BorrowDate:

DateTime{R/W};

-limitDate:

DateTime;//限还时间

+LimitDate:

DateTime{R/W};

-eState:

string;//在库状态

+Estate:

string{R/W};

-amerce:

double;//罚款

+Amerce:

double{R/W};

3.边界类:

登陆页面(下拉框的设置)(Login.aspx),图书页面(Book.aspx),借阅页面(Borrow.aspx),借阅证页面(BorrowCards.aspx)

4.边界类的表示:

登陆页面(下拉框的设置)(Login.aspx)

+login(userinfo:

UserInfo);

 

图书页面(Book.aspx)

+book(books:

Books);

借阅页面(Borrow.aspx)

+borrow1(bookborrowinfo:

BookBorrowInfo);

+borrow2(bookhistoryinfo:

BookHistoryInfo);

借阅证页面(BorrowCards.aspx)

+borrowCards(popedominfo:

PopedomInfo);

 

5.控制类:

用户管理(UserInfoManage),权限管理(PopedomInfoManage),读者管理(ReaderInfoManage),读者类型管理(ReaderTypeManage),图书信息管理(BooksManage),图书类型管理(BooksTypeManage),图书借阅管理(BookBorrowInfoManage),历史借阅管理(BookHistoryInfoManage)

6.控制类的表示:

用户管理(UserInfoManage):

+Login(userinfo:

UserInfo):

UserInfo//登录验证

+Insert(userinfo:

UserInfo):

bool//添加

+Modify(userinfo:

UserInfo):

bool//修改

+Delete(userinfo:

UserInfo):

bool//删除

+GetUserInfos(start:

int,max:

int):

DataTable//分页获取

+GetUserInfos():

DataTable//获取所有

+GetUserInfo(userName:

string):

UserInfo//获取

+GetUserInfo(userId:

int):

UserInfo

+Query(userinfo:

UserInfo):

DataTable//根据指定的关键字进行筛选,查询过结果集。

+Query(userinfo:

UserInfo,start:

int,max:

int):

DataTable//根据指定的关键字进行筛选,分页查询过结果集

 

权限管理(PopedomInfoManage)

+Insert(popedominfo:

PopedomInfo):

bool//添加

+Modify(popedominfo:

PopedomInfo):

bool//修改

+Delete(popedominfo:

PopedomInfo):

bool//删除

+GetPopedomInfos(start:

int,max:

int):

DataTable//分页获取

+GetPopedomInfos():

DataTable//获取所有

+GetPopedomInfo(popedomName:

string):

PopedomInfo//获取

+GetPopedomInfo(popedomId:

int):

PopedomInfo

+Query(popedominfo:

PopedomInfo):

DataTable//根据指定的关键字进行筛选,查询过结果集。

+Query(popedominfo:

PopedomInfo,start:

int,max:

int):

DataTable//根据指定的关键字进行筛选,分页查询过结果集

 

读者管理(ReaderInfoManage)

+Insert(readerinfo:

ReaderInfo):

bool//添加

+Modify(readerinfo:

ReaderInfo):

bool//修改

+Delete(readerinfo:

ReaderInfo):

bool//删除

+GetReaderInfos(start:

int,max:

int):

DataTable//分页获取

+GetReaderInfos():

DataTable//获取所有

+GetReaderInfo(readName:

string):

ReaderInfo//获取

+GetReaderInfo(readId:

int):

ReaderInfo

+Query(readerinfo:

ReaderInfo):

DataTable//根据指定的关键字进行筛选,查询过结果集。

+Query(readerinfo:

ReaderInfo,start:

int,max:

int):

DataTable//根据指定的关键字进行筛选,分页查询过结果集

读者类型管理(ReaderTypeManage)

+Insert(readertype:

ReaderType):

bool//添加

+Modify(readertype:

ReaderType):

bool//修改

+Delete(readertype:

ReaderType):

bool//删除

+GetReaderTypes(start:

int,max:

int):

DataTable//分页获取

+GetReaderTypes():

DataTable//获取所有

+GetReaderType(readTypeName:

string):

ReaderType//获取

+GetReaderType(readTypeId:

int):

ReaderType

+Query(readertype:

ReaderType):

DataTable//根据指定的关键字进行筛选,查询过结果集。

+Query(readertype:

ReaderType,start:

int,max:

int):

DataTable//根据指定的关键字进行筛选,分页查询过结果集

 

图书信息管理(BooksManage)

+Insert(books:

Books):

bool//添加

+Modify(books:

Books):

bool//修改

+Delete(books:

Books):

bool//删除

+GetBookss(start:

int,max:

int):

DataTable//分页获取

+GetBookss():

DataTable//获取所有

+GetBooks(bookName:

string):

Books//获取

+GetBooks(bookId:

int):

Books

+Query(books:

Books):

DataTable//根据指定的关键字进行筛选,查询过结果集。

+Query(books:

Books,start:

int,max:

int):

DataTable//根据指定的关键字进行筛选,分页查询过结果集

图书类型管理(BooksTypeManage)

+Insert(bookstype:

BooksType):

bool//添加

+Modify(bookstype:

BooksType):

bool//修改

+Delete(bookstype:

BooksType):

bool//删除

+GetBooksTypes(start:

int,max:

int):

DataTable//分页获取

+GetBooksTypes():

DataTable//获取所有

+GetBooksType(typeName:

string):

BooksType//获取

+GetBooksType(id:

int):

BooksType

+Query(bookstype:

BooksType):

DataTable//根据指定的关键字进行筛选,查询过结果集。

+Query(bookstype:

BooksType,start:

int,max:

int):

DataTable//根据指定的关键字进行筛选,分页查询过结果集

图书借阅管理(BookBorrowInfoManage)

+Insert(bookborrowinfo:

BookBorrowInfo):

bool//添加

+Modify(bookborrowinfo:

BookBorrowInfo):

bool//修改

+Delete(bookborrowinfo:

BookBorrowInfo):

bool//删除

+GetBookBorrowInfos(start:

int,max:

int):

DataTable//分页获取

+GetBookBorrowInfos():

DataTable//获取所有

+GetBookBorrowInfo(bookId:

int):

BookBorrowInfo//获取

+Query(bookborrowinfo:

BookBorrowInfo):

DataTable//根据指定的关键字进行筛选,查询过结果集。

+Query(bookborrowinfo:

BookBorrowInfo,start:

int,max:

int):

DataTable//根据指定的关键字进行筛选,分页查询过结果集

历史借阅管理(BookHistoryInfoManage)

+Insert(bookhistoryinfo:

BookHistoryInfo):

bool//添加

+Modify(bookhistoryinfo:

BookHistoryInfo):

bool//修改

+Delete(bookhistoryinfo:

BookHistoryInfo):

bool//删除

+GetBookHistoryInfos(start:

int,max:

int):

DataTable//分页获取

+GetBookHistoryInfos():

DataTable//获取所有

+GetBookHistoryInfo(bookName:

string):

BooksType//获取

+GetBookHistoryInfo(bookId:

int):

BooksType

+Query(bookhistoryinfo:

BookHistoryInfo):

DataTable//根据指定的关键字进行筛选,查询过结果集。

+Query(bookhistoryinfo:

BookHistoryInfo,start:

int,max:

int):

DataTable//根据指定的关键字进行筛选,分页查询过结果集

7.类图

8.对象图:

 

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 考试认证 > 交规考试

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1