This action might not be possible to undo. Are you sure you want to continue?
Design Patterns Lab Lab Manual [Subject Code] I M Tech – II Semester [Branch: IT]
Guru Nanak Engineering College
Ibrahimpatnam, R R District – 501 506 (A. P.)
Guru Nanak Engineering College
Ibrahimpatnam, R R District – 501 506 (A. P.)
Department of Information Technology
Lab Manual for the Academic Year 2008-09 (In accordance with JNTU syllabus)
SUBJECT SUBJECT CODE SEMESTER STREAM INSTRUCTOR PROGRAMMERS
: : : : : :
Department of Information Technology S. ANITHA REDDY 1) G. SRINIVASULU 2) M.B. NEELAKANTESHWARA REDDY
P. R R District – 501 506 (A.) Department of Information Technology Lab Manual for the Academic Year 2008-09 (In accordance with JNTU syllabus) Suggestions from Principal: Enhancement if any: Comments: 3 .Guru Nanak Engineering College Ibrahimpatnam.
Description about DP Solutions for Programs Solutions for Additional Programs References 5 6 7 8 4 .1 Syllabus Programs (JNTU) 4.Description about UML 2. No 1 2 3 Contents Lab Objective Introduction About Lab Guidelines to Students List of Lab Exercises 4 4.2 Additional and Advanced Programs 1.INDEX S.
Students can boot from Windows XP or Linux as per their lab requirement. Each student has a separate login for database access Oracle 9i client version is installed in all systems. 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. Their configurations are as follows: Processor RAM Hard Disk Mouse : : : AMD Athelon ™ 1.. 5 .67 GHz 256 MB : 40 GB Optical Mouse : Present Network Interface card Software All systems are configured in DUAL BOOT mode i. account for each student has been created. On the server.LAB OBJECTIVE • • Overview Object ModelUML Basic Model 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.e.
Each student work is safe and secure from other students. Before submitting their final project.This is very useful because students can save their work ( scenarios’. MASM ( Macro Assembler ) is installed in all the systems Students can execute their assembly language programs using MASM. Systems are assigned numbers and same system is allotted for students when they do the lab. Description about DP Each pattern describes a problem which occurs over and over again in our environment.5. JDK1. Rational Rose. OFFICE-XP. Latest Technologies like DOT NET and J2EE are installed in some systems. in such a way that you can use this solution a million times over. J2EE and DOT NET. students can depict UML diagrams of their projects. MASM. Softwares installed: C. pl/sql programs.etc) in their own accounts. C++. and then describes the core of the solution to that problem. they can start doing mini project from 2nd year onwards. Systems are provided for students in the 1:1 ratio. data related projects . without ever doing it the same way twice“ • A design pattern – Is a common solution to a recurring problem in design – Abstracts a recurring design structure – Comprises class and/or object • Dependencies • Structures • Interactions • Conventions – Names & specifies the design structure explicitly A design pattern has 4 basic parts: • 6 . Rational Rose Software is installed in some systems Using this software. 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.
The UML may be used in a variety of ways to support a software development methodology. to detail the artifacts in the system.) No mechanical application – The solution needs to be translated into concrete terms in the application context by the developer Goals • • • • Codify good design – Distil and disseminate experience – Aid to novices and experts alike – Abstract how to think about design Give design structures explicit names – Common vocabulary – Reduced complexity – Greater expressiveness Capture and preserve design information – Articulate design decisions succinctly – Improve documentation Facilitate restructuring/refactoring – Patterns are interrelated – Additional flexibility Description about UML INTRODUCTION The Unified Modeling Language (UML) is a graphical language for visualizing. specifying. OMT." The important point to note here is that UML is a 'language' for specifying and not a method or procedure.• • • • – 1. The UML is used to define a software system. and documenting the artifacts of a software-intensive system. visualizing. Name – 2.it is the language that the blueprint is written in. etc. and documenting Used to derive or evolve a system Means to capture and 7 . Problem – 3. to document and construct . The UML offers a standard way to write a system's blueprints. Consequences and trade-offs of application Language. A modeling language for specifying. constructing. including conceptual things such as business processes and system functions as well as concrete things such as programming language statements. database schemas.and implementation-independent A “micro-architecture” Adjunct to existing methodologies (Unified. and reusable software components. constructing. Solution – 4.
but enables processes UML is a general purpose.Use Case Diagram . tool-supported.Class Diagram .The static structure of a system .Object Diagram .The functionality of a system The structural model view . but a modeling language specification A process.Collaboration diagram . broadly applicable. (industry standardized) modeling language Where does UML fit? • • • • UML at its widest formalizes the notion of concepts and defines a language of specifying modes UML formalizes uses the above level to formalize the paradigm concepts (OO) UML formalizes the modeling of classes or types UML formalizes the modeling of objects or instances Architectural views of UML The user model view .communicate a knowledge about a system Focuses on understanding a subject via creating a model It unifies the language of communication about a system Uses visualization Can be used as a 'blueprint' of a system Can be used through out the lifecycle of the system UML is NOT • • • A visual programming language.Sequence Diagram .Interaction among elements and their relations organized in time and space 8 . but a visual modeling language A tool or repository specification.Interaction among elements of a system in a time sequence .The static structure of a system at a particular time The behavioral model view .
Configuration of environment elements and the mapping of elements realizing the system into them Modeling Mechanisms Perspectives define a particular point of view Dichotomies define how something can be viewed from different perspectives and discover inconsistencies within models Layers of abstraction define a particular level of abstraction and establish the level of detail.The organization of the elements realizing the system The Environment model view ..Deployment diagram .Component Diagram .The activities of the system The implementation model view .State Diagram .The status condition and responses of the elements of a system . used for organization of models Extension mechanisms define the means of customizing and extending the UML 9 .Activity Diagram . enables focused communication.
2 Index Page S. No. Sign / Remarks 10 .Annexure . Date Program / Experiment Page No.
2 11 . No. Sign / Remarks Annexure . Date Program / Experiment Page No.Index Page S.
6. 35. 19. 38. 3. 2. 34. 22. 29. No 1. Programs Use case Diagram for Librarian Scenario Using UML design Abstract factory design pattern Using UML design Adapter-class Design pattern Using UML design Adapter-object Design pattern Using UML design Strategy Design pattern Using UML design Builder Design pattern Using UML design Bridge Design pattern Using UML design Decorator Design pattern User gives a print command from a word document. 7. 26. 14. Design to represent this chain of responsibility Design pattern Design a Flyweight Design pattern Using UML design Facade Design pattern Using UML design Iterator Design pattern Using UML design Mediator Design pattern Using UML design Proxy Design pattern Using UML design Visitor Design pattern 13 . 11. 25. 4. 9. 18. 16. 10. 36. 30. 24. 31. 28. 27. 12. 17. 5. 37.UML Syllabus Programs (JNTU) S. 33. 21. 13. 15. 20. 23. 8.
1. 14 . Use case Diagram for Librarian Scenario.
2. 15 . Using UML design Abstract factory design pattern.
3 . 16 .Using UML design Adapter-class Design pattern.
17 . Using UML design Adapter-object Design pattern.4.
5. Using UML design Strategy Design pattern. 18 .
Using UML design Builder Design pattern. 19 .6.
20 . Using UML design Bridge Design pattern.7.
8. 21 . Using UML design Decorator Design pattern.
22 . Design to represent this chain of responsibility Design pattern.9.
23 .10. Design a Flyweight Design pattern.
Using UML design Facade Design pattern.11. 24 .
25 .12. Using UML design Iterator Design pattern.
Using UML design Mediator Design pattern. 26 .13.
27 .14. Using UML design Proxy Design pattern.
28 .15. Using UML design Visitor Design pattern.