MODELING GENERALIZATION REFINING THE DOMAIN MODEL 徐迎晓 xuyingxiao@126.com 复旦大学软件学院
MODELING GENERALIZATION & REFINING THE DOMAIN MODEL 徐迎晓 xuyingxiao@126.com 复旦大学软件学院
泛化 抽象概念类 考虑关联类 考虑聚合 考虑时间 导出元素 限定符 e Ordered elements ●包的表示及如何分区
泛化 抽象概念类 考虑关联类 考虑聚合 考虑时间 导出元素 限定符 Ordered Elements 包的表示及如何分区
●泛化 ●抽象枧念类 ●考虑关联类 ●考虑聚合 ●考虑时间 ●导出元素 限定符 e Ordered elements ●包的表示及如何分区
泛化 抽象概念类 考虑关联类 考虑聚合 考虑时间 导出元素 限定符 Ordered Elements 包的表示及如何分区
根据本次迭代的需求,从用例描述以及 Concept Category List中提取新的概念 类 CreditCard, CashPayment, CreditPayrnent CreditAuthorization Service
根据本次迭代的需求,从用例描述以及 Concept Category List中提取新的概念 类: ⚫ CreditCard, CashPayment, CreditPayrnent, CreditAuthorizationService,…
对泛化建模 superclass-more general concept these are conceptual classes. not software classes subclass-more Cash Credit Check specialized concept Payment Payment Payment
对泛化建模 Cash Payment Credit Payment Check Payment Payment superclass - more general concept subclass - more specialized concept these are conceptual classes, not software classes
Paymento abstract class indicated by italics amount: Money Cash Credi Check Payment Payment Payment
Cash Payment Credit Payment Check Payment Payment amount : Money abstract class indicated by italics
Payment Payment Cash Credit Check Cash Credit Check Pay ment Payment Payment Payment Payment Payment Class hierarchy with separate and shared arrow notations
Class hierarchy with separate and shared arrow notations
100% Rule Superclass的定义应该100%适用于 subclass ● Subclass必须100%符合 superclassI的: attributes ● associations Payment Pays-for Sale amount: Money Cas h Credit Check Payment Payment Pay ment
100% Rule Superclass的定义应该100%适用于 subclass. Subclass必须100%符合superclass的: ⚫ attributes ⚫ associations
/9/we Subclass is a Superclass e CreditPayment is a payment
Is-a Rule Subclass is a Superclass ⚫ CreditPayment is a Payment
何时定义子类和父类
何时定义子类和父类