Uml 2nd Part

Embed Size (px)

Citation preview

  • 8/3/2019 Uml 2nd Part

    1/27

    17. Activity diagram for Point of sale

  • 8/3/2019 Uml 2nd Part

    2/27

    18. Sequence Diagram for Point of Sale

  • 8/3/2019 Uml 2nd Part

    3/27

    19. Collaboration diagram for point of sale

    Customer Clerk Comp

    1: 1 : Takes the produ c t

    5 : 5 : Paym en t is do ne

    4: 4 : Bi l l is g iven

    2: 2 : B i l l s the produ c t

    3 : 3 : P r oces se s the b i ll

    20. Deployment diagram for point of sale

    Barcodescanner

    PDA Touchscreens

    Server

  • 8/3/2019 Uml 2nd Part

    4/27

    21. Hospital Sequence Diagram

    P:Patient A:Appoint

    ment

    D:Docter T:Treatm

    ent1:Confirms

    2:Diagnozed

    3:Gives Treatment

    4:Receive Feedback

  • 8/3/2019 Uml 2nd Part

    5/27

    22. Hospital Collaboration Diagram

  • 8/3/2019 Uml 2nd Part

    6/27

    23. Activity Diagram of patient visiting doctor using swim lines

  • 8/3/2019 Uml 2nd Part

    7/27

    24. Activity diagram of patient checked by Treatment Provider for Diabetes

    Check the patient

    Prescribed Test

    Check nextPatient

    Kind ofDiabetes

    AgeHeight &Weight

    ProvideTreatment

    Symptoms

    No Symptoms

  • 8/3/2019 Uml 2nd Part

    8/27

    25. Activity diagram for Cellular Company

    Receivesproduct

    PayBills

    RequestProduct

    preparebills

    CloseOrder

    Pullmaterials

    Shift

    Order

    ProcessProduct

    Ware houseSalesCustomer

  • 8/3/2019 Uml 2nd Part

    9/27

    26. Online Book shop of class diagram without attributes

  • 8/3/2019 Uml 2nd Part

    10/27

    27. Online book shop of Use case diagram

  • 8/3/2019 Uml 2nd Part

    11/27

    28. Online book shop of Activity diagram

    Display Welcome

    Message

    Get Login

    Get Password& Validate

    Display ItemInformation

    AcceptSelection

    CreateOrder

    DisplayOrder

    Ship toCustomer

    Rejected

    More

    Accepted

    Rejected

  • 8/3/2019 Uml 2nd Part

    12/27

  • 8/3/2019 Uml 2nd Part

    13/27

    30. State transition diagram representing a history state H

  • 8/3/2019 Uml 2nd Part

    14/27

    31. Diagram representing Concurrent sub states

  • 8/3/2019 Uml 2nd Part

    15/27

    32. Diagram representing Sequential substitutes

  • 8/3/2019 Uml 2nd Part

    16/27

  • 8/3/2019 Uml 2nd Part

    17/27

    34. Diagram for the relation between a component & interface

  • 8/3/2019 Uml 2nd Part

    18/27

    35. Diagram for the relation between a component & class

  • 8/3/2019 Uml 2nd Part

    19/27

    36. Deployment diagram for Physical connection system

    Server

    Client1

    Client2

    >

    >

    Draw a Deployment Diagram that shows thephysical connection system

  • 8/3/2019 Uml 2nd Part

    20/27

    37. Deployment diagram for Client server system

    D r a w a D e p lo y m e n t D ia g r a m t ha t s h o w s t h e c lie

    C l i e n t

    F i l es e r v e r

    S e r v e r

    K i o s k S e r v e r p r i n t

    S e r v e r d a t a b a s e

  • 8/3/2019 Uml 2nd Part

    21/27

    38. Development Diagram that shows the Embedded System.

  • 8/3/2019 Uml 2nd Part

    22/27

  • 8/3/2019 Uml 2nd Part

    23/27

    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.

    1. What is a simple name?

    Ans. Every class must have a name that distinguishes it from other classes. Aname alone is known as a simple name

    2. What is a Path name?

    Ans. A path name is the class name prefixed by the name of the package in

    which that class lives

    3. 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

    4. What is an Operation?

    Ans. An operation is the implementation of a service that can be requested fromany object of the class to affect behavior

    5. What is responsibility?

    Ans. A responsibility is a contract or an obligation of a class

    7. What is a relationship?

    Ans. A relationship is a connection among things

    8. What is Dependency?

    Ans. Change in one thing depends upon the another thing

    9. How the dependency is rendered?

    Ans. Dependency is rendered as a dashed directed line, directed to the thing

    being depended on

    10.What kind of relationship for Generalization?

  • 8/3/2019 Uml 2nd Part

    24/27

    Ans. Generalization called an is-a-kind-of relationship

    11.A class may have how many parents?

    Ans. A class may have zero, one, or more parents

    12.What is root or base class?

    Ans. A class that has no parents and one or more children is called a root classor base class

    13. What is a Leaf class?

    Ans: A class that has no children is called a leaf class

    14. What is the Generalization?

    Ans: It means that objects of the child may be used anywhere the parent may

    appear, but not the reverse

    15. How generalization is rendered?

    Ans: It is rendered as a solid directed line with a large open arrowhead,

    pointing to the parent

    16. What is Association?

    Ans: An Association is a structural relationship that specifies that objects ofone thing are connected to objects of another

    17. How Association is rendered?

    Ans: An association is rendered as a solid line connecting the same or

    different classes

    18. What is binary association?

    Ans: An association that connects exactly two classes is called a binary

    association

    19.What is n-ary association?

    Ans. An association that connect more than two class

    20.What are the four adornments that apply to association?

  • 8/3/2019 Uml 2nd Part

    25/27

    Ans. Name, Role, Multiplicity, Aggregation

    21. How we can describe nature of relationship in association>

    Ans. By the name

    22. What is a Role?

    Ans. When a class participates in an association, it has a specific role that itplays in the relationship

    23. How many multiplicities?

    Ans. Exactly one(1), Zero or One(0..1), many(0..*), or one or more(1..*) or

    even state an exact number( for example, 3).

    24. What type of Aggregation relationship?

    Ans. Whole/Part relationship

    25.How aggregation relationship is rendered?

    Ans. It has a plain association with an open diamond at the whole end.

    26. What are the relationships usually visualized in class diagrams?

    Ans. Dependencies, generalization, and association

    27.What is a note?

    Ans. It is a graphical symbol for rendering constraints or comments attached toan element or a collection of elements.

    28. How the note is rendered?

    Ans. It is rendered as a rectangle with dog-eared corner, together with textual

    or graphical comment.

    29. What is stereotype?

    Ans. It is an extension of the vocabulary of the UML

    30. How stereotype is rendered?

  • 8/3/2019 Uml 2nd Part

    26/27

    Ans. It is rendered as a name enclosed by guillements and placed above the

    name of another element.

  • 8/3/2019 Uml 2nd Part

    27/27

    References

    Books / Material

    Text Books

    1.

    Grady Booch, James Rumbaugh, Ivar Jacobson : The Unified Modeling Language

    User Guide,

    Pearson Education.

    2.Hans-Erik Eriksson, Magnus Penker, Brian Lyons, David Fado: UML 2 Toolkit,

    WILEY-dreamtech India Pvt. Ltd.

    Suggested / Reference Books

    1

    )

    Meilir Page-Jones : Fundamentals of Object Oriented Design in UML, Pearson

    Education

    2)

    Atul Kahate: Object Oriented Analysis & Design, The McGraw-Hill Companies

    3)

    Mark Priestley: Practical Object-Oriented Design with UML,TATA McGrawHill

    4)

    Ivar Jacobson, Grady Booch, James Rumbaugh: The Unified Software DevelopmentProcess, Pearson Education

    Web sites

    1

    )http://en.wikipedia.org/wiki/Unified_Modeling_Language

    2

    )http://atlas.kennesaw.edu/~dbraun/csis4650/A&D/index.htm