UML – Building Blocks

  • Post author:
  • Post category:UML
  • Post comments:1 Comment
UML - Building Blocks

As UML Building Blocks describes the real-time systems, it is very important to make a conceptual model and then proceed gradually. The conceptual model of UML can be mastered by learning the following three major elements −

  • UML building blocks
  • Rules to connect the building blocks
  • Common mechanisms of UML

This chapter describes all the UML building blocks. Defined as −

  • Things
  • Relationships
  • Diagrams

UML Building Blocks Things

In things are the most important building blocks of UML. Things can be −

  • Structural
  • Behavioral
  • Grouping
  • Annotational

Structural T hings

Structural things define the static part of the model. They represent the physical and conceptual elements. Following are the brief descriptions of the structural things.

Class − Class represents a set of objects having similar responsibilities.

UML - Building Blocks

Interface − Interface defines a set of operations, which specify the responsibility of a class.

UML - Building Blocks

Collaboration −Collaboration defines an interaction between elements.

UML - Building Blocks

Use case −Use case represents a set of actions performed by a system for a specific goal.

UML - Building Blocks

Component −Component describes the physical part of a system.

UML - Building Blocks

Node − A node can be defined as a physical element that exists at run time.

Behavioral Things

A behavioral thing consists of the dynamic parts of UML models. Following are the behavioral things −

Interaction − Interaction is defined as a behavior that consists of a group of messages exchanged among elements to accomplish a specific task.

State machine − A state machine is useful when the state of an object in its life cycle is important. It defines the sequence of states an object goes through in response to events. Events are external factors responsible for state change

UML - Building Blocks

Grouping T hings

Grouping things can be defined as a mechanism to group elements of a UML model together. There is only one grouping thing available −

Package − Package is the only grouping thing available for gathering structural and behavioral things.

UML - Building Blocks

Annotational Things

Annotation things can be defined as a mechanism to capture remarks, descriptions, and comments of UML model elements. Note – It is the only one Annotational thing available. A note is used to render comments, constraints, etc. of a UML element.

Relationship

The relationship is another most important building block of UML. It shows how the elements are associated with each other and this association describes the functionality of an application.

There are four kinds of relationships available.

Dependency

Dependency is a relationship between two things in which change in one element also affects the other.

Association

Association is basically a set of links that connects the elements of a UML model. It also describes how many objects are taking part in that relationship.

UML - Building Blocks

Generalization

Generalization can be defined as a relationship that connects a specialized element with a generalized element. It basically describes the inheritance relationship in the world of objects.

UML - Building Blocks

Realization

Realization can be defined as a relationship in which two elements are connected. One element describes some responsibility, which is not implemented and the other one implements them. This relationship exists in the case of interfaces.

UML Diagrams

UML diagrams are the ultimate output of the entire discussion. All the elements, relationships are used to make a complete UML diagram and the diagram represents a system.

The visual effect of the UML diagram is the most important part of the entire process. All the other elements are used to make it complete.

UML includes the following nine diagrams, the details of which are described in the subsequent chapters.

  • Class diagram
  • Object diagram
  • Use case diagram
  • Sequence diagram
  • Collaboration diagram
  • Activity diagram
  • Statechart diagram
  • Deployment diagram
  • Component diagram

Next Topic – Click Here

This Post Has One Comment

Leave a Reply