详细设计和框架映射

本文介绍了一个基于BCE实现的makereservation用例详细设计过程,包括用例简介、顺序图及类图等内容。设计覆盖了从用户搜索酒店到完成预订的全过程,涉及多个边界/UI类和实体类。

BCE 实现用例详细设计

使用 ECB 实现 make reservation 用例的详细设计(包含用例简介,顺序图,类图)。

  1. make reservation 用例简介

    make reservation 系统的用例图如下所示:

    这里写图片描述

    主用例:{Find hotel, Make reservation, Manage basket, Pay}{Find hotel, Make reservation, Manage basket, Pay}

    子用例:
    {Select city location, Select in&out date, Choose hotel, Choose room type, Confirm reservation, Select credit cards, Browse location selections, Specify number of nights, Search again, Sort, Modify date, Specify number of people and rooms, Enter name and email}{Select city location, Select in&out date, Choose hotel, Choose room type, Confirm reservation, Select credit cards, Browse location selections, Specify number of nights, Search again, Sort, Modify date, Specify number of people and rooms, Enter name and email}

    根据以上用例,可以识别得到以下的 BCE 类:

    • Boundary/UI 类:
      • FindHotelPage: Displays the reservation page and asks the the online traveler/customer to type in the destination city, select the check in date and either specify the number of nights or select the check out date. It also allows the customer to choose city by browsing the city selection table.
      • SearchResultPage: Displays the result of search from FindHotelPage.
      • RoomSituationPage: Displays the room availability and price (if some rooms are available) or shows the unavailability information (if not). It also allows the customer to modify the check in date and the number of nights. It also invites the customer to specify required rooms and the number of adults and children in each room.
      • BasketPage: Displays the contents of the basket of the current customer and allows him to add or remove his reservation items as well as pay for them.
    • Controller 类:
      • Controller: Handle the trigerred events and communications between Boundary and Entity.
    • Entity 类:
      • Reservation: Records the orders of all reservations.
      • Location: Records the locations of all hotels.
      • Hotel: Records the information of all hotels.
      • Room: Records the rooms of the hotel.
  2. make reservation 顺序图

    这里写图片描述

  3. make reservation 类图

    这里写图片描述

框架映射

将逻辑设计类图映射到实际项目框架的包图。用树形结构表述实现的包和类。

这里写图片描述

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值