Professional Documents
Culture Documents
P. Saikiran
lll CSE
07G71A0561
Contents:
Why modeling
Aims of Modeling
Imp of Modeling
Object oriented modeling
Principles of modeling
Building Blocks of UML
A model is a simplification of reality.
The process of representing real-world object
Where do I start?
Attributes Attributes
Operations Operations
The choice of what models to create has a profound
influence on how a problem is
attacked and how a solution is shaped.
Every model may be expressed at different
levels of precision.
The best models are connected to reality.
No single model or view is sufficient. Every nontrivial
system is best approached through a small set of nearly
independent models with multiple viewpoints.
Things
* Structural Things
* Behavioral Things
* Grouping Things
* Annotational Things
Relationships
* Association
* Generalization
* Realization
* Dependency
Building Blocks of UML
Class diagram
Object diagram
Component diagram
Deployment diagram
Sequence diagram
Collaboration diagram
Activity diagram
Structural —They represent physical and conceptual elements. They are
nouns of UML models.
Collaboration
Use Case
Active Class
Component
Node
Structural Things
Class: <<Interface>>
Collaboration
Use case
Class:
(active position)
Component
Node
Interaction
A set of objects exchanging messages, to accomplish a specific purpose.
”
Element A Element B
State Machine
specifies the sequence of states an object or an interaction goes through during its
lifetime in response to events.
State A State B
For organizing elements (structural/behavioral) into groups, Purely conceptual.
University Administration
Student Admission
Course Manager
-Student
+Department
Note
1. Associations
Structural relationship that describes a set of links, a link being a connection
between objects.
Student University
attends
2. Generalization
a specialized element (the child) is more specific the generalized element.
Person
Student
3. Realization
one element guarantees to carry out what is expected by the other element.
Class A Class B
4. Dependency
a change to one thing (independent) may affect the semantics of the other thing (dependent).
Class A Class B
Class Diagram : MITS
Ge
ne
r al
iz a
ti o
n
MCA MBA B-
TECH
TECH
B-
n
ti o
iz a
r al
ne
Ge
MBA
MITS
MCA
Use Case Diagram
Buy
Book
Pay
Money
Insert card
pin request
Enter pin Verify pin
Accepted
Amount Request
Amount
Enter amount Verification
Receive Money
Accepted
Receipt
Card
Student
Admission
ssion
d mi
1:come to college
iv eA
2: G
3: Give Dept to
MITS Department
Student
4:G
i ve H
all T
ic k e Roll Number
t
Specification elements
Stopped Running
Maintenance
Error Exhausted
Activity
Diagram :
Manage Thread
Thread Exists
Remove thread
New thread Modify thread
Complete Thread