70 likes | 197 Vues
This exercise delves into different levels of cohesion and coupling within object-oriented design. You'll learn to identify and implement several cohesion types, including coincidental, logical, temporal, procedural, communicational, functional, and informational, through a series of modules related to flight management systems. Additionally, you'll explore coupling levels such as content, common, control, stamp, and data. We’ll also clarify the differences between data encapsulation, abstract data types, abstraction, and information hiding.
E N D
Exercise 7 OOD
Exercise – Cohesion • Write a code that explore the following cohesion levels: • Coincidental, • Logical, • Temporal, • Procedural, • Communicational, • Functional , • Informational.
Exercise – Cohesion (Cont’d) Module 1:Manage display of Flights timing. Module 2:Activate printer.Disable alarm. Convert parameter from binary to ASCII.Clear Display. Module 4:Get next Arriving Flight Identification, and update arrival record. Module 3:Calculate arrival time, and display it on Display Board. Module 6:Compute:Arrival Time, Or Departure Time, OrDelay Time, Or Total Delay Time. Module 5:Reset Display Board, Clear Input registers, Send ‘Ready’ signal. Module 7:Display: Arrival Time, Or Departure Time, OrDelay Time, Or Total Delay Time.
Exercise – Cohesion (Cont’d) • Module1: Functional, • Module2: Coincidental, • Module3: Communicational, • Module4: Procedural, • Module5: Temporal, • Module6: Logical, • Module7: Logical , • From a final exam…
Exercise – Coupling • Write a code that explore the following coupling levels: • Content, • Common, • Control, • Stamp , • Data.
From Encapsulation To Info. Hiding • What is the difference between Data encapsulation and Abstract data type? • What is the difference between abstraction and information hiding?
Exercise 7 OOD The End