




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Suggested answer for Exercise 4.1In this situation, the manager is not drawing the distinction between the users of a system and the roles they can play when using the system, represented by actors. The existence of an actor in a use case model does not imply that there is a particular individual restricted to that role. Any of the restaurants staff who are able to record reservations will be able to do so by adopting for the purpose the Receptionist role, or acting as a Receptionist. In practice, this might mean no more than logging on to the system using a particular user id.Suggested answer for Exercise 4.2The redrawn use case diagram is shown below. When the Staff actor is removed, the association with the Display Bookings use case must be shown explicitly for both the Receptionist and Head Waiter actors. The actors have been shown twice to simplify the drawing of the associations; this has no effect on the meaning of the diagram. This diagram is not quite equivalent to Figure 4.7. Both diagrams specify the same capabilities for the Receptionist and Head Waiter actors, but in addition Figure 4.7 defines an actor Staff who only has the ability to display bookings. No such actor is defined in the diagram above, though a Staff actor could easily be added if required. Because this is a simple diagram, there is not much difference in complexity between the two versions. In more complicated diagrams, however, the use of actor generalization can significantly reduce the number of associations that have to be shown, thus simplifying the diagram. The use of superactors also makes it easier to see when use cases can be performed by a variety of actors. Suggested answer for Exercise 4.3The following scenario describes a possible approach to this situation. Record booking - double booked table: exceptional course of events 1. The receptionist performs the Display Bookings use case for the date requested by the customer. 2. There is a suitable table available: the receptionist enters the customers name and phone number, the time of the reservation, the number of covers and the table number. 3. The data entered overlaps with another booking made for the same table; the system issues a message informing the receptionist of this. 4. The receptionist acknowledges the message, and the use case terminates with no reservation being made. I have classified this as an exceptional course of events because it arises from a mistake made by the user that results in a divergence from the basic course of events.Suggested answer for Exercise 4.4The answer to this question depends in part on how the record arrival operation is made available to users. If, for example, a pop-up menu presents the operations available on the selected booking, the record arrival option could be disabled in the case where arrival has already been recorded for the selected booking. If this approach was adopted, no alternative or exceptional course of events would be required, as the system would automatically prevent the situation arising. Alternatively, the system could detect this situation and warn the user appropriately, as described below. Record arrival - arrival already recorded: exceptional course of events 1. The head waiter performs the Display Bookings use case for the date requested by the customer. 2. The head waiter confirms arrival for a selected booking. 3. The booking is already recorded as arrived, so the system displays a warning message without altering the booking. 4. The head waiter confirms that no action is to be taken. Suggested answer for Exercise 4.5The most obvious exceptional case is if the user enters a date that is in some way invalid. Display bookings - invalid date: exceptional course of events 1. The user enters a date. 2. The date was invalid in some way, perhaps wrongly formatted or something like 31 February, 2004. The system reports the error to the user and prompts for the date to be reentered. The case where there are no bookings to be displayed for the date selected is not really an alternative course of events, as it is implicitly included in the basic course: if there are no bookings, the system simply has nothing to display for that date.Suggested answer for Exercise 4.6Various alternative and exceptional courses of events for these use cases are listed and briefly described below. Cancel bookings - invalid date: exceptional course of events 1. The receptionist performs the Display Bookings use case for the date given by the customer. 2. The receptionist selects and cancels the relevant reservation. 3. The date of the booking is prior to the current date: the system displays a suitable error message and the booking is not cancelled. Cancel bookings - booking arrived: exceptional course of events 1. The receptionist performs the Display Bookings use case for the date given by the customer. 2. The receptionist selects and cancels the relevant reservation. 3. The booking is already recorded as having arrived: the system displays a suitable error message and the booking is not cancelled. Table transfer - table too small: exceptional course of events 1. The head waiter performs the Display Bookings use case for the current date. 2. The head waiter selects the required booking. 3. The head waiter changes the table allocation of the booking. 4. The number of covers recorded for the booking is larger than the maximum specified size of the new table, so the system issues a warning message asking the head waiter if the transfer should go ahead. 5. If the answer is no, the booking is not modified. 6. If the answer is yes, the system records the alteration and updates the display. Table transfer - invalid date: exceptional course of events 1. The head waiter performs the Display Bookings use case for the current date. 2. The head waiter selects the
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 企业公司安全生产事故应急预案
- 2025年中国橡塑合金行业市场分析及投资价值评估前景预测报告
- 2024-2025学年八年级物理下册 第七章 运动和力 七 牛顿第一定律说课稿 (新版)北师大版
- 2023四年级语文上册 第七单元 22 为中华之崛起而读书配套说课稿 新人教版
- 2024年九年级语文上册 第一单元 文化生活 第3课《谢道韫咏絮》说课稿 沪教版五四制
- 5G网络资源动态分配-洞察与解读
- 城市治理跨国经验-洞察与解读
- 老年艺术团体组建企业制定与实施新质生产力项目商业计划书
- 计算机及辅助设备市场管理服务创新创业项目商业计划书
- 欣赏 雪花飞舞说课稿-2025-2026学年小学音乐三年级上册(2024)人音版(2024 主编:赵季平杜永寿)
- 选矿厂安全风险分级管控
- 无人驾驶物流车辆测试与验证方案书
- 糖尿病患者的个性化诊治策略
- 2025年山东省滨州市中考数学模拟试题(原卷版+解析版)
- 2025年福建福州空管航空服务有限公司招聘笔试参考题库含答案解析
- 2025-2030年中国集装箱制造行业运行状况及前景趋势分析报告新版
- 【MOOC】石油工业概论-中国石油大学(华东) 中国大学慕课MOOC答案
- 2024年历史教案:跨学科的教学方法与实践
- 湖北省重点高中智学联盟2024-2025学年高三上学期10月联考物理试题(解析版)
- 海关报关操作手册
- 三点比较式臭袋法方法验证报告
评论
0/150
提交评论