领域模型一一避免软件制品或 米 Sales Database software artifact: not of domain model Sale software class; not pal date of domain model time printo
领域模型——避免软件制品或 类
Records-sale-of Described-b Product Product Specification Catalog Contains description price iteml 0 Used-by Describe: Sales Lineltem Store Item Stocks quantity 1 address 1 name Contained-In Houses completed 1 Sale Register Started-by Manager date Captured-on time Paid-by/7/1 Initiated-by Records-sales-on Payment Customer Cashier amount Figure 12.9 a partial domain model
什么是领域模型 概念类 识别和提取概念类 创建领域模型步骤 ●几个问题 ●命名 °概念类or属性? ●属性与外键 数量和单位 添加 Specification/ description 相似概念问题 Modeling the Unreal World ●不同视角的模型
什么是领域模型 概念类 识别和提取概念类 创建领域模型步骤 几个问题 ⚫ 命名 ⚫ 概念类or属性? ⚫ 属性与外键 ⚫ 数量和单位 ⚫ 添加Specification/ description ⚫ 相似概念问题 ⚫ Modeling the Unreal World 不同视角的模型 Process
创建领域模型步骤 ●列出候选概念类 在领域模型中画出候选概 添加关系 ●添加属性
创建领域模型步骤 列出候选概念类 在领域模型中画出候选概念类 添加关系 添加属性
什么是领域模型 概念类 积别和提取概念类 创建领域模型步骤 几个问题 ●命名 °概念类or属性? ●属性与外键 数量和单位 添加 Specification/ description 相似概念问题 Modeling the Unreal World ●不同视角的模型
什么是领域模型 概念类 识别和提取概念类 创建领域模型步骤 几个问题 ⚫ 命名 ⚫ 概念类or属性? ⚫ 属性与外键 ⚫ 数量和单位 ⚫ 添加Specification/ description ⚫ 相似概念问题 ⚫ Modeling the Unreal World 不同视角的模型 Process