Documente Academic
Documente Profesional
Documente Cultură
S. No Contents Page No
4 Lab Objective 2
6 Guidelines to Students 3
12 Diagrams 9
55 References 49
-1- www.jntuworld.com
LAB OBJECTIVE
• Overview of UML
RAM : 256 MB
Hard Disk : 40 GB
Software
All
systems are configured in DUAL BOOT mode i.e., Students can boot from
Windows XP or Linux as per their lab requirement.
This is very useful for students because they are familiar with different
Operating Systems so that they can execute their programs in different
programming environments.
Oracle 9i client version is installed in all systems. On the server, account for each
student has been created.
-2- www.jntuworld.com
This is very useful because students can save their work ( scenarios’, pl/sql
programs, data related projects ,etc) in their own accounts. Each student work is safe
and secure from other students.
Latest Technologies like DOT NET and J2EE are installed in some systems. Before
submitting their final project, they can start doing mini project from 2nd year onwards.
Students can execute their assembly language programs using MASM. MASM
is very useful students because when they execute their programs they can see
contents of Processor Registers and how each instruction is being executed in
the CPU.
Softwares installed: C, C++, JDK1.5, MASM, OFFICE-XP, J2EE and DOT NET,
Rational Rose.
Systems are assigned numbers and same system is allotted for students
when they do the lab.
-3- www.jntuworld.com
Guidelines to Students
1. Learn what the UML is, what it is not and why it is relevant to the process of
developing software-intensive systems
2. Master the vocabulary rules and idioms of the UML and in general how to speak the
language efficiently
The user guide provides a reference to the use of specific UML features,
However it is not intended to be a comprehensive reference manual for UML. That is
focus on other book, The Unified Modeling Language Reference Manual
For the developer approaching the UML for the first time, the user guide is
best-read linearly. All chapters are constructed so that each builds upon the contents
of previous one, thus lending it as linear progression.
-4- www.jntuworld.com
UML Syllabus Programs (JNTU)
S. No Programs
1. Class diagram of school without attributes
2. Class diagram of school with attributes
3. Class diagram of Hospital without attributes
4. Class diagram of Hospital with attributes
5. Class diagram for ATM.
6. Use case diagram for ATM.
7. Activity diagram for ATM
8. Sequence diagram ATM
9. Collaboration diagram for ATM
10. Component diagram for ATM
11. Deployment diagram for ATM
12. State Transition diagram for ATM
13. Use case Diagram for Librarian Scenario
14. Use case diagram for mechanic
15. Use case diagram for Point of sale
16. Use case diagram for Point of sale
17. Activity diagram for Point of sale
18. Sequence diagram for Point of sale
19. Collaboration diagram for Point of sale
20. Deployment diagram for Point of sale
21. Sequence diagram for Hospital
22. Collaboration diagram for Hospital
23. Activity diagram for Patient visiting doctor using Swim lines
24. Activity diagram of patient checked by Treatment Provider for Diabetes
25. Activity diagram for Cellular Company
26. Online Book shop of class diagram without attributes
27. On line book shop of Use case diagram
28. Online book shop of Activity diagram
29. Sequence diagram using Timing Constraints & Locations
30. State transition diagram representing a history state “H”
31. Diagram representing Concurrent sub states
33. State transition diagram for a Computer being identified with states
34. Diagram for the relation between a component & interface
35. Diagram for the relation between a component & class
36. Deployment diagram for Physical connection system
37. Deployment diagram for Client server system
38. Development Diagram that shows the Embedded System.
-5- www.jntuworld.com
Description about UML
1. Model
• A model is a simplification of reality.
• A model provides the blueprints of a system.
• A model may be structural, emphasizing the organization of the system, or
it may be behavioral, emphasizing the dynamics of the system.
• We build models so that we can better understand the system we are
developing.
• We build models of complex systems because we cannot comprehend
such a system in its entirety.
2. Principles of Modeling
• Visualizing
• Specifying
• Constructing
• Documenting
-6- www.jntuworld.com
• A modeling language is a language whose vocabulary and
rules focus on the conceptual and physical representation of a
system
-7- www.jntuworld.com
• The UML addresses the documentation of a system’s
architecture and all of its detail
-8- www.jntuworld.com
1. School model without Attributes
-9- www.jntuworld.com
2. School Model with Attributes
-10- www.jntuworld.com
3. Hospital Model without Attributes
-11- www.jntuworld.com
4. Hospital Model with Attributes
-12- www.jntuworld.com
5. ATM Scenario Class Diagram
-13- www.jntuworld.com
-14- www.jntuworld.com
6. ATM Scenario Use –Case Diagram
Bank officer
Deposit funds
Customer Make payment
Client
Transfer funds
-15- www.jntuworld.com
7. ATM Scenario Activity Diagram
Insert
card
Enter
PIN
Enter
transition
Any more transaction
No more transaction
Remove
card
-16- www.jntuworld.com
8. ATM Scenario Sequence Diagram
A : Atm ac : B : Bank
machine account client
1: Insert card
Insert PIN
3 : Enter PIN
4 : Verification
5 : PIN ok
7 : Process transaction
8 : Enter amount
9 : Amount entered
10 : Withdrawal
11 : Withdrawal success
12 : Dispense cash
13 : take cash
14 : Terminate
15 : Print slip
16 : Eject card
-17- www.jntuworld.com
9. ATM Scenario Collaboration Diagram
-18- www.jntuworld.com
10. ATM Scenario Deployment Diagram
-19- www.jntuworld.com
11. ATM Scenario Component Diagram
ATM.exe
ATM Screen
-20- www.jntuworld.com
12. ATM Scenario State Transition Diagram
-21- www.jntuworld.com
13. Use case Diagram for Librarian Scenario
-22- www.jntuworld.com
14. Use case diagram for mechanic
-23- www.jntuworld.com
15. Class diagram for Point of sale
-24- www.jntuworld.com
16. Use case diagram for Point of sale
-25- www.jntuworld.com
17. Activity diagram for Point of sale
-26- www.jntuworld.com
18. Sequence Diagram for Point of Sale
-27- www.jntuworld.com
19. Collaboration diagram for point of sale
1 : 1 : Ta ke s th e p ro d u c t
5 : 5 : P a ym e n t is d o n e 2 : 2 : B ills th e p ro d u ct
C us to me r C le rk C o mpute r
4 : 4 : B ill is g ive n 3 : 3 : P ro c e s s e s th e b ill
Server
-28- www.jntuworld.com
21. Hospital Sequence Diagram
2:Diagnozed
3:Gives Treatment
4:Receive Feedback
-29- www.jntuworld.com
22. Hospital Collaboration Diagram
-30- www.jntuworld.com
23. Activity Diagram of patient visiting doctor using swim lines
-31- www.jntuworld.com
24. Activity diagram of patient checked by Treatment Provider for Diabetes
Prescribed Test
No Symptoms
Symptoms
Check next
Patient
Height &
Age Weight Kind of
Diabetes
Provide
Treatment
-32- www.jntuworld.com
25. Activity diagram for Cellular Company
Shift
Order
Receives prepare
product bills
Pay Close
Bills Order
-33- www.jntuworld.com
26. Online Book shop of class diagram without attributes
-34- www.jntuworld.com
27. Online book shop of Use case diagram
-35- www.jntuworld.com
28. Online book shop of Activity diagram
Display Welcome
Message
Get Login
Display Item
Information
More
Accept
Selection
Create
Order
Display Rejected
Order
Accepted
Ship to
Customer
-36- www.jntuworld.com
29. Sequence diagram using Timing Constraints & Locations
-37- www.jntuworld.com
30. State transition diagram representing a history state “H”
-38- www.jntuworld.com
31. Diagram representing Concurrent sub states
-39- www.jntuworld.com
32. Diagram representing Sequential substitutes
-40- www.jntuworld.com
33. State transition diagram for a Computer being identified with states
S ta te T ra n s itio n d ia g ra m fo r a c o m p u te r b e in g id e n tifie d
w ith s ta te s :Id le ,ru n n in g ,s h u t d o w n
2 s e c / s e lf t e s t ( )
K e y p lu s In te r ru p t( p o w e r fa ilu r e )
Id le R u n n in g S hut
do w n
-41- www.jntuworld.com
34. Diagram for the relation between a component & interface
-42- www.jntuworld.com
35. Diagram for the relation between a component & class
-43- www.jntuworld.com
36. Deployment diagram for Physical connection system
Client1
Server
Client2
-44- www.jntuworld.com
37. Deployment diagram for Client server system
D ra w a D e p lo y m e n t D ia g ra m th a t s h o w s th e c lie n t s e rv e r s y
F ile
s e rv e r
C lie n t
S e rv e r S e rv e r
d a ta b a s e
K io s k S e rv e r
p rin t
-45- www.jntuworld.com
38. Development Diagram that shows the Embedded System.
-46- www.jntuworld.com
-47- www.jntuworld.com
Viva Questions & Answers
1. What is a Class?
Ans. A class is a description of set of objects that share the same attributes,
operations, relations and semantics.
Ans. Every class must have a name that distinguishes it from other classes. A name
alone is known as a simple name
Ans. A path name is the class name prefixed by the name of the package in which
that class lives
4. What is Attribute?
Ans. An attribute is a named property of a class that describes a range of values that
instances of the property may hold
5. What is an Operation?
Ans. An operation is the implementation of a service that can be requested from any
object of the class to affect behavior
6. What is responsibility?
7. What is a relationship?
8. What is Dependency?
Ans. Dependency is rendered as a dashed directed line, directed to the thing being
depended on
-48- www.jntuworld.com
Ans. Generalization called an “is-a-kind-of” relationship
Ans. A class that has no parents and one or more children is called a root class or
base class
Ans: It means that objects of the child may be used anywhere the parent may
appear, but not the reverse
Ans: It is rendered as a solid directed line with a large open arrowhead, pointing
to the parent
-49- www.jntuworld.com
Ans. Name, Role, Multiplicity, Aggregation
Ans. When a class participates in an association, it has a specific role that it plays
in the relationship
Ans. It has a plain association with an open diamond at the whole end.
-50- www.jntuworld.com
Ans. It is rendered as a name enclosed by guillements and placed above the name
of another element.
-51- www.jntuworld.com
References
Books / Material
Text Books
Grady Booch, James Rumbaugh, Ivar Jacobson : The Unified Modeling Language
1. User Guide,
Pearson Education.
Hans-Erik Eriksson, Magnus Penker, Brian Lyons, David Fado: UML 2 Toolkit,
2.
WILEY-dreamtech India Pvt. Ltd.
Web sites
1
http://en.wikipedia.org/wiki/Unified_Modeling_Language
)
2
http://atlas.kennesaw.edu/~dbraun/csis4650/A&D/index.htm
)
-52- www.jntuworld.com
-53- www.jntuworld.com