Roles deck Flashcards

(18 cards)

1
Q

What is the first step in Object-Oriented Analysis (OOA) for requirements?

A

Elicit: Define what does the software need to do and what’s the problem the software is trying to solve.

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

What does the ‘Specify’ step in OOA involve?

A

Describe the requirements, usually with use cases/user stories.

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

What is the purpose of the ‘Identify’ step in OOA?

A

Identify the important concepts, attributes, and relationships.

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

Define ‘Roles’ in the context of OO analysis.

A

The function/purpose that any class serves within the context of its related classes.

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

List the 5 role patterns in OO analysis.

A
  • Role inheritance
  • Association Roles
  • Role classes
  • Generalised role classes
  • Association role classes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the role inheritance pattern imply about companies?

A

A company cannot be both a vendor and a customer; it’s either one or the other.

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

What does the inheritance meta-model restrict?

A

Disallows multiple roles to be played by the same base class.

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

Explain the association role pattern.

A

Provides the role through the description of associations, linking classes in different ways.

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

What is a drawback of the association role pattern?

A

Doesn’t allow attributes on the idea of being a particular role (buyer/seller).

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

What is the purpose of the role class pattern?

A

Allows linking any object with another through an intermediary class, providing flexibility and role-specific attributes.

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

What does the generalised role class pattern allow?

A

All roles may be modelled dynamically and assigned to any Object at any time.

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

How does the association role class pattern create roles?

A

Roles are created on demand by creating an instance of role, linking objects accordingly.

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

Define ‘Patterns’ in the context of OO analysis.

A

Embody the knowledge and experience of many developers.

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

What is ‘Delegation’ in OO analysis?

A

The process by which one object handles a request by handing off the data to a second helper object.

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

Fill in the blank: The role inheritance pattern states that a company can either be a vendor or a _______.

A

customer.

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

True or False: The association role pattern allows for attributes associated with a role.

17
Q

What is the main idea of the role assignment and role type in the association role class pattern?

A

Assign a role type to an object, linking it with the appropriate product.

18
Q

What does the role-specific operations support in the generalised role pattern?

A

Supports role-specific operations but does not repeat them, keeping them in one place.