This action might not be possible to undo. Are you sure you want to continue?
S. No 4 4 6 Lab Objective
Page No 2 2 3
Introduction About Lab Guidelines to Students List of Lab Exercises
4.1 Syllabus Programs (JNTU) 4.2 Additional and Advanced Programs
9 12 55
Description about UML Diagrams References
6 9 49
LAB OBJECTIVE • • • • • Overview of UML Basic & Advanced Models Class , Object, Collaboration & Sequence Use Cases Advanced Modeling Component Diagram & Deployment Diagrams
INTRODUCTION ABOUT LAB There are 66 systems (Compaq Presario) installed in this Lab. Their configurations are as follows: Processor RAM Hard Disk Mouse : : : AMD Athelon ™ 1.67 GHz
256 MB : 40 GB
Optical Mouse : Present
Network Interface card 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. Each student has a separate login for database access Oracle 9i client version is installed in all systems. On the server, account for each student has been created.
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. MASM ( Macro Assembler ) is installed in all the systems 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. Rational Rose Software is installed in some systems Using this software, students can depict UML diagrams of their projects. Softwares installed: C, C++, JDK1.5, MASM, OFFICE-XP, J2EE and DOT NET, Rational Rose. Systems are provided for students in the 1:1 ratio. Systems are assigned numbers and same system is allotted for students when they do the lab.
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 3. Under stand how to apply UML to solve a number of common problems 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.
UML Syllabus Programs (JNTU)
S. No 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 33. 34. 35. 36. 37. 38.
Programs Class diagram of school without attributes Class diagram of school with attributes Class diagram of Hospital without attributes Class diagram of Hospital with attributes Class diagram for ATM. Use case diagram for ATM. Activity diagram for ATM Sequence diagram ATM Collaboration diagram for ATM Component diagram for ATM Deployment diagram for ATM State Transition diagram for ATM Use case Diagram for Librarian Scenario Use case diagram for mechanic Use case diagram for Point of sale Use case diagram for Point of sale Activity diagram for Point of sale Sequence diagram for Point of sale Collaboration diagram for Point of sale Deployment diagram for Point of sale Sequence diagram for Hospital Collaboration diagram for Hospital Activity diagram for Patient visiting doctor using Swim lines Activity diagram of patient checked by Treatment Provider for Diabetes Activity diagram for Cellular Company Online Book shop of class diagram without attributes On line book shop of Use case diagram Online book shop of Activity diagram Sequence diagram using Timing Constraints & Locations State transition diagram representing a history state “H” Diagram representing Concurrent sub states State transition diagram for a Computer being identified with states Diagram for the relation between a component & interface Diagram for the relation between a component & class Deployment diagram for Physical connection system Deployment diagram for Client server system Development Diagram that shows the Embedded System.
com . Models document the decisions we have made 2. Models permit us to specify the structure or behavior of a system. emphasizing the organization of the system. • A model may be structural. Every nontrivial system is best approached through a small set of nearly independent models 3. • We build models of complex systems because we cannot comprehend such a system in its entirety.jntuworld. or it may be behavioral. • A model provides the blueprints of a system. Model • A model is a simplification of reality.Description about UML 1. we achieve four aims. • • • • Models help us to visualize a system as it is or as we want it to be. Principles of Modeling • • • • 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 is sufficient. Through modeling. Unified Modeling Language (UML) The UML is a language for • • • • Visualizing Specifying Constructing Documenting The UML is a Language -6- www. • We build models so that we can better understand the system we are developing. emphasizing the dynamics of the system. Models give us a template that guides us in constructing as system.
design. That means some things are best modeled textually. C++. and implementation decisions that must be made in developing a software project. Design 4. The UML is a Language for Documenting • A Healthy software organization produces all sorts of artifacts in addition to raw executable code. Releases -7- www. Project plans 6. others are best modeled graphically.e. It specifies of all the important analysis. The UML is a Language for Specifying • Specifying means building models. they even sketch out a few ideas on a paper. Requirements 2. Architecture 3. The UML is a Language for constructing • The UML is not a visual programming language.• A modeling language is a language whose vocabulary and rules focus on the conceptual and physical representation of a system The UML is a Language for Visualizing • Some programmers think of an implementation and then code it.jntuworld. Tests 7. This means that it is possible to map from a model in the UML to a programming language such as Java. These artifacts include 1.com . The UML is such a graphical language. Source code 5. Some programmers think mentally i. but its models can be directly connected to a variety of a programming language.
Collaboration diagram .Object Diagram .com .The static structure of a system .State Diagram .Interaction among elements of a system in a time sequence .jntuworld.The activities of the system The implementation model view .• The UML addresses the documentation of a system’s architecture and all of its detail 4.The static structure of a system at a particular time The behavioral model view .Activity Diagram .The functionality of a system The structural model view .Deployment diagram .Component Diagram .The status condition and responses of the elements of a system .Class Diagram .Sequence Diagram .Use Case Diagram .Configuration of environment elements and the mapping of elements realizing the system into them -8- www.Interaction among elements and their relations organized in time and space . Architectural views of UML The user model view .The organization of the elements realizing the system The Environment model view .
jntuworld.com . School model without Attributes -9- www.1.
School Model with Attributes -10- www.2.com .jntuworld.
jntuworld.com .3. Hospital Model without Attributes -11- www.
com . Hospital Model with Attributes -12- www.4.jntuworld.
com .jntuworld.5. ATM Scenario Class Diagram -13- www.
jntuworld.-14- www.com .
com . ATM Scenario Use –Case Diagram Bank officer Change pin Transfer fund Deposit funds Customer Make payment Client Withdraw money View balance Transfer funds -15- www.6.jntuworld.
7.com . ATM Scenario Activity Diagram Insert card Enter PIN Connect N connected ot Enter transition A m transaction ny ore N m transaction o ore Rem ove card -16- www.jntuworld.
8.jntuworld.com . ATM Scenario Sequence Diagram A : Atm machine ac : account 1: Insert card Insert PIN 3 : Enter PIN 4 : Verification B : Bank client 5 : PIN ok 6 : Request for transaction 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.
ATM Scenario Collaboration Diagram -18- www.com .jntuworld.9.
com .10. ATM Scenario Deployment Diagram -19- www.jntuworld.
com .11. ATM Scenario Component Diagram ATM.exe Card Reader Cash Dispenser Card Reader ATM Screen Card dispenser ATM Screen -20- www.jntuworld.
jntuworld.12. ATM Scenario State Transition Diagram -21- www.com .
com .13. Use case Diagram for Librarian Scenario -22- www.jntuworld.
14.com .jntuworld. Use case diagram for mechanic -23- www.
15.com . Class diagram for Point of sale -24- www.jntuworld.
Use case diagram for Point of sale -25- www.16.com .jntuworld.
com . Activity diagram for Point of sale -26- www.17.jntuworld.
jntuworld.18. Sequence Diagram for Point of Sale -27- www.com .
19.jntuworld.com . Deployment diagram for point of sale Barcode scanner PDA Touch screens Server -28- www. Collaboration diagram for point of sale C us to me r 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 C le rk 2 : 2 : B ills th e p ro d u ct 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 20.
com . Hospital Sequence Diagram P:Patient 1:Confirms A:Appoint ment D:Docter T:Treatm ent 2:Diagnozed 3:Gives Treatment 4:Receive Feedback -29- www.21.jntuworld.
jntuworld.com .22. Hospital Collaboration Diagram -30- www.
23.jntuworld. Activity Diagram of patient visiting doctor using swim lines -31- www.com .
Activity diagram of patient checked by Treatment Provider for Diabetes Check the patient Prescribed Test No Symptoms Symptoms Check next Patient Age Height & Weight Kind of Diabetes Provide Treatment -32- www.jntuworld.com .24.
25.jntuworld.com . Activity diagram for Cellular Company Customer Sales Ware house Request Product Process Product Pull materials Shift Order Receives product prepare bills Pay Bills Close Order -33- www.
Online Book shop of class diagram without attributes -34- www.jntuworld.com .26.
jntuworld. Online book shop of Use case diagram -35- www.27.com .
jntuworld.com . Online book shop of Activity diagram Display Welcom e M essage Get Login Get Password &V alidate Display Item Inform ation Rejected M ore Accept Selection Create Order Display Order Rejected Accepted Ship to Custom er -36- www.28.
jntuworld.com .29. Sequence diagram using Timing Constraints & Locations -37- www.
State transition diagram representing a history state “H” -38- www.com .30.jntuworld.
31.com . Diagram representing Concurrent sub states -39- www.jntuworld.
Diagram representing Sequential substitutes -40- www.com .32.jntuworld.
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 .jntuworld.com .ru n n in g .33.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 Id le In te r ru p t( p o w e r fa ilu r e ) R u n n in g S hut do w n -41- www.
Diagram for the relation between a component & interface -42- www.jntuworld.com .34.
com .35. Diagram for the relation between a component & class -43- www.jntuworld.
com . Deployment diagram for Physical connection system Draw a Deployment Diagram that shows the physical connection system Client1 << 10 Tethernet >> Server << RS 232 >> Client2 -44- www.36.jntuworld.
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 C lie n t F ile s e rv e r 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.jntuworld. -46- www.com .
com .jntuworld.-47- www.
Change in one thing depends upon the another thing 9. 2. What is responsibility? Ans.jntuworld. A relationship is a connection among things 8. What is a relationship? Ans. How the dependency is rendered? Ans. What is a simple name? Ans. An operation is the implementation of a service that can be requested from any object of the class to affect behavior 6. directed to the thing being depended on 10.Viva Questions & Answers 1. A class is a description of set of objects that share the same attributes. What kind of relationship for Generalization? -48- www. What is Attribute? Ans. Dependency is rendered as a dashed directed line. Every class must have a name that distinguishes it from other classes. A path name is the class name prefixed by the name of the package in which that class lives 4. What is a Class? Ans. An attribute is a named property of a class that describes a range of values that instances of the property may hold 5. A name alone is known as a simple name 3. relations and semantics. What is an Operation? Ans. operations. A responsibility is a contract or an obligation of a class 7.com . What is a Path name? Ans. What is Dependency? Ans.
Generalization called an “is-a-kind-of” relationship 11. What is a Leaf class? Ans: A class that has no children is called a leaf class 14. What are the four adornments that apply to association? -49- www.jntuworld. How Association is rendered? Ans: An association is rendered as a solid line connecting the same or different classes 18.What is n-ary association? Ans. What is binary association? Ans: An association that connects exactly two classes is called a binary association 19. pointing to the parent 16. one. A class that has no parents and one or more children is called a root class or base class 13. What is the Generalization? Ans: It means that objects of the child may be used anywhere the parent may appear.com . An association that connect more than two class 20.Ans. but not the reverse 15. or more parents 12. A class may have zero. A class may have how many parents? Ans. What is root or base class? Ans. What is Association? Ans: An Association is a structural relationship that specifies that objects of one thing are connected to objects of another 17. How generalization is rendered? Ans: It is rendered as a solid directed line with a large open arrowhead.
When a class participates in an association.. It has a plain association with an open diamond at the whole end. Aggregation 21. How many multiplicities? Ans. Dependencies. together with textual or graphical comment. How we can describe nature of relationship in association> Ans. Exactly one(1).How aggregation relationship is rendered? Ans. 3). many(0. Zero or One(0. 26. generalization.*).*) or even state an exact number( for example. It is an extension of the vocabulary of the UML 30.Ans. and association 27.1). Role. What is stereotype? Ans. By the name 22. What are the relationships usually visualized in class diagrams? Ans. 29. What is a Role? Ans. What is a note? Ans.. It is a graphical symbol for rendering constraints or comments attached to an element or a collection of elements. 24.. Name.jntuworld. It is rendered as a rectangle with dog-eared corner. Whole/Part relationship 25.com . What type of Aggregation relationship? Ans. or one or more(1. 28. How the note is rendered? Ans. it has a specific role that it plays in the relationship 23. How stereotype is rendered? -50- www. Multiplicity.
com . It is rendered as a name enclosed by guillements and placed above the name of another element.jntuworld. -51- www.Ans.
wikipedia. David Fado: UML 2 Toolkit. The McGraw-Hill Companies Mark Priestley: Practical Object-Oriented Design with UML. User Guide.org/wiki/Unified_Modeling_Language http://atlas.References Books / Material Text Books Grady Booch. Suggested / Reference Books 1 ) 2 ) 3 ) 4 ) Meilir Page-Jones : Fundamentals of Object Oriented Design in UML.jntuworld. Pearson Education. Magnus Penker. Pearson Education Web sites 1 ) 2 ) http://en.htm -52- www. 2. Hans-Erik Eriksson. Brian Lyons. James Rumbaugh. James Rumbaugh: The Unified Software Development Process. WILEY-dreamtech India Pvt. Pearson Education Atul Kahate: Object Oriented Analysis & Design.kennesaw. Grady Booch.edu/~dbraun/csis4650/A&D/index.TATA McGrawHill Ivar Jacobson. Ivar Jacobson : The Unified Modeling Language 1. Ltd.com .
-53- www.com .jntuworld.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.