6.细化阶段.ppt

6.细化阶段

* * 5.2 为什么引入契约概念 用例是统一过程中描述系统行为的主要机制,而且通常也是足够的. 但是,某些时候我们需要对系统行为进行更详细的描述. * * 系统操作和系统接口 : Cashier :System addLineItem itemID, quantity endSale makePayment amount description, total total with taxes change due, receipt * [more items] makeNewSale 输入的系统事件 调用系统操作 系统事件 makeNewSale 调用 系统操作 makeNewSale 等等 这和面向对象编程一样 当我们说 消息 foo 调用了 方法 处理操作 foo * * 契约的例子:enterItem enterItem 契约CO2: enterItem 操作(Operation): enterItem itemID: ItemID, quantity: integer 交叉参考(Cross References): Use Cases: Process Sale 前提(Preconditions): There is a sale underway 后置条件(Postconditions): -一个SalesLineItem的实例

文档评论(0)

1亿VIP精品文档

相关文档