软件工程第二次作业

软件工程第二次作业

8.5 The department of public works for a large city has decided to develop a Web-based pothole tracking and repair system(PHTRS). Draw a UML use case diagram for the PHTRS system. You’ll have to make a number ofassumptions about the manner in which a user interacts with this system. A description follows:

  • Citizens can log onto a website and report the location and severity of potholes. As potholes are reported they are logged with a “public works department repair system” and are assigned an identifying number, stored by street address, size(on a scale of 1 to 10), location(middle, curb, etc.),district(determined from street address), and repair priority(determined from the size of the pothole). Work order data are associated with each pothole and include pothole location and size, repair crew identifying number, number of people on crew, equipment assigned, hours applied to repair, hole status(work in progress, repaired, temporary repair, not repaired), amount of filler material used, and cost of repair (computed from hours applied, number of people, material and equipment used). Finally, a damage file is created to hold information about reported damage due to the pothole and includes citizen’s name, address, phone number, type of damage, and dollar amount of damage, PHTRS is an online system; all queries a to be made interactively.
软件工程第二次作业_第1张图片
1. UML 用例

8.6 Write two or three use cases that describe the roles of various actors in the PHTRS .

用例1:填报情况

参与者:市民

  1. 市民登录PHTRS上
  2. 市民输入账号
  3. 市民输入两个密码(每个至少8个字符长度)
  4. 系统显示所有主要功能按钮
  5. 市民从主要功能中选择“填报”
  6. 市民填写街道地址,大小,位置,地区,以及修补优先级
  7. 市民选择保存
  8. 系统为该填报分配一个标识号
  9. 生成订单发送给公共工程部人员

用例2:填写工作表

参与者:施工人员

  1. 施工人员登录PHTRS上
  2. 施工人员输入账号
  3. 施工人员输入两个密码(每个至少8个字符长度)
  4. 系统显示所有主要功能按钮
  5. 施工人员从主要功能中选择“填写工作表”
  6. 系统显示该施工人员所分配的工作订单
  7. 施工人员选择对应工作订单
  8. 施工人员填写人员数量,分配的设备,修复耗时,坑洼状态,填充材料,修复成本等信息
  9. 施工人员提交

8.7 Develop an activity diagram for one aspect of PHTRS.

软件工程第二次作业_第2张图片
2. 施工人员填写工作表的活动图

8.8 Develop a swimlane diagram for one or more aspects of PHTRS.

软件工程第二次作业_第3张图片
3. 施工人员填写工作表的泳道图

你可能感兴趣的:(软件工程第二次作业)