Download 5. Object Orientation
Transcript
5.4 5.5 5.6 5.7 5.8 5.9 5.10 5.11 5.12 5.13 5.14 Object Relationship Diagrams .................................................................... 5-17 5.4.1 Object Icons .................................................................................... 5-17 5.4.2 Relationships................................................................................... 5-18 System Behavior ........................................................................................... 5-22 5.5.1 Event-based Partitioning ................................................................. 5-22 5.5.2 External Design (User Manual) ...................................................... 5-23 5.5.3 Use Case Scenarios ......................................................................... 5-23 Object-Oriented Architectural Design ....................................................... 5-25 5.6.1 Object Communication Diagrams (OCD)....................................... 5-25 5.6.2 The Reactive Software Components............................................... 5-27 5.6.3 Scenario Call Trace Design............................................................. 5-29 Synthesizing Object Requirements ............................................................. 5-31 5.7.1 Step 1 - Generate As Scenario-Starting Event List......................... 5-31 5.7.2 Step 2 - Blank Master OCM ........................................................... 5-31 5.7.3 Step 3 - Make an Internal Event Trace for Each Scenario.............. 5-33 5.7.4 Step 4 - Take the Union of All Traces ............................................ 5-39 5.7.5 Miscellaneous.................................................................................. 5-41 Scenario Trace Design.................................................................................. 5-43 5.8.1 Adding and Designing Non-User Scenarios ................................... 5-43 5.8.2 Labelling Semantic Order ............................................................... 5-44 5.8.3 Alternative Control Architectures................................................... 5-44 5.8.4 Centralized Scenario Design........................................................... 5-46 5.8.5 Roundabout Route Scenario Design ............................................... 5-48 5.8.6 Principle Object-based Scenario Design......................................... 5-49 5.8.7 I/O Library Call Placement ............................................................. 5-50 Classes, Instances, and FSMs ...................................................................... 5-51 5.9.1 Finite State Machines...................................................................... 5-51 5.9.2 Class Supervisor and Instances ....................................................... 5-56 Summary ....................................................................................................... 5-59 Appendix A - Database Organization......................................................... 5-61 5.11.1 Why Organize Data Properly? ........................................................ 5-61 5.11.2 B+ Trees.......................................................................................... 5-63 Appendix B - Normalization...................................................................... 5-67 5.12.1 First Normal Form .......................................................................... 5-69 5.12.2 Second Normal Form ...................................................................... 5-72 5.12.3 Third Normal Form......................................................................... 5-75 5.12.4 Normalization Summary ................................................................. 5-78 Appendix C - Formalization ...................................................................... 5-79 5.13.1 Foreign Keys ................................................................................... 5-80 5.13.2 Associations .................................................................................... 5-83 References ..................................................................................................... 5-86 5-2