Professional Documents
Culture Documents
COMP246 Test 2 Fall 2020 - Written Part
COMP246 Test 2 Fall 2020 - Written Part
Copy and paste ONE component design class diagram done in your
Term Project Part B. Make sure that the component has a name.
1
Figure: User Flight Search and Tracking Subsystem
The User, Flight, and NotificationSetting classes collaborate within the system.
User maintains user profiles, Flight holds flight-related data, and
NotificationSetting stores user preferences for notifications.
2. Design Pattern:
Explanation: When a Flight object changes state (e.g., delay or cancellation), the
Notification objects associated with it are automatically informed and updated,
promoting a decoupled system where Flight doesn't need direct knowledge of its
observers, thus maintaining functional independence and loose coupling.
2
3. Functionality Description:
The system's design ensures that flight information is managed with high
cohesion within the Flight class, user data is securely encapsulated within the
User class, and notification preferences are independently handled in the
NotificationSetting class, promoting functional independence and reducing
coupling.
Between Flight and User: The cardinality is 1 to many (1..*), indicating that a
user can be associated with multiple flights for tracking or notifications.