+ All Categories
Home > Documents > r10 Jntu-k Cse 4-1 Uml & Dp Lab Manual(Dp)

r10 Jntu-k Cse 4-1 Uml & Dp Lab Manual(Dp)

Date post: 29-Oct-2015
Category:
Upload: manikanta-krishna
View: 3,166 times
Download: 22 times
Share this document with a friend
Description:
R10 JNTU-K CSE 4-1 UML & DP LAB MANUAL(DP
Popular Tags:

of 13

Transcript
  • 1

    Department of CSE

    UML & Design Patterns Lab

    Lab Manual

    IVth B.Tech I Semester [Branch: CSE]

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 2

    INDEX

    S. No Contents

    1 Lab Objective

    2 Introduction About Lab

    3 Guidelines to Students

    4

    List of Lab Exercises

    4.1 Syllabus Programs (JNTU) 4.2 Additional and Advanced Programs

    5 1.Description about UML

    2. Description about DP

    6 Solutions for Programs

    7 Solutions for Additional Programs

    8 References

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 3

    LAB OBJECTIVE

    Overview Object ModelUML

    Basic Model Advanced Models

    Class & Object Collaboration Sequence

    Use Cases Advanced Modeling

    Component Diagram Deployment Diagrams

    Description about DP

    Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, 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:

    1. Name 2. Problem 3. Solution 4. Consequences and trade-offs of application

    Language- and implementation-independent A micro-architecture Adjunct to existing methodologies (Unified, OMT, etc.) 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

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 4

    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, constructing, and documenting the artifacts of a software-intensive system. The UML offers a standard way to write a system's blueprints, including conceptual things such as business processes and system functions as well as concrete things such as programming language statements, database schemas, and reusable software components."

    The important point to note here is that UML is a 'language' for specifying and not a method or procedure. The UML is used to define a software system; to detail the artifacts in the system, to document and construct - it is the language that the blueprint is written in. The UML may be used in a variety of ways to support a software development methodology.

    A modeling language for specifying, visualizing, constructing, and documenting Used to derive or evolve a system Means to capture and 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, but a visual modeling language A tool or repository specification, but a modeling language specification A process, but enables processes

    UML is a general purpose, broadly applicable, tool-supported, (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

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 5

    Architectural views of UML

    The user model view

    - Use Case Diagram - The functionality of a system

    The structural model view

    - Class Diagram - The static structure of a system

    - Object Diagram - The static structure of a system at a particular time

    The behavioral model view

    - Sequence Diagram - Interaction among elements of a system in a time sequence

    - Collaboration diagram - Interaction among elements and their relations organized in time and space

    - State Diagram - The status condition and responses of the elements of a system

    - Activity Diagram - The activities of the system

    The implementation model view

    - Component Diagram - The organization of the elements realizing the system

    The Environment model view

    - Deployment diagram - 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, enables focused communication, used for organization of models

    Extension mechanisms define the means of customizing and extending the UML

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 6

    UML Syllabus Programs (JNTU)

    Programs list 1. To create a UML diagram of ATM APPLICATION. 2. To create a UML diagram of LIBRARY MANAGEMENT SYSTEM. 3. To create a UML diagram of ONLINE BOOK SHOP 4. To create a UML diagram of RAILWAY RESERVATION SYSTEM 5. To create a UML diagram for BANKING SYSTEM 6. To design a Document Editor 7. Using UML design Abstract factory design pattern 8. Using UML design Builder Design pattern 9. Using UML design Facade Design pattern 10. Using UML design Bridge Design pattern 11. Using UML design Decorator Design pattern 12. User gives a print command from a word document. Design to represent this chain of responsibility design pattern

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 7

    1. Use case Diagram for Librarian Scenario.

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 8

    2. Using UML design Abstract factory design pattern.

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 9

    3. Using UML design Builder Design pattern.

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 10

    4. Using UML design Facade Design pattern.

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 11

    5. Using UML design Bridge Design pattern.

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 12

    6. Using UML design Decorator Design pattern.

    mahesh7993.blogspot.in

    mAHESH Baisani

  • 13

    7. Design to represent this chain of responsibility Design pattern.

    mahesh7993.blogspot.in

    mAHESH Baisani


Recommended