Roles deck Flashcards
(18 cards)
What is the first step in Object-Oriented Analysis (OOA) for requirements?
Elicit: Define what does the software need to do and what’s the problem the software is trying to solve.
What does the ‘Specify’ step in OOA involve?
Describe the requirements, usually with use cases/user stories.
What is the purpose of the ‘Identify’ step in OOA?
Identify the important concepts, attributes, and relationships.
Define ‘Roles’ in the context of OO analysis.
The function/purpose that any class serves within the context of its related classes.
List the 5 role patterns in OO analysis.
- Role inheritance
- Association Roles
- Role classes
- Generalised role classes
- Association role classes
What does the role inheritance pattern imply about companies?
A company cannot be both a vendor and a customer; it’s either one or the other.
What does the inheritance meta-model restrict?
Disallows multiple roles to be played by the same base class.
Explain the association role pattern.
Provides the role through the description of associations, linking classes in different ways.
What is a drawback of the association role pattern?
Doesn’t allow attributes on the idea of being a particular role (buyer/seller).
What is the purpose of the role class pattern?
Allows linking any object with another through an intermediary class, providing flexibility and role-specific attributes.
What does the generalised role class pattern allow?
All roles may be modelled dynamically and assigned to any Object at any time.
How does the association role class pattern create roles?
Roles are created on demand by creating an instance of role, linking objects accordingly.
Define ‘Patterns’ in the context of OO analysis.
Embody the knowledge and experience of many developers.
What is ‘Delegation’ in OO analysis?
The process by which one object handles a request by handing off the data to a second helper object.
Fill in the blank: The role inheritance pattern states that a company can either be a vendor or a _______.
customer.
True or False: The association role pattern allows for attributes associated with a role.
False.
What is the main idea of the role assignment and role type in the association role class pattern?
Assign a role type to an object, linking it with the appropriate product.
What does the role-specific operations support in the generalised role pattern?
Supports role-specific operations but does not repeat them, keeping them in one place.