实验五 活动图
一、实验目的
1.熟悉动态建模的概念和内容。 2.熟悉活动图的基本功能和使用方法。 3. 掌握如何使用建模工具绘制活动图方法。
二、实验器材
1. 计算机一台;
2. Rational Rose 工具软件;
三、实验内容
根据图书馆管理需求分析、用例图、类图等,应针对每个用例进行业务分析,说明其具体的业务流程,完成系统活动图。
四、实验过程和结果
以“删除读者信息”用例为例,说明绘制活动图的步骤。 1.管理员在录入界面,输入待删除的读者名;
2.“业务逻辑”组件在数据库中,查找待删除的读者名;
3.如果不存在,则显示出错信息,返回步骤(1),如果存在则继续; 4.“业务逻辑”组件判断“待删除的读者”是否可以删除;
5.如果不可以,则显示出错信息,返回步骤(8),如果可以则继续; 6.在数据库中,删除相关信息; 7.显示删除成功信息; 8.结束。
以此为例,完成以下活动图: 1) 借阅者的活动图
readerreader use cardreturn the booksrreader use cardexam the libarary cardno damagenot passpassRead books codeNotice have no right to borrow booksexam books informationexam not passreturn book successfine to labararyexam libarary cardnot passpassinquire informationNotice have no right to inquire informationHandle browwersreserverCancel a reservationborrow books succeed
2) 图书管理员的活动图
login on systemget booklend bookif pass the dateif pass the max numberyesaccept moneynonoupdates boirrows informationyes
3) 系统管理员的活动图
login on systemget booklend bookif pass the dateif pass the max numberyesaccept moneynonoupdates boirrows informationyes
五、实验小结