复旦大学:《面向对象分析和设计》课程资料_分析模式_观察和测量模式

数量/ Quantity模式 Slid before 1st Section Divider 随时间变化事物 (Things That 扩 Change with Time 模式 展 Unused 观察和 Section 测量模 Space 2
Slides before 1st Section Divider 随时间变化事物 (Things That Change with Time) 模式 数量/ Quantity模式 Unused Section Space 2 观察和 测量模式 Unused Section Space 3 Unused Section Space 4 Unused Section Space 1 扩展

观察和测量模式 徐迎晓 复旦大学软件学院 xuyingxiao@126.com
观察和测量模式 徐迎晓 复旦大学软件学院 xuyingxiao@126.com

数量/ Quantity ● class Person{ int height; int weight
数量/Quantity class Person{ int height; int weight; … }

Java中已有的 Number ●C| ass number Method Summary byte byte O Returns the value of the specified number as a byte. abstract double O double Returns the value of the specified number as a double abstract float value O float Returns the value of the specified number as a float abstract intValueO ant Returns the value of the specified number as an int abstract long Value long Returns the value of the specified number as a long. short shortValueO Returns the value of the specified number as a short
Java中已有的Number Class Number

Person height: Number weight: Number blood gl ucose le vel Number

数量 Person Quantit height: Quant amount. Number weight: Quantity units: Unit blood glucose level: Quantity
数量

Quantit amount: number unit: UnIt to[unit]: quanity to stinE
Quantity

● arithmetic
arithmetic

Java中已有的Unit o Currency Method Summary Strins getCurrencyCode() Gets the Iso 4217 currency code of this currency. getDefaultFractionDigitsO Gets the default number of fraction digits used with this currency. static Currensz getInst ance(Locale locale) Returns the Currency inst ance for the country of the given locale. static Currensz get Inst ance(String currency Code) Returns the Currency inst ance for the given currency code stran get Sobol( Gets the symbol of this currency for the default locale. Strins get Symbol(Localelocale Gets the symbol of this currency for the specified locale. Strins toString( Returns the iso 4217 currency code of this currency
Java中已有的Unit Currency

Money ● Money是数量的一种特殊实例
Money Money是数量的一种特殊实例
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_UMLProfile.pdf
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_5.5 Iteration 3 持久化框架 DESIGNING A PERSISTENCE FRAMEWORK WITH PATTERNS.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_5.4 Iteration 3 状态图 MODELING BEHAVIOR IN STATECHART DIAGRAMS.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_5.3 Iteration 3 SSD和合约 ADDING NEW SSDs AND CONTRACTS.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_5.2 Iteration 3 领域模型 MODELING GENERALIZATION & REFINING THE DOMAIN MODEL.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_5.1 Iteration 3 用例加关系.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_4.2 Iteration 2 用GoF设计用例实现 DESIGNING USE-CASE REALIZATIONS WITH GoF DESIGN PATTERNS.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_4.1 Iteration 2 GRASP:MORE PATTERNS.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_3.5 Iteration 1 实现模型.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_3.4 Iteration 1 设计模型 GRASP——设计带职责的对象.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_3.4 Head 2 On to Object Design.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_3.4 Head 1 Logical Architecture and UML Package Diagrams.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_3.3 Iteration 1 用例模型——操作合约添加细节.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_3.2 Iteration 1 用例模型——SSD.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_3.1 Iteration 1 领域模型——概念的可视化.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_2 Inception 用例模型和其他需求.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_1.4 案例分析.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_1.3 迭代式开发和UP.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_1.2 UML概念、历史简介.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML&GRASP_1.1 面向对象分析与设计.ppt
- 复旦大学:《面向对象分析和设计》课程资料_分析模式_责任模式 Accountability.pdf
- 复旦大学:《面向对象分析和设计》课程资料_AntiPattern_1.JSP J2EE Refactoring Patterns/AntiPatterns.pdf
- 复旦大学:《面向对象分析和设计》课程资料_AntiPattern_2.Servlet.pdf
- 复旦大学:《面向对象分析和设计》课程资料_Error Handling.pdf
- 复旦大学:《面向对象分析和设计》课程资料_Exception handling refactorings.pdf
- 复旦大学:《面向对象分析和设计》课程资料_课程注册系统_1-5 最佳实践、需求、分析设计、架构分析、用例分析.pdf
- 复旦大学:《面向对象分析和设计》课程资料_课程注册系统_6-8 Identify Design Elements、RunTime Architecture、Describe Distribution.pdf
- 复旦大学:《面向对象分析和设计》课程资料_课程注册系统_9-11 UC Design、Subsystem Design、Class Design.pdf
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 1 - 面向对象分析和设计.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 2 - 迭代、进化和敏捷.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_OOP:Object-Oriented Programming.pptx
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 3 - 案例分析 THE NEXTGEN POS SYSTEM.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 4 Chapter 5 - 初始阶段的需求.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 6 - 用例.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 7 - 其他需求.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 8 - 细化阶段的迭代——基础.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 9 - 领域模型.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 10 - 系统顺序图.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 11 - 操作契约.ppt
- 复旦大学:《面向对象分析和设计》课程资料_UML和模式_Chapter 13 - 逻辑架构和UML包图.ppt