您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > 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:
本文标题:L4_实验四_____类图及对象图
链接地址:https://www.777doc.com/doc-3844333 .html