Mod04 analysis designphase

626 views

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
626
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mod04 analysis designphase

  1. 1. Mod04 Analysis & Design 分析與設計 1
  2. 2. 課程大綱 ·•資料分析/設計 ·•元件分析/設計 ·•流程分析/設計 2
  3. 3. 資料分析/設計 ·•找出完成系統功能所需要的資料 ·•Database Table 與 Class 設計的基礎 ·•Domain Model / Data Model ·•Class diagram / Object diagram 3
  4. 4. Classes Class Name Attributes Operations A class is a template for actual, in- memory, instances 4
  5. 5. Attributes - Signature [visibility] name [[multiplicity]] [: type] [=initial value] [{property}] + isLightOn : boolean = false - numOfPeople : int mySport + passengers : Customer[0..10] - id : long {readOnly} 5
  6. 6. Operations - Signature [visibility] name [(parameter-list)] [: return-type] [{property}] + isLightOn() : boolean + addColor(newColor : Color) + addColor(newColor : Color) : void # convertToPoint(x : int, y : int) : Point - changeItem([in] key : string, [out] newItem : Item) : int 6
  7. 7. 7 Visibility We will try to keep the visibility as minimal as possible 7
  8. 8. Lab4.1 Domain Model 8
  9. 9. 9 Relations Dependency Association Composition Aggregation 請參考 Class Relations.docx 9
  10. 10. Lab4.2 Class Relations 10
  11. 11. Class Types / Relations 11
  12. 12. Lab4.3 Object-Orientation 12
  13. 13. 13 Object Diagram In an Object Diagram, class instances can be modeled In runtime Class Diagram Object Diagram 13
  14. 14. Lab4.4 Object diagram 14
  15. 15. 元件分析/設計 ·•模組化關鍵 ·•Package diagram ·•Class / Component diagram 15
  16. 16. Package diagram ·•Java package ·•.NET namespace ·•Folders in file system ·•程式分類 16
  17. 17. Package diagram 17
  18. 18. Component Analysis 18
  19. 19. Component A & D 19
  20. 20. Lab4.5 Component A & D 20
  21. 21. 流程分析/設計 ·•Operations ·•Communication / Sequence diagram ·•Statemachine diagram 21
  22. 22. Communication diagram 22
  23. 23. Lab4.6 Communication diagram 23
  24. 24. Sequence diagram 24
  25. 25. Lab4.7 Sequence diagram 25
  26. 26. Statemachine diagram 26
  27. 27. Lab4.8 Turnstile ThankYouLight CoinBox Lock AlarmGate Turnstile OutOfServiceLight 27

×