The Unified Modeling Language (UML) is a general-purpose modeling language in the field of software engineering, which is designed to provide a standard way to visualize the design of a system.
This article will discuss about UML Building blocks. Basically it consists of 3 components namely,
This is the most important part in UML building blocks. Things can be classified as,
Structural things define the stable (static) part of the model. Structural things are class, Interface,
collaboration, usecase, component and node.*Classes are set of objectives which gave similar responsibilities.
*Interfaces are set of operations which specify set of classes.
*Collaborations defines connections between elements.*Use-case describes set of actions performed in a system.
*Components describes the physical parts of the system.
*Nodes describes a physical element which has a run time.
BehaviorConsists of all the dynamic parts of the system.
- Interaction – Behavior that consists of a group of messages exchanged among elements.
- State machine – State machine can show the different states of an entity also how an entity responds to various events by changing from one state to another.
It is a mechanism to group the elements of UML model.
- Package – Package is the only one grouping thing available for gathering structural and behavioral things.
Annotations are used to capture remarks, descriptions and comments of UML model elements.
Relationships will show how elements are connected and associated with each other. There are four (4) types of relationships available.
Relationship between 2 things and change in one element affects the other.
Set of links that connect elements of UML. It describes how many objects are participating in a particular relationship.
Connects a specialized element with a generalized element.
One element describes some responsibility which is not implemented yet.
3. UML Diagrams
This is the core of UML modelling. The various types of UML diagrams are,
- Class diagram
- Object diagram
- Use-case diagram
- Sequence diagram
- Component diagram
- Activity diagram
- State-chart diagram
- Collaboration diagram
- Deployment diagram
Let’s discuss about UML Diagrams in our next article.
UML Building blocks – Summary