Professional Documents
Culture Documents
Unit2 SYSTEMS ANALYSIS AND DESIGN
Unit2 SYSTEMS ANALYSIS AND DESIGN
Notations:
Source/Sink where the data leaves the system
Progression to Levels 3, 4
ER Model
• ERD is a data modeling technique used in software
engineering to produce a conceptual data model
of an information system.
• So, ERDs illustrate the logical structure of
databases.
• The major activity of this phase is identifying entities,
attributes, and their relationships to construct model
using the Entity Relationship Diagram.
• Entity table
• Attribute column
• Relationship line
ER Model
• Entity:
• A real-world object described by a set of attribute
values.
name
ssn lot
• Entity Set: A collection of similar entities.
• E.g., all employees. Employees
• All entities in an entity set have the same attributes.
• Each entity set has a key (underlined)
• Each attribute has a domain
ER Model
• Relationship: Association among two or more entities.
lot
since
did
dname
budget
An employee can
work in many Employees Manages Departments
departments; a
dept can have Works_In
many employees. since
• 1-to-M relationship
• M-to-N relationship
ER Model
Alternative: Crow’s Foot Notation
ER Model
ER Model
Some ER
Diagram
Styles
Object-Oriented Analysis and Design
• OOA: we find and describe objects or concepts in the
problem domain
Analysis
Design Construction
investigation
logical solution code
of the problem
Structural
: element of spec. irrespective of time
Behavioral Interaction
• Class : behavioral features of a system / business process
: emphasize object interaction
• Component • Communication(collaberati
• Deployment • Activity on)
• Object • State machine • Sequence
• Interaction overview
• Composite structure • Use case
• Timing
• Package • Interaction
Unified Modeling Language (UML)
Boundary Use Case
Use-Case Diagrams Actor Library System
Class diagram
Association: Model to Implementation
* 4
Student Course
has enrolls
Class Student {
Course enrolls[4];
}
Class Course {
Student have[];
}
Unified Modeling Language (UML)
Interaction Diagrams
• show how objects interact with one another
2: title data ()
•The horizontal dimension shows the objects 3: [not available] res erve title ()
5: hold title ()
•The vertical arrangement of messages indicates
their order. 5 : title available ()
6 : borrow title ()
Picks up
Dial tone
Dial
Picks up
Hello
Unified Modeling Language (UML)
Sequence Diagram:Object interaction
A B
Self-Call: A message that an
Synchronous
Object sends to itself.
[condition] remove()
Condition
*[for each] remove()
Iteration
Self-Call
Unified Modeling Language (UML)
Sequence Diagrams – Object Life Spans
• Creation
Create message A
start
6: remove reservation
1: look up
2: title data
4 : title returned
Catalog
5 : hold title
Collaboration diagrams are equivalent to sequence diagrams. All the features of sequence
diagrams are equally applicable to collaboration diagrams
Use a sequence diagram when the transfer of information is the focus of attention
Start End
Green
Unpaid Paid
Invoice created payin Invoice destroying
Event
g
Unified Modeling Language (UML)
A Simple Problem
switch
1W
5V
light
Unified Modeling Language (UML)
1. Use Case Diagram
SimpleCircuit
FlipOn
FlipOff
ViewLight
User
Switch
Resistor Light
Battery
5V
FlipOn()
HeatUp() Drain()
Shine()
User
1. FlipOn()
1.1 HeatUp()
Switch Resistor
Light Battery
flipSwitchOn
Light Light
Off On
flipSwitchOff
flipSwitchOff flipSwitchOff
(Resistor) (Battery)
Unified Modeling Language (UML)
5. Activity Diagram