Tech Me All

Tips ,Tricks notes and Quizes

What is UML

What is UML

  • UML stands for “Unified Modeling Language”
  • It is a industry-standard graphical language for specifying, visualizing, constructing, and documenting the artifacts of software systems
  • The UML uses mostly graphical notations to express the OO analysis and design of software projects.
  • Simplifies the complex process of software design


Types of UML Diagrams

  • Use Case Diagram
  • Class Diagram
  • Sequence Diagram
  • Collaboration Diagram
  • State Diagram

This is only a subset of diagrams … but are most widely used

  1. Use Case Diagram

Used for describing a set of user scenarios

Mainly used for capturing user requirements

Work like a contract between end user and software developers

      Use Case Diagram (core components)

Actors:  A role that a user plays with respect to the system,including human users and other systems. e.g.,inanimate physical objects (e.g. robot); an external system that needs some information from the current system.

Use case: A set of scenarios that describing an interaction  between a user and a system, including alternatives.

uml1

System boundary: rectangle diagram representing the boundary between the actors and the system.

Association:  communication between an actor and a use case; Represented by a solid line. uml3Generalization: relationship between one general use case and a special use case (used for defining special alternatives)

Represented by a line with a triangular arrow head toward the parent use case.

arrow

 

Include: a dotted line labeled <<include>> beginning at base use case and ending with an arrows pointing to the include use case.  The include relationship occurs when a chunk of behavior is similar across more than one use case. Use “include” in stead of copying the description of that behavior.

 <<include>>

Extend: a dotted line labeled <<extend>>  with an arrow toward the base case. The extending use case may add behavior to the base use case. The base class declares “extension points

 <<extend>>

 

usecase1

 

 

 

 

  1. Class diagram

Used for describing structure and behavior in the use cases

Provide a conceptual model of the system in terms of entities and their relationships

Used for requirement capture, end-user interaction

Detailed class diagrams are used for developers

Class representation

 

  • Each class is represented by a rectangle subdivided into three compartments
    • Name
    • Attributes
    • Operations
  • Modifiers are used to indicate visibility of attributes and operations.
    • ‘+’ is used to denote Public visibility (everyone)
    • ‘#’ is used to denote Protected visibility (friends and derived)
    • ‘-’ is used to denote Private visibility (no one)
  • By default, attributes are hidden and operations are visible.

class

  • Sequence Diagram

seqence

  • Collaboration Diagram

 

  1. State Diagrams
    (Billing Example)

State Diagrams show the sequences of states an object goes through during its life cycle in response to stimuli, together with its responses and actions; an abstraction of all possible behaviors.

Updated: September 10, 2018 — 9:45 pm

5 Comments

Add a Comment
  1. This blog was… howw do you say іt? Relevant!! Finally I have found somᥱthing which helped mᥱ.
    Kudos!

  2. This artіcle ρrovides clear idеa designed for the new peopⅼe of blogging,
    that really how to ԁօ blogging.

  3. Hi, i think that i saw you visited my website
    thus i came to “return the favor”.I’m trying to find things to improve my
    web site!I suppose its ok to use some of your ideas!!

  4. Wow, that’s what I was seeking for, what a data! existing here at this
    website, thanks admin of this web page.

  5. First off I want to say awesome blog! I had
    a quick question in which I’d like to ask if you do not mind.
    I was curious to find out how you center yourself and clear your mind before writing.
    I’ve had difficulty clearing my mind in getting my ideas out.
    I do take pleasure in writing but it just seems like the first 10 to 15
    minutes are usually lost simply just trying to figure out
    how to begin. Any suggestions or tips? Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

seven + fifteen =

Tech Me All © 2016 Frontier Theme