Documente Academic
Documente Profesional
Documente Cultură
Lecture 2
Object Orientation and Software Engineering
Muhammad Fawad
Lecturer
COMSATS Institute of Information Technology
Introduction to:
Object oriented analysis
Object oriented design
UML
Software development process
Example
Use Case Login to System
When the User tries to access the system, the systems asks for
a user name and password. On provision of the correct user
name and password the user is allowed to enter the system.
Conceptual perspective
The diagrams are interpreted as describing things in a situation
of the real world or domain of interest
Specification perspective
The diagrams (using same notations) describe software
abstraction or components with specifications and interfaces but
no commitment to a particular implementation
Implementation perspective
Software implementation in a particular technology
16
16 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Requirement
17
17 COMSATS Institute of Information Technology, Attock Muhammad Fawad
REQUIREMENT
1. I hope to have a car (The capability to posses a car is absent but hope
exists that someday it might be possible)
2. I wish to have a car (The capability to posses a car is distinctly possible
but not feasible yet)
3. I desire to have a car (The capability to posses a car exists. But there
are other competing demands to cater to.)
4. I need a car (The capability exists and it is feasible. Having a car
surpassed other competing demands)
5. I require a car (Possessing a car can no longer be postponed. It is
essential now)
18
18 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Software Requirements - 1
19
19 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Software Requirements - 2
20
20 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Software Requirements - 3
21
21 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Software Requirements - 4
22
22 COMSATS Institute of Information Technology, Attock Muhammad Fawad
IEEE Definition
23
23 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Sources of Requirements
Stakeholders
People affected in some way by the system
Documents
Existing system
Domain/business area
24
24 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Importance of Software Requirements
25
25 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Examples of Requirements - 1
26
26 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Examples of Requirements - 2
27
27 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Examples of Requirements - 3
28
28 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Examples of Requirements - 4
29
29 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Examples of Requirements - 5
30
30 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Kinds of Software Requirements
Functional requirements
Non-functional requirements
Domain requirements
Inverse requirements
Design and implementation constraints
32
32 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Functional Requirements
34
34 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Functional Requirements - 2
35
35 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Functional Requirements - 3
36
36 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Functional Requirements - 4
37
37 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Functional Requirements Example # 1
x = (-b+sqrt(b2 4*a*c))/2*a
38
38 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Functional Requirements Example # 2
39
39 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Functional Requirements Example # 3
40
40 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Functional Requirements Example # 4
41
41 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Functional Requirements Example # 5
42
42 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Comments on Examples
43
43 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Comments on Examples
44
44 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Comments on Examples
x = (-b+sqrt(b2 4*a*c))/2*a
45
45 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Comments on Examples
46
46 COMSATS Institute of Information Technology, Attock Muhammad Fawad
Summary
47
47 COMSATS Institute of Information Technology, Attock Muhammad Fawad
References