ITEC 3030 - L7: Object Oriented Design Patterns III

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/42

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

43 Terms

1
New cards

Observer Pattern

Design pattern for notifying changes to observers.

<p>Design pattern for notifying changes to observers.</p>
2
New cards

Model-View-Controller (MVC)

Architectural pattern separating application logic from UI.

3
New cards

Pull Model

Each party retrieves information when interested.

4
New cards

Polling

Periodically requesting information from another component.

5
New cards

Coupling

Dependency between components; changes affect each other.

6
New cards

Push Model

Notifies interested parties when changes occur.

7
New cards

Subject Interface

Defines methods for registering and notifying observers.

8
New cards

Observer Interface

Defines method for updating observers with new data.

9
New cards

ConcreteSubject

Implements Subject; maintains observer list and state.

<p>Implements Subject; maintains observer list and state.</p>
10
New cards

ConcreteObserver

Implements Observer; reacts to state changes.

11
New cards

Inversion of Control (IoC)

B calls A instead of A calling B.

12
New cards

Callback

Function passed as an argument to another function.

13
New cards

ArrayList

Dynamic array implementation in Java for storing elements.

14
New cards

Abstract Class

Class that cannot be instantiated; may contain abstract methods.

15
New cards

Constructor

Special method for initializing new class instances.

16
New cards

MVC Goals

Decouple UI from data and manage multiple views.

17
New cards

Strategy Pattern

Encapsulates algorithms for interchangeable use.

18
New cards

Model-View-Adapter (MVA)

Mediator pattern ensuring views interact only through controllers.

19
New cards

Event Subscription

Process where observers register to receive updates.

20
New cards

State Change Notification

Informing observers when the subject's state changes.

21
New cards

Redraw Method

Updates the visual representation of a window.

22
New cards

Observer Registration

Adding an observer to the subject's list.

23
New cards

Observer Removal

Removing an observer from the subject's list.

24
New cards

Notify Observers

Calls update method on all registered observers.

25
New cards

Set Value Method

Updates the subject's value and notifies observers.

26
New cards

Performance Problem

Issues arising from inefficient checking for changes.

27
New cards

Maintenance Problem

Challenges due to tight coupling of components.

28
New cards

Window Class

Represents a UI window that observes file changes.

<p>Represents a UI window that observes file changes.</p>
29
New cards

FileSystem Object

Represents the underlying file system in the experiment.

30
New cards

User Input

Data entered by the user through the UI.

31
New cards

View Tier

Layer responsible for displaying data to users.

32
New cards

Logic Tier

Layer handling application logic and processing.

33
New cards

Storage Tier

Layer managing data storage and retrieval.

34
New cards

Observer Pattern Implementation

Model acts as Subject; views act as Observers.

35
New cards

Update Method

Method called to refresh observer state.

36
New cards

Observer Registration Method

Method for adding observers to the subject.

37
New cards

Observer Notification Method

Method for informing observers of state changes.

38
New cards

Concrete Observer Update

Updates the observer's state based on subject's value.

39
New cards

Observer Pattern Benefits

Decouples components, enhances flexibility and scalability.

40
New cards

Observer Pattern Drawbacks

Potential for memory leaks if observers are not removed.

41
New cards

Observer Pattern Use Cases

Used in event handling, data binding, and UI updates.

42
New cards

Observer Pattern Variants

Includes push and pull models for notifications.

43
New cards

Observer Pattern Examples

Common in GUI frameworks and real-time systems.