Professional Documents
Culture Documents
Object Oriented Analysis Subject Material - Unit 4: Contents in This Unit
Object Oriented Analysis Subject Material - Unit 4: Contents in This Unit
Chapter coverage:
4. Object-Oriented Analysis
Reference Book Singh Y., Malhotra R., Object oriented Software Engineering
In Structured Analysis,
In OOA,
Class modelling techniques are used which combine the data and functions into a
single class.Thus, data and functions are given equal importance.
The attributes (data) in a class only accessed by the operations( functions) in the
classes which prevent accidental modification of data.
Juhi Patel UTU Page 2 of 15
OOSE BCA SEM IV
Identification of classes
» Entity class:
o Entity classes include those classes that are going to persist longer into the
system. Also called domain classes.
o Eg. Issue book use case requires information of member, book and
transaction.
o Entity class can be used in many use cases.
o Attributes and operations can be identified using actors.
o Major source of information for entity class is the interface screens in the SRS
document.
» Interface Class:
o Handle interactions in the system.
o Provide number of interface required by the actor to perform a task
o Also known as boundary classes
o Used to model windows , buttons, communication protocols.
o Life is only as long as use case exists
» Control class:
o Control classes are responsible for coordinating and managing entity and
interface class.
o The control class is used to put together things so that a use case is completed.
o Control class handle the tasks and sequence of events.
Book Entity represent the information of the books in the university library.
IssueBookInterface Interface provides interface between the actor and the system
IssueBookController Control manages and controls the operations in the ‘issue book’ use case.
Identification of relationships
o In OOA, the classes can connect to each other having different kinds of
relationships.
o The instances of a class communicate through sending messages.
Association:
but they acknowledge(know) each other just because they are a part of the
university.
Student Faculty
Other example is of a company which has employess in various departments they may
not work together or know each other personally but they know each other because they
are in the same company.
Aggregation
Example:
A library is incomplete without books, it is of no use, but a book can exist without a library.
Extra Example
Here, a club will not function without a member, similary car will not function
without person , i.e. without person the car is static .
Composition
It is a strong
trong form of aggregation that implies ownership:
Notation used for composition relationship is a line with a filled diamond at the end
i.e to the class denoting the whole.
Here university is an owner of the department. For example UTU has 5 departments
other universities may have more than 5 or less than 5 departments. At any time a
university can add or remove departments according to their needs.
Extra example
In this example, a car is static i.e. it does not function without a driver so it an aggregation,
but a car is owner of the engine so it is a composition.
Composition cannot be applied from car and person because car is not owner of a person.
Dependency
o Generalization
o Support multiple inheritance in which a class has more than one parent class.
o Ex: Consider there exists a class named Person. A student is a person. A faculty is a
person. Therefore here the relationship between student and person, similarly
faculty and person is generalization.
Modeling Relationships
o If one object of a class passes messages to the other object other through
parameters of the method, then the association relationship is used.
o If a class is a whole and other classes are its parts, then an aggregation
relationship is modeled . i.e. when a class is made up of other classes
aggregation is used.
Example
o Classes encapsulate both attributes and operations that operate on those attributes ,
into a single unit.
Attributes
Operations
The operations can be identified by the flow of events given in the use case
description. Interaction diagrams are used to identify operations.
Operations can also be
b identified in the OOA phase.
These operations may be changed according to the needs in the design phase.
Class diagram