4. Please describe the use case analysis steps in OOA/D (Score 7).
补充用例说明。
找出用例中的行为,把行为合理分配给各个类。
对每一个分析出来的类,描述其职责,属性,和类间的关联,限定分析机制。 统一分析类。
查检分析过程和结果。
四、判断改错题(本大题共5分)
Suppose the employee of a software company can be classified by some role such as coder、project manager and software engineer. The UML diagram below is suggested as a solution to meet the change of the role of a company employee. Please judge whether the solution is true or not and explain why you make such a judgment. Please give your correction of the diagram when it is wrong (Score 5).
CompanyEmployeeCoderProjectManagerSoftwareEngineer
五、建模分析题(本大题共30分)
Suppose you are asked for developing a point of sale (POS) system using OOA/D technologies. A POS system is a computerized application used to record sales and handle payments and it is typically used in a retail store. Processing sale would be one of the key functions that the system has to perform. Please model the key function via the methodology of object-oriented analyze and design.
Suppose the simplified context of processing sale is under-consideration: a customer arrives at a checkout of a retail store with items to purchase. The cashier uses register of the POS system to record each purchased item. Each of the items is described a product specification, which belongs to a product catalogue. The system presents a running total and line-item details. The customer enters payment information, which the system validates and records. The system updates inventory (inventory: The quantity of goods in stock. ). The customer receives a receipt from the system and then leaves with the items and the sale is logged on a ledger with which the manager can checked the information for a period of time.
1. Draw a UML use case diagram for the system including their relationships (Score
5).
《软件需求分析、设计与建模》试卷 A 第4页 共9页
2. Give the class diagram with the analysis classes representing business entities involved in the system (names and brief descriptions only – no attributes orperations), along with their relationships and multiplicities (Score 10).
3. Give the boundary classes、control classes and entity classes involved in the
system to bear responsibility of “process sale” in the case of J2EE (names and brief descriptions with UML class stereotypes only – no attributes or operations) (Score 5).
《软件需求分析、设计与建模》试卷 A 第4页 共9页
4. Draw a UML sequence diagram to model the use case of process sale” in the
case of J2EE (Score 10).
《软件需求分析、设计与建模》试卷 A 第4页 共9页