您好,欢迎来到华佗小知识。
搜索
您的当前位置:首页实验5活动图

实验5活动图

来源:华佗小知识
实验五 活动图

一、实验目的

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

五、实验小结

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo0.cn 版权所有 湘ICP备2023017654号-2

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务