架构师训练营 第一周 作业
一、设计需求:
系统中每个消费者都有一张卡,在管理中心注册缴费,卡内记着消费者的身份、余额。
使用时将卡插入收款机则显示卡上金额,服务员按收款机上数字键,收款机自动计算并显示消费额及余额。
管理中心的管理员监视每一笔消费,可打印出消费情况的相关统计数据。
二、 用例图

三、组件图

四、 时序图:
1、开卡

2 充值

3、消费

4、统计

五、部署图:

版权声明: 本文为 InfoQ 作者【李】的原创文章。
原文链接:【http://xie.infoq.cn/article/e92157bf54c598a644340350d】。
本文遵守【CC BY-NC-ND】协议,转载请保留原文出处及本版权声明。
评论 (1 条评论)