Unified Modelling Language(UML)


UML stands for Unified Modeling Language

The UML is the standard language for visualizing, specifying, constructing, and documenting the artifacts of a software-intensive system.It can be used with all processes, throughout the development life cycle, and across different implementation technologies

The UML may be used to:

1. Display the boundary of a system & its major functions using use cases and actors
2. Illustrate use case realizations with interaction diagrams
3. Represent a static structure of a system using class diagrams
4. Model the behavior of objects with state transition diagrams
5. Reveal the physical implementation architecture with component & deployment diagrams

Sequence Diagram

A sequence diagram displays object interactions arranged in a time sequence

Class Diagram

A class diagram shows the existence of classes and their relationships in the logical view of a system

UML modeling elements in class diagrams.

  • Classes, their structure and behaviour
  • Association, aggregation, dependency, and inheritance relationships
  • Multiplicity and navigation indicators
  • Role names

  • Classes

    A class is a description of a set of objects having similar attributes, operations, relationships and behaviour.

    A class is drawn as a rectangle with three compartments
    The compartments are for

  • Name of the class
  • Attributes
  • Operations

  • Relationships

    Relationships provide a pathway for communication between objects

    If two objects need to communicate, there should be a link between the two.

    Three types of relationships are:

  • Association
  • Aggregation / Composition
  • Dependency
  • An association is a bi-directional connection between classes
    An association is shown as a line connecting the related classes
    An Aggregation / Composition is a stronger form of relationship where the relationship is between a whole and its parts
    An Aggregation is shown as a line connecting the related classes with an unfilled diamond next to the class representing the whole. For Composition, the dialog will be filled.
    A dependency relationship is a weaker form of relationship showing a relationship between a client and a supplier where the client does not have semantic knowledge of the supplier
    A dependency is shown as a dashed line pointing from the client to the supplier

    HappyCoding ! 😉


    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Google photo

    You are commenting using your Google account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )

    Connecting to %s

    %d bloggers like this: