2.2 Object-Oriented Analysis Flashcards

1
Q

What is analysis?

A

The process of understanding a problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is OOA?

A

Object-oriented Analysis (OOA) is a requirements analysis technique

It models real-world objects based on their descriptions in natural language

It produces an object analysis model expressed in UML class model diagrams.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What was the precursor to OOA?

A

Before OOA, the predominant method was structured design (aka functional decomposition).

Functional decomposition was concerned with the functions the solution needed to provide rather than the objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Compare Object-oriented Analysis vs Structured Analysis

A
  • Structured analysis is primary concerned with functions while object analysis is primarily concerned with data objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When you receive a textual description of a system to be built, what should you be looking for to start object-oriented analysis?

A

Take a textual description of a system to be built (e.g., requirements) and look for NOUNs, VERBs, and ADJECTIVEs.

Use identified words to build up descriptions of classes and their relationships.

  • Nouns -> classes
  • Action verbs -> operations
  • Adjectives -> attributes
  • Stative verbs -> relationships
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the steps in OOA?

A
  1. Look for NOUNs -> model as classes
  2. Look for ADJECTIVEs -> model as attributes
  3. Look for ACTION VERBs -> model as operations assigned to an appropriate provider class
  4. Look for STATIVE VERBs -> model as relationships among classes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Generalization relationship?

A

Indicates that instances of one of the two classes (the child class) is a kind of the other class (the parent class)

Look for words like:
- is a
- kind of
- type of

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an Aggregation relationship?

A

Aggregations are collections of some sort.

Look for words like:
- consists of
- part of
- contains
- has
- incorporates
- belongs to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an Association relationship?

A

A state of being :/

e.g., a counter counts leaves, so the Counter class is associated with the Leaf class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly